Results 1 to 3 of 3

Thread: Stockphoto IE6 bug --

  1. #1
    Join Date
    May 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Stockphoto IE6 bug --

    It's not a huge issue, but I'm wondering if anyone has some ideas regarding an Internet Explorer bug in a javascript file on the iStockphoto site.

    You'll notice on any search page on iStockphoto (http://istockphoto.com/file_search.p...file&text=food) in IE, you will see a brief loading glitch in the upper left corner when you roll over your first image.

    It's as if IE is setting the absolute position at 0, 0 the instant the javascript is activated. After it loads up, it starts to work though. Firefox is fine of course.

    Here is the javascript file they are using: http://istockphoto.com/cacheserial/1...searchhover.js

    Any fixes for this would be appreciated, I'm trying to emulate the rollover effect they using (only bug-free )

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Edit: This has now been tested and found to work.


    You could try, where it has this:

    Code:
    if (document.getElementById || document.all){
    	document.write('<div id="trailimageid">');
    	document.write('</div>');
    }
    Do it like so:

    Code:
    if (document.getElementById || document.all){
    	document.write('<div id="trailimageid" style="visibility:hidden;">');
    	document.write('</div>');
    }
    And then in the two places where it has:

    Code:
    	gettrailobj().left=xcoord+"px"
    	gettrailobj().top=ycoord+"px"
    Make them both:

    Code:
    	gettrailobj().left=xcoord+"px"
    	gettrailobj().top=ycoord+"px"
    	gettrailobj().visibility='visible'
    Last edited by jscheuer1; 06-01-2008 at 02:31 PM. Reason: add info
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    May 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Thanks!

    You rock! That solution worked perfectly.

    I really appreciate your help on this. You should contact iStockphoto and provide them with the solution. Just some more kudos for you and maybe some free credits

Bookmarks

Posting Permissions

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