...

View Full Version : Java breaks on one page only



boogily
04-21-2011, 10:19 PM
I am trying to get a site working that some hack developed. Got it nearly operational, except for one page, the down arrows do not work. They fire via javascript. It is just a hover and scroll deal. The java gets loaded the same for every page, but it breaks on this one.

I am decent with some coding, but I know I am light years behind the smart people in this forum, especially when it comes to java. I really could use a hand. Thanks

Working scroll:
http://66.147.244.241/~finalco1/index.php/company-information-fm.html

The broken scroller:
http://66.147.244.241/~finalco1/index.php/contact-us-fm.html

AndrewGSW
04-21-2011, 11:35 PM
The div element 'lyr1' that occurs before the little arrows has different attributes for the working and non-working versions:

<div id="lyr1" style="position: absolute; left: 0px; top: -117px; visibility: visible;">
I would amend your non-working version to these settings - I suspect 'position: absolute;' is the significant difference between the two versions.

BTW: You are likely to receive more assistance if you refer to JavaScript (not Java) :D

boogily
04-22-2011, 10:19 PM
Wow. What a great catch. Too bad that didn't do it. I did notice that the javascript shows as one line in the non working version, and multiple lines in the working versions.

Off to fix that....

boogily
04-22-2011, 10:26 PM
That did it! It was squished to one line, and the comments screwed things up



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum