FREE CODE Friday, 03.29.2024, 2:24 AM
Main | Registration | Login Welcome Guest | RSS
[ New messages · Members · Forum rules · Search · RSS ]
۞Forum Statistics۞
NEW TOPPIV
HOT TOPPIC
TOP MEMBERS
NEW MEMBERS
  • check code here Have(0) reviews faxuhi
  • Keywords meta Tags Have(0) reviews faxuhi
  • text box Have(0) reviews faxuhi
  • Page description Have(0) reviews faxuhi
  • marquee Have(0) reviews faxuhi
  • print your page Have(0) reviews faxuhi
  • choose your country Have(0) reviews faxuhi
  • check all - unchek all Have(0) reviews faxuhi
  • shadow text Have(0) reviews faxuhi
  • Beautiful text two Have(0) reviews faxuhi
  • Nice menu with java script <p1> Have(2) reviews faxuhi
  • Mouse Clock Have(1) reviews faxuhi
  • check code here Have(0) reviews faxuhi
  • Keywords meta Tags Have(0) reviews faxuhi
  • text box Have(0) reviews faxuhi
  • Page description Have(0) reviews faxuhi
  • marquee Have(0) reviews faxuhi
  • print your page Have(0) reviews faxuhi
  • choose your country Have(0) reviews faxuhi
  • check all - unchek all Have(0) reviews faxuhi
  • faxuhi[189]Bài
  • mcsnagger0022[0]Bài
  • thinknoodles[0]Bài
  • karaganis888[0]Bài
  • faxuhi [189]Bài
  • mcsnagger0022 [0]Bài
  • thinknoodles [0]Bài
  • karaganis888 [0]Bài
    • Page 1 of 1
    • 1
    Forum » HTML Codes » Six dots around the the mouse cursor » Six dots around the the mouse cursor
    Six dots around the the mouse cursor
    faxuhiDate: Monday, 07.25.2011, 10:49 PM | Message # 1
    Colonel
    Group: Administrators
    Messages: 189
    Reputation: 0
    Status: Offline
    Code
    <!--<body>-->
    <script language="JavaScript">
    function nMouse(evnt){
    Ypos = evnt.pageY;
    Xpos = evnt.pageX;
    }
    function iMouse() {
    Ypos = event.y+document.body.scrollTop;
    Xpos = event.x+document.body.scrollLeft;
    }
    function Comet() {
    var yBase = (document.layers)?window.innerHeight/4:window.document.body.clientHeight/4;
    var xBase = (document.layers)?window.innerWidth/4:window.document.body.clientWidth/4;
    for (i = 0; i < 14; i++){
    var randCol = Math.round(Math.random()*8);
    var layer = (document.layers)?document.layers['n'+i]:me[i].style;
    layer.top =Ypos + yBase*Math.cos((currStep+i*4)/12)*Math.cos(0.7+currStep/200);
    layer.left = Xpos + xBase*Math.sin((currStep+i*3)/10)*Math.sin(8.2+currStep/400);
    if (ns) layer.bgColor = Clrs[randCol];
    else
    layer.background = Clrs[randCol];
    }
    currStep += step;
    setTimeout("Comet()",10);
    }
    ns = (document.layers)?1:0;
    Clrs = new Array('ff0000','00ff00','ffffff','ff00ff','ffa500','ffff00','00ff00','ffffff','ff00ff');
    yBase = 0;
    xBase = 0;
    step = 3;
    currStep = 0;
    Ypos = 0;
    Xpos = 0;
    if (ns){
    for (i = 0; i < 14; i++)
    document.write('<LAYER NAME="n'+i+'" LEFT=0 TOP=0 CLIP="0,0,'+i/4+','+i/4+'"></LAYER>');
    window.captureEvents(Event.MOUSEMOVE);
    window.onMouseMove = nMouse;
    }
    else{
    document.write('<div style="position:absolute;top:0;left:0"><div style="position:relative">');
    for (i=0; i < 14; i++)
    {document.write('<div id="me" style="position:absolute;top:0;left:0;width:'+i/4+';height:'+i/4+';font-size:'+i/4+'"></div>');}
    document.write('</div></div>');
    document.onmousemove = iMouse;
    }
    window.onload = Comet;
    </script>
    <!--</body>-->
     
    Forum » HTML Codes » Six dots around the the mouse cursor » Six dots around the the mouse cursor
    • Page 1 of 1
    • 1
    Search:

    Copyright MyCorp © 2024 Website builderuCoz