Hard Light Productions Forums
Off-Topic Discussion => General Discussion => Topic started by: USS Alexander on June 17, 2004, 11:40:39 am
-
I am having problems building up my site using a script wich let's you scroll layers.
I just can't get the dam layer to scroll, it scrolls the scroll arrows instead of the layer i want:confused:
Can anyone help me out? check //www.ngproductions.nl look at it and at the source.
I'm stuck lol.
-
I don't know much Jscript. but why aren't you doing that with either an iFrame or CSS? CSS would be the most elegant solution, and shouldn't be that hard to do.
-
Originally posted by kasperl
I don't know much Jscript. but why aren't you doing that with either an iFrame or CSS? CSS would be the most elegant solution, and shouldn't be that hard to do.
well i want it without those ugly scrollbars, just the arrows.
-
It's doing that because that's exactly what you're telling it to do. The up-arrow is in a DIV layer named "Scrollmenu" (and you have two DIVs with the same ID... for shame), and "scrollmenu" is what the verScroll function assigns to "page", and then scrolls.
Also, your code formatting sucks. Try a little indenting next time, eh? Makes things a hell of a lot easier to read. And why do you assign the value of page every single time through the loop? You should only have to do that once.
-
Thx it's working better now, but i want it to onlu scrolluntil the inersection of the background image, i want text only to be seen in that line, how the hell do you do that?
-
Oh bloody 'ell. Just use a standard scrollbar and use CSS to make the thumb invisible if it bothers you so much.