Author Topic: To the Javascript experts.  (Read 817 times)

0 Members and 1 Guest are viewing this topic.

Offline USS Alexander

  • I 0wn TAP
  • 29
    • http://www.ngproductions.nl
To the Javascript experts.
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.
icq 127261564
www.ngproductions.nl
Tapping I3****

 
To the Javascript experts.
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.
just another newbie without any modding, FREDding or real programming experience

you haven't learned masochism until you've tried to read a Microsoft help file.  -- Goober5000
I've got 2 drug-addict syblings and one alcoholic whore. And I'm a ****ing sociopath --an0n
You cannot defeat Windows through strength alone. Only patience, a lot of good luck, and a sledgehammer will do the job. --StratComm

 

Offline USS Alexander

  • I 0wn TAP
  • 29
    • http://www.ngproductions.nl
To the Javascript experts.
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.
icq 127261564
www.ngproductions.nl
Tapping I3****

 

Offline ZylonBane

  • The Infamous
  • 29
To the Javascript experts.
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.
ZylonBane's opinions do not represent those of the management.

 

Offline USS Alexander

  • I 0wn TAP
  • 29
    • http://www.ngproductions.nl
To the Javascript experts.
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?
icq 127261564
www.ngproductions.nl
Tapping I3****

  

Offline ZylonBane

  • The Infamous
  • 29
To the Javascript experts.
Oh bloody 'ell. Just use a standard scrollbar and use CSS to make the thumb invisible if it bothers you so much.
ZylonBane's opinions do not represent those of the management.