FREE CODE Thursday, 07.19.2018, 10:33 PM
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 1
    • 1
    Forum » Web Javascript » Firelights after the mouse awesome code » Firelights after the mouse awesome code
    Firelights after the mouse awesome code
    faxuhiDate: Monday, 07.25.2011, 2:20 PM | Message # 1
    Colonel
    Group: Administrators
    Messages: 189
    Reputation: 0
    Status: Offline
    Code
    <STYLE TYPE="text/css">
    <!--

    BODY{
    overflow:scroll;
    overflow-x:hidden;
    }

    .s1
    {
       position  : absolute;
       font-size : 10pt;
       color     : blue;
       visibility: hidden;
    }

    .s2
    {
       position  : absolute;
       font-size : 18pt;
       color     : red;
      visibility : hidden;
    }

    .s3
    {
       position  : absolute;
       font-size : 14pt;
       color     : gold;
      visibility : hidden;
    }

    .s4
    {
       position  : absolute;
       font-size : 12pt;
       color     : lime;
      visibility : hidden;
    }

    //-->
    </STYLE>

    <DIV ID="div1" CLASS="s1">*</DIV>
    <DIV ID="div2" CLASS="s2">*</DIV>
    <DIV ID="div3" CLASS="s3">*</DIV>
    <DIV ID="div4" CLASS="s4">*</DIV>

    <SCRIPT LANGUAGE="javascript" TYPE="text/javascript">

    var nav = (document.layers);
    var tmr = null;
    var spd = 50;
    var x = 0;
    var x_offset = 5;
    var y = 0;
    var y_offset = 15;

    if(nav) document.captureEvents(Event.MOUSEMOVE);
    document.onmousemove = get_mouse;  

    function get_mouse(e)
    {     
       x = (nav) ? e.pageX : event.clientX+document.body.scrollLeft;
       y = (nav) ? e.pageY : event.clientY+document.body.scrollTop;
       x += x_offset;
       y += y_offset;
       beam(1);      
    }

    function beam(n)
    {
       if(n<5)
       {
         if(nav)
         {  
           eval("document.div"+n+".top="+y);
           eval("document.div"+n+".left="+x);
           eval("document.div"+n+".visibility='visible'");
         }   
         else
         {
           eval("div"+n+".style.top="+y);
           eval("div"+n+".style.left="+x);
           eval("div"+n+".style.visibility='visible'");
         }
         n++;
         tmr=setTimeout("beam("+n+")",spd);
       }
       else
       {
          clearTimeout(tmr);
          fade(4);
       }    
    }  

    function fade(n)
    {
       if(n>0)  
       {
         if(nav)eval("document.div"+n+".visibility='hidden'");
         else eval("div"+n+".style.visibility='hidden'");  
         n--;
         tmr=setTimeout("fade("+n+")",spd);
       }
       else clearTimeout(tmr);
    }  

    // -->
    </SCRIPT>
     
    Forum » Web Javascript » Firelights after the mouse awesome code » Firelights after the mouse awesome code
    • Page 1 of 1
    • 1
    Search:

    Copyright MyCorp © 2018 Website builderuCoz