Announcement

Collapse
No announcement yet.

Fix the click to activate bug

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Fix the click to activate bug

    Matt,
    Can you fix the click to activate bug on the flash movie? I am attaching the code to correct below. It keeps IE, Opera, and FF users from having to click the movie before they can use it. I am assuming the header is in an include or part of a template, so you should only need to paste this in once location.

    Paste this code inline in the document, right after the closing </object> tag for the flash movie is best:
    Code:
    <script type="text/javascript" src="http://www.tigeowners.com/fixit.js"></script>
    Then paste this into a file "fixit.js" and upload to the same place as your nav.swf file...root of your site.
    Code:
    //This script will fix the IE click issues
    //You can make the link relative, I am unsure of your site structure
    
    theObjects = document.getElementsByTagName("object");
    for (var i = 0; i < theObjects.length; i++) **
    theObjects[i].outerHTML = theObjects[i].outerHTML;
    }

    Let me know if it doesn't work....there are other options.
    Last edited by spharis; 11-17-2006, 02:39 PM.
    http://www.wakeboatworld.com
    []) [] []V[] [])

    #2
    spharis, thanks for the reminder. I have known about that for some time but always forget since I dont use IE 7 or Opera. I have implemented it on every site I have developed but this one.

    However, I dont see this issue on FF 1.5.0.8?

    Your script seems small compared to the ones I have used, possibly because of no Flash version validation.

    Anyway another item to add to the list of updates/fixes.

    Comment


      #3
      Nah, theres no need to validate anything, and its completely seperate from any validation. All that script does is get an array of all the objects in the page, then it sets the outer html to itself.....in essence javascript overrides the interaction required by losing the lawsuit, by activating the object for the user. I just "borrowed" it from somewhere else.
      http://www.wakeboatworld.com
      []) [] []V[] [])

      Comment


        #4
        is it okay if I put up an animated avatar on my profile?

        Patio Cushion Cover

        Comment


          #5
          Originally posted by pyomay
          is it okay if I put up an animated avatar on my profile?
          You sure can.

          Comment

          Working...
          X