Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hover scroll of text in a div 1

Status
Not open for further replies.

snowneil

Programmer
Mar 22, 2006
40
GB
Hi,

I was wondering how to get text inside a div to scroll up and down when hovering over an image of an arrow.

Often people use flash to do it but i dont want to.
The html tag <marquee> is an option to make it scroll vertically so maybe i can wrap all the text inside the <div> with that and then turn the marquee on and off and change the direction, if all that is possible.

Anyone know of any examples of how to get it to scroll only when over the image using:


Code:
<img id="upArrow" onmouseover="javascript: scrollTextUp()">

If there are any other ways to do this just with the div and possibly changing the css with client side javascript.

If anyone has any links to do it with vbscript too then thats fine aswell.
 
Thanks for that, exactly what i was after.

Great stuff.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top