Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
- <meta http-equiv="Content-Language" content="en-us">
- <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
- <meta name="ProgId" content="FrontPage.Editor.Document">
- <title></title>
- </head>
- <body>
- <p>
- <script language="JavaScript1.2">
- //specify path to cursor image
- var cursorpath="http://www.javascriptfreecode.com/images/fly2.gif"
- if (document.layers)
- {document.write("<LAYER NAME='PoInTeRs' LEFT=800 TOP=10><img src='"+cursorpath+"' width=17 height=22></LAYER>")}
- else if (document.all){document.write("<div id='pOiNtErS' style='position:absolute;top:10px;left:10px;width:17px;height:22px;z-index:50'><img src='"+cursorpath+"' width=40 height=40></div>")}
- count=-1;
- move=1;
- function Curve(){
- abc=new Array(0,1,1,1,2,3,4,0,6,-1,-1,-1,-2,-3,-4,0,-6)
- for (i=0; i < abc.length; i++)
- {var C=Math.round(Math.random()*[i])}
- howbend=abc[C];
- setTimeout('Curve()',1900);
- return howbend;
- }
- ypos=100;
- xpos=100;
- degree = 600;
- function MoveRandom(){
- PathBend=degree+=howbend;//ok!
- y = 4*Math.sin(PathBend*Math.PI/180);
- x = 6*Math.cos(PathBend*Math.PI/180);
- if (document.layers){
- ypos+=y;
- xpos+=x;
- document.PoInTeRs.top=ypos+window.pageYOffset;
- document.PoInTeRs.left=xpos+window.pageXOffset;
- }
- else if (document.all){
- ypos+=y;
- xpos+=x;
- document.all.pOiNtErS.style.top=ypos+docu
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement