Hard Light Productions Forums

Off-Topic Discussion => General Discussion => Topic started by: USS Alexander on June 17, 2004, 11:40:39 am

Title: To the Javascript experts.
Post 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.
Title: To the Javascript experts.
Post by: kasperl on June 17, 2004, 12:26:30 pm
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.
Title: To the Javascript experts.
Post by: USS Alexander on June 17, 2004, 02:56:08 pm
Quote
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.
Title: To the Javascript experts.
Post by: ZylonBane on June 17, 2004, 05:21:21 pm
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.
Title: To the Javascript experts.
Post by: USS Alexander on June 17, 2004, 06:06:10 pm
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?
Title: To the Javascript experts.
Post by: ZylonBane on June 17, 2004, 07:47:13 pm
Oh bloody 'ell. Just use a standard scrollbar and use CSS to make the thumb invisible if it bothers you so much.