Skip to comments.
Trash this thread. Do your worst.
Posted on 09/26/2001 1:50:05 AM PDT by John Robinson
click here to read article
Navigation: use the links below to view more comments.
first previous 1-20 ... 121-140, 141-160, 161-180 ... 421-428 next last
To: John Robinson
To: notyourregularhandle
onUnload="window.alert('Don\'t forget to bookmark this page!')"
To: notyourregularhandle
var x=0, y=20, dx=4, dy=4, interval=10; var win= window.open('javascript:"Floaty!
This window will move around the available screen space on your computer!!"', "","width=200,height=100,screenY=20"); win.moveTo(x,y); var intervalID=window.setInterval("bounce()",interval); var sw=screen.availWidth-210 var sh=screen.availHeight-100 function restart(){ interval=10; win= window.open('javascript:"Floaty!This window will move around the available screen space on your computer!!"', "","width=200,HEIGHT=110,screenY=20"); x=0, y=20//, dx=4,dy=4; win.moveTo(x,y); intervalID=window.setInterval("bounce()",interval); bounce() } function bounce(){ if (win.closed) { clearInterval(intervalID); return; } if ((x+dx > sw) || (x+dx < 0)) dx = -dx; if ((y+dy > sh) || (y+dy < 0)) dy = -dy; x += dx y += dy win.moveTo(x,y) } function slower(){ dx=dx/2,dy=dy/2 clearInterval(intervalID);win.close() restart() } function faster(){ dx=dx*2,dy=dy*2; if (dx>64) dx=64,dy=64; clearInterval(intervalID);win.close() restart() }
Click one of the function buttons
to slow down or speed up the window.
You can also close or reopen the window.
(with Netscape, the window will stall for a few seconds when it first hits the bottom of the screen)
To: notyourregularhandle
DARN!
To: notyourregularhandle
Some times a more random approach is needed. Chucking in a few loose tags here and there.
To: John Robinson
Hmmm. Let's try to have some improperly nested tags. Sometimes, you can get things to look just fine on one browser but not on another that way. |
But then, maybe something else. |
|