Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12
  1. #11
    Join Date
    Nov 2007
    Location
    London
    Posts
    1,577
    Tokens
    36

    Latest Awards:

    Default

    Thanks for that, I edited the code badly.. I didn't realise why the javascript needed that div.. anyway. Surely that will just load the mp3... not play it?

    Edit:

    Right, here is my DIV:

    Code:
    <div class="style1" id="enter" onclick="setTimeout('redirectUser()', 12000)"><a href="#" onclick"loadFile('jstest',{file:'enter.mp3'});"><img src="enter.png" alt="Click here to enter!" width="224" height="125" border="0" /></a></div>
    The player works fine (I have it in a visible div at the moment for testing and when I get it working I'll put it invisible). However, click that image isn't playing the mp3. Any ideas?

    And the code for the player:

    Code:
    <div id="container" style="visibility:visible">This text will be replaced</div>
    
    <script type="text/javascript">
      var so = new SWFObject('http://www.jeroenwijering.com/embed/mediaplayer.swf','jstest','400','220','8');
      so.addParam('allowscriptaccess','always');
      so.addParam('allowfullscreen','true');
      so.addVariable('width','400');
      so.addVariable('height','220');
      so.addVariable('file','enter.mp3');
      so.addVariable('javascriptid','jstest');
      so.addVariable('enablejs','true');
      so.write('container');
    </script>
    Last edited by iUnknown; 14-06-2008 at 02:32 PM.
    Kind Regards,

    Guy
    __________________

    Since 2007. Unbelievable Uptime. Web hosting, resellers, master resellers, linux VPS, windows VPS, shoutcasts, at the lowest prices on the net.
    Tech-Hosts.co.uk.


  2. #12
    Join Date
    Nov 2007
    Location
    London
    Posts
    1,577
    Tokens
    36

    Latest Awards:

    Default

    Can't edit. Right so I've just wasted ages trying to get this work and I can see this idea is never going to work now............


    Any others?

    Edit:

    Haha, that works in internet explorer. Well... that'll do! +rep.
    Last edited by iUnknown; 14-06-2008 at 03:34 PM.
    Kind Regards,

    Guy
    __________________

    Since 2007. Unbelievable Uptime. Web hosting, resellers, master resellers, linux VPS, windows VPS, shoutcasts, at the lowest prices on the net.
    Tech-Hosts.co.uk.


Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •