FREE CODE Friday, 10.20.2017, 0:39 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
  • HTML table placeholder Have(0) reviews faxuhi
  • Html graphic bullets Have(0) reviews faxuhi
  • Different times of the world by the users choice from a list Have(0) reviews faxuhi
  • Mouseover Alert HTML Script Have(0) reviews faxuhi
  • Redirect to another page and link automatically to other pg Have(0) reviews faxuhi
  • Combo box link box to browse your website easily Have(0) reviews faxuhi
  • Message to user by clicking a button Have(0) reviews faxuhi
  • Background changing color effect 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 11
    Forum » HTML Codes » six stars around the the mouse cursor » six stars around the the mouse cursor
    six stars around the the mouse cursor
    faxuhiDate: Monday, 07.25.2011, 10:50 PM | Message # 1
    Colonel
    Group: Administrators
    Messages: 189
    Reputation: 0
    Status: Offline
    Code


    <!--<head>-->
    <!--</head>-->
    <!--<body>-->
    <SCRIPT language="JavaScript">
    if (document.all){
    colours=new Array('00ff00','ffff00','ff0000','ff00ff','0000ff','ee00ee','8470ff','FFBD08','DE2929')
    amount=colours.length;
    YgetDelay=0,XgetDelay=0,Ydelay=0,Xdelay=0,step=0.2,currStep=0,my=0,mx=0;
    document.write('<div id="ie" style="position:absolute;top:0;left:0;"><div style="position:relative">');
    for (i=0; i < amount; i++)
    document.write('<div id="iestars" style="position:absolute;top:0px;left:0px;height:50px;width:50px;font-family:Courier New;font-size:5px;color:'+colours[i]+';padding-top:20px;text-align:center">.</div>');
    document.write('</div></div>');
    ini=1;
    gstep=1;
    function iMouse(){
    my=event.y;mx=event.x;
    }
    document.onmousemove=iMouse
    function dim(){
    ini-=gstep;
    dt=setTimeout('dim()',10);
    if (ini < 3){
    clearTimeout(dt);
    glow();
    }
    }
    function glow(){
    ini+=gstep;
    gt=setTimeout('glow()',100);
    if (ini > 15){
    clearTimeout(gt);
    dim();
    }
    }
    function stars(){
    ie.style.top=document.body.scrollTop;
    for (i=0; i < amount; i++)
    {
    var layer=iestars[i].style;  
    layer.filter='glow(color='+colours[i]+', strength='+ini+')';
    layer.top= Ydelay+100*Math.sin((5*Math.sin((currStep-15.99)/10))+i*70)*Math.sin((currStep)/10)*Math.cos((currStep+i*25)/10);  
    layer.left=Xdelay+180*Math.cos((5*Math.sin((currStep-15.99)/10))+i*70)*Math.sin((currStep)/10)*Math.cos((currStep+i*25)/10);
    }
    currStep+=step;
    }
    function delay(){
    Ydelay = YgetDelay+=(my-YgetDelay)*1/20;
    Xdelay = XgetDelay+=(mx-XgetDelay)*1/20;
    stars();
    setTimeout('delay()',7);
    }
    delay();
    glow();
    }
    </SCRIPT>
    <!--</body>-->
    <!--</html>-->

     
    Forum » HTML Codes » six stars around the the mouse cursor » six stars around the the mouse cursor
    Page 1 of 11
    Search:

    Copyright MyCorp © 2017 Website builderuCoz