HighDots Forums  

Move button on mouseover

alt.html.tags alt.html.tags


Discuss Move button on mouseover in the alt.html.tags forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bill Thomason
 
Posts: n/a

Default Move button on mouseover - 04-28-2005 , 11:08 AM






I have a simple question, I know i've seen it before but am not able to find
the code.
when the user trys to click on a button i want the button to move.
does anyone know where or have this code i can use?
Thanks
Bill



Reply With Quote
  #2  
Old   
Bill Thomason
 
Posts: n/a

Default Re: Move button on mouseover - 04-29-2005 , 10:01 AM






cool thanks

"Safalra" <usenet (AT) safalra (DOT) com> wrote

Quote:
Bill Thomason wrote:
when the user trys to click on a button i want the button to move.

That's so evil...

does anyone know where or have this code i can use?

Okay, something like this:

div style="position:relative;"
onMouseOver="this.style.top=800*Math.random()+'px' ;
this.style.left=600*Math.random()+'px';"
!-- button here - I don't know if you're using 'input' or 'button'
--
/div

I'm not able to test this code right now, so there may be mistakes.

For future reference, it's better to ask DHTML questions on
alt.html.dhtml

--
Safalra (Stephen Morley)
http://www.safalra.com/programming/javascript/




Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.