...

View Full Version : Scroll DIV



mark87
03-26-2005, 01:17 PM
How can I scroll a DIV when links are moused-over? I saw an example on somebody's site here but can't find it now. Thanks

Mr J
03-26-2005, 01:32 PM
These examples may help you

www.huntingground.freeserve.co.uk/style/scrl_top.htm

mark87
03-26-2005, 01:53 PM
Thanks, helped alot!

One prob... It scrolls up but not down :S Cannot see why! Can anyone take a look?

http://mysite.wanadoo-members.co.uk/downfallband/moonies/index.html

- On the main page.

Mr J
03-26-2005, 02:25 PM
There are 2 options here

1)

Give mainright an inline height

<DIV id=mainright style="400px">

Or

2)

In the function scrolldown change the line

layer_height=parseInt(document.getElementById(id).style.height)

to

layer_height=document.getElementById(id).offsetHeight

mark87
03-26-2005, 02:32 PM
Cheers, yey works! :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum