Go Back   Cyber Tech Help Support Forums > Software > Web Development & Graphic Design

Notices

Reply
 
Topic Tools
  #1  
Old November 12th, 2003, 11:40 PM
mikoto mikoto is offline
Member
 
Join Date: Aug 2003
Posts: 79
Scroll Button

K I have the code to make it so that when I click on a button it will move the the page of an Iframe:
javascriptarent.IFRAME.scrollBy(0,10)

But I want it so that when the cursor goes over the button it will constantly go up. So I tryed this:
onMouseOver="parent.IFRAME.scrollBy(0,10)

That handles the mouse over, but how can I make it loop around and repeat, so that it constantly goes up?

-Thanx'
Reply With Quote
  #2  
Old November 13th, 2003, 08:31 PM
Steven.Bentley Steven.Bentley is offline
CTH Subscriber
 
Join Date: Nov 2000
Location: West Yorkshire, UK
Age: 29
Posts: 3,840
You'd probably need to have two seperate functions, one triggered onmouseover which makes it go and uses setInterval to make it keep going. You'll then need one on the mouseout which stops it going by calling clearInterval
__________________
Don't forget to post back with the results
Reply With Quote
Reply

Bookmarks

Topic Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:50 PM.

[ RSS ]