Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

horizontal scrolling script bug

Status
Not open for further replies.

BelliLint

Programmer
Jul 4, 2005
6
CA
Once upon a time, in a thread long ago (thread216-1087077) I received help converting a vertical scrolling script to a horizontal scrolling script (thank you BabyJeffy).

I am trying to reuse this script in a new site however I've found a funny (and frustrating) bug.

Please see to see the scroller working beautifully.

Now I am using it on a new site, the difference is that I am using it in a popup window. The scroller is not working when viewed in IE6.

See and click on "Photos" to see the popup that is not working in IE6. Click on "About Family Yoga" to see the original vertical scrolling script working beautifully.

Things I have discovered in my unsuccessful debugging process:
- the script does not like being in a table - take it out and it works
- when removed from the table it works in the main window but not in a popup window (which opens that IE activeX control warning)

I would greatly appreciate help with this and if you need any other info about the problem please ask. Both the original script and the modified one can be found by following the link above to the old thread.

Thank you!
 
It's not working because you have a JavaScript error here:

Code:
<body onload="MM_preloadImages('../media/about_family.gif')">

You have no function called "MM_preloadImages" anywhere. IE throws an error and process no more JS, while Fx throws an error, but continues to process JS.

You should either remove that onload attribute, or provide the missing libraries (which are presumably on your first site).

Hope this helps,
Dan




Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
I don't understand why that would cause an error. The MM_preloadImages script is found in the file rollover.js that is included in the header:
Code:
<script language="javascript" src="../external/rollover.js"></script>
However, I pasted it into the file itself. Now there's no error, but the script still doesn't work...any other thoughts?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top