![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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/ |
![]() |
| Thread Tools | |
| Display Modes | |
| |