Post Your Cool Javascript - Limpkinw.Com

Announcement

Collapse
No announcement yet.

Post Your Cool Javascript

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • -$mev-
    started a topic Post Your Cool Javascript

    Post Your Cool Javascript

    Every1 post your cool javascripts and html things, i'll start off with this:

    All u do is paste this into notepad and save it as .html

    <html><head>
    <meta http-equiv="Content-Language" content="en-us">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <title>-$mev-'s glow</title><base target="_self">
    </head>
    <body bgcolor="#000000" text="#FFFF00" link="#00FF00" vlink="#00FF00" alink="#00FF00">

    <span id="theText" style="width:100%">
    <h3 align="center"><font color="#000000"><font size="+5">-$mev-</font>
    </font><font color="#666666"><script> // ^-this is the text that is shown
    <!--
    //can be modified from here
    var from = 5; //the animation start value
    var to = 11; //the animation end value
    var delay = 55; //the animation speed
    var glowColor = "blue"; //the color of the text
    //no more editing
    var i = to;
    var j = 0;
    textPulseDown();
    function textPulseUp()
    **
    if (!document.all)
    return
    if (i < to)
    **
    theText.style.filter = "Glow(Color=" + glowColor + ", Strength=" + i + ")";
    i++;
    theTimeout = setTimeout('textPulseUp()',delay);
    return 0;
    }
    if (i = to)
    **
    theTimeout = setTimeout('textPulseDown()',delay);
    return 0;
    }
    }

    function textPulseDown()
    **
    if (!document.all)
    return
    if (i > from)
    **
    theText.style.filter = "Glow(Color=" + glowColor + ", Strength=" + i + ")";
    i--;
    theTimeout = setTimeout('textPulseDown()',delay);
    return 0;
    }
    if (i = from)
    **
    theTimeout = setTimeout('textPulseUp()',delay);
    return 0;
    }
    }
    //-->
    </script></font></h3></span>

  • -vegeta-
    replied
    cool

    Leave a comment:

Working...
X