• Problems

    This line enable URL Rewriting . It must be enabled via the RewriteEngine directive! and if your .htaccess file is going to use rewrite rules, you should always include this line. Otherwise, you can’t be sure if its enabled or not. The string “on” is case insensitive.

Yet another cool "layers" effect. Strobe will fade your message in and out. Very neat!

 THREE STEPS TO INSTALL STROBE:

   1.  Paste the first code in the HEAD of your HTML document
   2.  Copy the onLoad event handler into the BODY tag
   3.  Add the last code in the BODY of your HTML document 

STEP ONE: Paste the first code in the HEAD of your HTML document


<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function setupStrobe() {
text = "JavaScript Source Code 2002";
var x=navigator.appVersion;
y=x.substring(0,4);
if(y>=4)strobeEffect();
}
var isNav=(navigator.appName.indexOf("Netscape")!=-1);
var colors=new Array(
"FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF",
"FFFFFF","F9F9F9","F1F1F1","E9E9E9","E1E1E1","D9D9D9",
"D1D1D1","C9C9C9","C1C1C1","B9B9B9","B1B1B1","A9A9A9",
"A1A1A1","999999","919191","898989","818181","797979",
"717171","696969","616161","595959","515151","494949",
"414141","393939","313131","292929","212121","191919",
"111111","090909","000000")

a=0,b=1;
function strobeEffect() {
color=colors[a];
aa="<font color="+color+">" + text + "</font>"
if(isNav) {
document.object1.document.write(aa);
document.object1.document.close();
}
else object1.innerHTML=aa;
a+=b;
if (a==38) b-=2;
if (a==0) b+=2;
xx=setTimeout("strobeEffect()",10);
}
// End -->
</SCRIPT>
STEP TWO:   Copy the onLoad event handler into the BODY tag
<BODY onLoad="setupStrobe()">

STEP THREE: Add the last code in the BODY of your HTML document

<div id="object1" style="position:absolute; visibility:show; left:25px; top:50px; z-index:2"></div>

No comments:

Post a Comment