Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Jul 2005
    Posts
    27
    Member #
    10680
    I have embedded a little radio player inside a HTML website, but when I click on the PLAY button of the radio player, nothing happens because the first click is just highlighting and selecting the movie

    (this is on a pc with internext explorer, it works fine in firefox on mac)

    Then the second click plays the movie.

    But I want the first click to play the movie, any ideas what HTML code I need to change/add?

    Thanks

  2.  

  3. #2
    Senior Member hyperair's Avatar
    Join Date
    May 2005
    Posts
    452
    Member #
    9892
    Take a look at this page. I believe it may help you:
    http://www.amarasoftware.com/macromedia-ie-solution.htm

    A quick but dirty fix would be as shown:
    Code:
    <script type="text/javascript">
    // <![CDATA[
    window.onload = function() { 
    var objects = document.getElementsByTagName('object')
    for (var i=0;i<objects.length;i++) {
    objects[i].outerHTML = objects[i].outerHTML;
    }
    }
    // ]]>
    </script>
    What this code seems to do is that it redeclares each and every <object>. I suppose this must be a bug in IE to allow this to work.
    Hyperair

  4. #3
    Junior Member
    Join Date
    Jul 2005
    Posts
    27
    Member #
    10680
    awesome, this forum never fails to amaze me.

    Thanks for your help!

  5. #4
    Senior Member hyperair's Avatar
    Join Date
    May 2005
    Posts
    452
    Member #
    9892
    You're welcome. By the way, please take a look at my post again. I edited it to add a shorter fix to this. (also shown by www.amarasoftware.com)
    Hyperair


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 04:00 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com