View Full Version : Java breaks on one page only

04-21-2011, 09: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:

The broken scroller:

04-21-2011, 10: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

04-22-2011, 09: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....

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