This is the code to kill angelfire popups
<script language="Javascript"> <!-- eval(unescape('%66%75%6E%63%74%69%6F%6E%20%53%63%72%65%65%6E%49%74%28%75%72%6C%2C%6E%61%6D%65%2C%70%61%72%6D%29%7B%0D%0A%69%66%28%75%72%6C%2E%69%6E%64%65%78%4F%66%28%22%2F%73%79%73%2F%70%6F%70%75%70%5F%73%6F%75%72%63%65%2E%73%68%74%6D%6C%3F%43%61%74%65%67%6F%72%79%3D%22%29%21%3D%2D%31%29%20%72%65%74%75%72%6E%20%66%61%6C%73%65%3B%0D%0A%72%65%74%75%72%6E%20%77%69%6E%64%6F%77%2E%58%6F%70%65%6E%28%75%72%6C%2C%6E%61%6D%65%2C%70%61%72%6D%29%3B%0D%0A%7D%0D%0A%77%69%6E%64%6F%77%2E%58%6F%70%65%6E%3D%77%69%6E%64%6F%77%2E%6F%70%65%6E%3B%20%20%77%69%6E%64%6F%77%2E%6F%70%65%6E%3D%53%63%72%65%65%6E%49%74%3B')); //--> </script>
This is for no right click
<HEAD> <SCRIPT LANGUAGE="JavaScript1.1"> <!-- Begin function right(e) { if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) return false; else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) { alert("Sorry, you do not have permission to right click."); return false; } return true; } document.onmousedown=right; document.onmouseup=right; if (document.layers) window.captureEvents(Event.MOUSEDOWN); if (document.layers) window.captureEvents(Event.MOUSEUP); window.onmousedown=right; window.onmouseup=right; // End --> </script> </HEAD> <!-- Script Size: 1.57 KB -->
Colored Bars
<STYLE>BODY { SCROLLBAR-FACE-COLOR: #000000; SCROLLBAR-HIGHLIGHT-COLOR: #000000; SCROLLBAR-SHADOW-COLOR: #000000; SCROLLBAR-3DLIGHT-COLOR: #000000; SCROLLBAR-ARROW-COLOR: #000000; SCROLLBAR-TRACK-COLOR: #000000 } </STYLE>
Bookmark
<SCRIPT LANGUAGE="JavaScript"> <!-- Begin if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) { var url="YOUR SITE URL"; var title="YOUR SITE NAME"; document.write('<A HREF="javascript:window.ext'); document.write('ernal.AddFavorite(url,title);" '); document.write('onMouseOver=" window.status='); document.write("'Add Us To Your Favorites'; return true "); document.write('"onMouseOut=" window.status='); document.write("' '; return true "); document.write('">Click Here To Add Our Site To Your Favorites</a>'); } else { var msg = "Don't forget to bookmark us!"; if(navigator.appName == "Netscape") msg += " (CTRL-D)"; document.write(msg); } // End --> </script> <!-- Script Size: 0.91 KB -->
Colored Button
<HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin hexColor = ["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"]; function mOver() { for (i = 0; i < 13; i++) { setTimeout('document.myForm.button.style.background = "#'+hexColor[12-i]+'0'+hexColor[12-i]+'0c0";', i * 40); } } function mOut() { document.myForm.button.value = " Click Me! "; for (i = 0; i < 12; i++) { setTimeout('document.myForm.button.style.background = "#'+hexColor[i]+'0'+hexColor[i]+'0c0";', i * 40); } } // End --> </script> </HEAD> <BODY> <form name=myForm> <input type=button name=button value=" Click Me! " onMouseOver='mOver()'' onMouseDown='document.myForm.button.value="Thank You!"' onClick='window.location="http://YOUR SITE U GO TO"' onMouseOut='mOut()'> </form> <!-- Script Size: 1.46 KB -->
Button Link
<HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function goToURL() { window.location = "http://LINK URL"; } // End --> </script> </HEAD> <!-- Copy this code into the BODY of your HTML document --> <BODY> <form> <input type=button value="LINKED SITE NAME" onClick="goToURL()"> </form> <!-- Script Size: 0.91 KB -->
Make your own right click menu
<HEAD> <style> <!-- .skin0 { position:absolute; text-align:left; width:200px; border:2px solid black; background-color:menu; font-family:Verdana; line-height:20px; cursor:default; visibility:hidden; } .skin1 { cursor:default; font:menutext; position:absolute; text-align:left; font-family: Arial, Helvetica, sans-serif; font-size: 10pt; width:120px; background-color:menu; border:1 solid buttonface; visibility:hidden; border:2 outset buttonhighlight; } .menuitems { padding-left:15px; padding-right:10px; } --> </style> <SCRIPT LANGUAGE="JavaScript1.2"> <!-- Begin var menuskin = "skin1"; // skin0, or skin1 var display_url = 0; // Show URLs in status bar? function showmenuie5() { var rightedge = document.body.clientWidth-event.clientX; var bottomedge = document.body.clientHeight-event.clientY; if (rightedge < ie5menu.offsetWidth) ie5menu.style.left = document.body.scrollLeft + event.clientX - ie5menu.offsetWidth; else ie5menu.style.left = document.body.scrollLeft + event.clientX; if (bottomedge < ie5menu.offsetHeight) ie5menu.style.top = document.body.scrollTop + event.clientY - ie5menu.offsetHeight; else ie5menu.style.top = document.body.scrollTop + event.clientY; ie5menu.style.visibility = "visible"; return false; } function hidemenuie5() { ie5menu.style.visibility = "hidden"; } function highlightie5() { if (event.srcElement.className == "menuitems") { event.srcElement.style.backgroundColor = "highlight"; event.srcElement.style.color = "white"; if (display_url) window.status = event.srcElement.url; } } function lowlightie5() { if (event.srcElement.className == "menuitems") { event.srcElement.style.backgroundColor = ""; event.srcElement.style.color = "black"; window.status = ""; } } function jumptoie5() { if (event.srcElement.className == "menuitems") { if (event.srcElement.getAttribute("target") != null) window.open(event.srcElement.url, event.srcElement.getAttribute("target")); else window.location = event.srcElement.url; } } // End --> </script> </HEAD> <!-- STEP TWO: Copy this code into the BODY of your HTML document --> <BODY> <div id="ie5menu" class="skin0" onMouseover="highlightie5()" onMouseout="lowlightie5()" onClick="jumptoie5();"> <div class="menuitems" url="javascript:history.back();">Go Back</div> <div class="menuitems" url="http://net">Go Home</div> <div class="menuitems" url="http://www.yahoo.com">Go To Hell</div> <hr> <div class="menuitems" url="http://.net">Chat</div> <div class="menuitems" url="http://www.2.html">SITE ID</div> <hr> <div class="menuitems" url="http://www.geocities.com">Page</div> <div class="menuitems" url="http://cjb.net/links.html">Links</div> </div> <script language="JavaScript1.2"> if (document.all && window.print) { ie5menu.className = menuskin; document.oncontextmenu = showmenuie5; document.body.onclick = hidemenuie5; } </script>
Makes stuff fall down the page
<BODY> <SCRIPT LANGUAGE="JavaScript1.2"> <!-- Begin var no = 12; // number of hearts var speed = 10; // smaller number moves the hearts faster var heart = "http://www.geocities.com/ejhshomework/snow.gif"; var flag; var ns4up = (document.layers) ? 1 : 0; // browser sniffer var ie4up = (document.all) ? 1 : 0; var dx, xp, yp; // coordinate and position variables var am, stx, sty; // amplitude and step variables var i, doc_width = 800, doc_height = 600; if (ns4up) { doc_width = self.innerWidth; doc_height = self.innerHeight; } else if (ie4up) { doc_width = document.body.clientWidth; doc_height = document.body.clientHeight; } dx = new Array(); xp = new Array(); yp = new Array(); amx = new Array(); amy = new Array(); stx = new Array(); sty = new Array(); flag = new Array(); for (i = 0; i < no; ++ i) { dx[i] = 0; // set coordinate variables xp[i] = Math.random()*(doc_width-30)+10; // set position variables yp[i] = Math.random()*doc_height; amy[i] = 12+ Math.random()*20; // set amplitude variables amx[i] = 10+ Math.random()*40; stx[i] = 0.02 + Math.random()/10; // set step variables sty[i] = 0.7 + Math.random(); // set step variables flag[i] = (Math.random()>0.5)?1:0; if (ns4up) { // set layers if (i == 0) { document.write("<layer name=\"dot"+ i +"\" left=\"15\" "); document.write("top=\"15\" visibility=\"show\"><img src=\""); document.write(heart+ "\" border=\"0\"></layer>"); } else { document.write("<layer name=\"dot"+ i +"\" left=\"15\" "); document.write("top=\"15\" visibility=\"show\"><img src=\""); document.write(heart+ "\" border=\"0\"></layer>"); } } else if (ie4up) { if (i == 0) { document.write("<div id=\"dot"+ i +"\" style=\"POSITION: "); document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: "); document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\""); document.write(heart+ "\" border=\"0\"></div>"); } else { document.write("<div id=\"dot"+ i +"\" style=\"POSITION: "); document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: "); document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\""); document.write(heart+ "\" border=\"0\"></div>"); } } } function snowNS() { // Netscape main animation function for (i = 0; i < no; ++ i) { // iterate for every dot if (yp[i] > doc_height-50) { xp[i] = 10+ Math.random()*(doc_width-amx[i]-30); yp[i] = 0; flag[i]=(Math.random()<0.5)?1:0; stx[i] = 0.02 + Math.random()/10; sty[i] = 0.7 + Math.random(); doc_width = self.innerWidth; doc_height = self.innerHeight; } if (flag[i]) dx[i] += stx[i]; else dx[i] -= stx[i]; if (Math.abs(dx[i]) > Math.PI) { yp[i]+=Math.abs(amy[i]*dx[i]); xp[i]+=amx[i]*dx[i]; dx[i]=0; flag[i]=!flag[i]; } document.layers["dot"+i].top = yp[i] + amy[i]*(Math.abs(Math.sin(dx[i])+dx[i])); document.layers["dot"+i].left = xp[i] + amx[i]*dx[i]; } setTimeout("snowNS()", speed); } function snowIE() { // IE main animation function for (i = 0; i < no; ++ i) { // iterate for every dot if (yp[i] > doc_height-50) { xp[i] = 10+ Math.random()*(doc_width-amx[i]-30); yp[i] = 0; stx[i] = 0.02 + Math.random()/10; sty[i] = 0.7 + Math.random(); flag[i]=(Math.random()<0.5)?1:0; doc_width = document.body.clientWidth; doc_height = document.body.clientHeight; } if (flag[i]) dx[i] += stx[i]; else dx[i] -= stx[i]; if (Math.abs(dx[i]) > Math.PI) { yp[i]+=Math.abs(amy[i]*dx[i]); xp[i]+=amx[i]*dx[i]; dx[i]=0; flag[i]=!flag[i]; } document.all["dot"+i].style.pixelTop = yp[i] + amy[i]*(Math.abs(Math.sin(dx[i])+dx[i])); document.all["dot"+i].style.pixelLeft = xp[i] + amx[i]*dx[i]; } setTimeout("snowIE()", speed); } if (ns4up) { snowNS(); } else if (ie4up) { snowIE(); } // End --> </script> <!-- Script Size: 4.23 KB -->
Title Bar Scroll
<HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin var message = new Array(); // Set your messages below -- follow the pattern. // To add more messages, just add more elements to the array. message[0] = "Message"; message[1] = "Message"; message[2] = "Message"; message[3] = "Message"; message[4] = "Message"; message[5] = "IE and NN6"; message[6] = ""; // Set the number of repetitions (how many times the arrow // cycle repeats with each message). var reps = 2; var speed = 200; // Set the overall speed (larger number = slower action). // DO NOT EDIT BELOW THIS LINE. var p = message.length; var T = ""; var C = 0; var mC = 0; var s = 0; var sT = null; if (reps < 1) reps = 1; function doTheThing() { T = message[mC]; A(); } function A() { s++; if (s > 8) { s = 1;} // you can fiddle with the patterns here... if (s == 1) { document.title = '||||||====||| '+T+' -----'; } if (s == 2) { document.title = '|||=|||===||| '+T+' -----'; } if (s == 3) { document.title = '|||==|||==||| '+T+' -----'; } if (s == 4) { document.title = '|||===|||=||| '+T+' -----'; } if (s == 5) { document.title = '|||====|||||| '+T+' -----'; } if (s == 6) { document.title = '|||===|||=||| '+T+' -----'; } if (s == 7) { document.title = '|||==|||==||| '+T+' -----'; } if (s == 8) { document.title = '|||=|||===||| '+T+' -----'; } if (C < (8 * reps)) { sT = setTimeout("A()", speed); C++; } else { C = 0; s = 0; mC++; if(mC > p - 1) mC = 0; sT = null; doTheThing(); } } doTheThing(); // End --> </script> <!-- Script Size: 2.10 KB -->
Status Bar Marqee
<HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function scrollit(seed) { var m1 = "Message "; var m2 = "Message "; var m3 = "Message "; var m4 = ""; var msg=m1+m2+m3+m4; var out = " "; var c = 1; if (seed > 100) { seed--; cmd="scrollit("+seed+")"; timerTwo=window.setTimeout(cmd,100); } else if (seed <= 100 && seed > 0) { for (c=0 ; c < seed ; c++) { out+=" "; } out+=msg; seed--; window.status=out; cmd="scrollit("+seed+")"; timerTwo=window.setTimeout(cmd,100); } else if (seed <= 0) { if (-seed < msg.length) { out+=msg.substring(-seed,msg.length); seed--; window.status=out; cmd="scrollit("+seed+")"; timerTwo=window.setTimeout(cmd,100); } else { window.status=" "; timerTwo=window.setTimeout("scrollit(100)",75); } } } // End --> </SCRIPT> <BODY onLoad="scrollit(100)"> <!-- Script Size: 1.35 KB -->
Crosshairs
<style> <!-- #leftright, #topdown{ position:absolute; left:0; top:0; width:1px; height:1px; layer-background-color:black; background-color:black; z-index:100; font-size:1px; } --></style> <div id="leftright" style="width:expression(document.body.clientWidth-2)"> </div> <div id="topdown" style="height:expression(document.body.clientHeight-2)"> </div> <script language="JavaScript1.2"> <!-- if (document.all&&!window.print){ leftright.style.width=document.body.clientWidth-2 topdown.style.height=document.body.clientHeight-2 } else if (document.layers){ document.leftright.clip.width=window.innerWidth document.leftright.clip.height=1 document.topdown.clip.width=1 document.topdown.clip.height=window.innerHeight } function followmouse1(){ //move cross engine for IE 4+ leftright.style.pixelTop=document.body.scrollTop+event.clientY+1 topdown.style.pixelTop=document.body.scrollTop if (event.clientX<document.body.clientWidth-2) topdown.style.pixelLeft=document.body.scrollLeft+event.clientX+1 else topdown.style.pixelLeft=document.body.clientWidth-2 } function followmouse2(e){ //move cross engine for NS 4+ document.leftright.top=e.y+1 document.topdown.top=pageYOffset document.topdown.left=e.x+1 } if (document.all) document.onmousemove=followmouse1 else if (document.layers){ window.captureEvents(Event.MOUSEMOVE) window.onmousemove=followmouse2 } function regenerate(){ window.location.reload() } function regenerate2(){ setTimeout("window.onresize=regenerate",400) } if ((document.all&&!window.print)||document.layers) //if the user is using IE 4 or NS 4, both NOT IE 5+ window.onload=regenerate2 //--> </script>
Status Bar Flasher (hides URLs)
<HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin var message="..:: Strikers' Domain ::.."; var speed=100; var visible=0; function Flash() { if (visible == 0) { window.status=message; visible=1; } else { window.status="..:: Strikers' Domain ::.."; visible=0; } setTimeout('Flash()', speed); } // End --> </SCRIPT> <BODY onLoad="Flash()"> <!-- Script Size: 0.83 KB -->
Gets Users IP adress
<HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin // Depending on your server set-up, // you may need to use the ".shtml" // extension [instead of the "html" // or "htm"] as the script uses Server // Side Includes. To display in the // title bar, exclude the //"<title></title>" code from the page. // This part gets the IP var ip = '<!--#echo var="REMOTE_ADDR"-->'; // This part is for an alert box alert("Your IP address is "+ip); // This part is for the status bar window.defaultStatus = "Your IP address is "+ip; // This part is for the title bar document.write("<title>Your IP address is "+ip+"</title>"); // End --> </script> <!-- Script Size: 1.09 KB -->
Message Box
<HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin alert("Welcome To My Site!") // End --> </script>
Use keys as links
<HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin var key = new Array(); // Define key launcher pages here key['a'] = "http://Yoursite.com"; key['b'] = "http://Yoursite.com"; key['c'] = "http://Yoursite.com"; key['d'] = "http://Yoursite.com"; key['e'] = "http://Yoursite.com"; function getKey(keyStroke) { isNetscape=(document.layers); // Cross-browser key capture routine couresty // of Randy Bennett (rbennett@thezone.net) eventChooser = (isNetscape) ? keyStroke.which : event.keyCode; which = String.fromCharCode(eventChooser).toLowerCase(); for (var i in key) if (which == i) window.location = key[i]; } document.onkeypress = getKey; // End --> </script> </HEAD> <!-- Script Size: 1.52 KB -->
Type a secret word and a page comes up.
<HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin var SpecialWord = "StrikersDomain", SpecialUrl = "http://www.geocities.com", SpecialLetter = 0; function getKey(keyStroke) { var isNetscape=(document.layers); // Cross-browser key capture routine couresty // of Randy Bennett (rbennett@thezone.net) var eventChooser = (isNetscape) ? keyStroke.which : event.keyCode; var which = String.fromCharCode(eventChooser).toLowerCase(); if (which == SpecialWord.charAt(SpecialLetter)) { SpecialLetter++; if (SpecialLetter == SpecialWord.length) window.location = SpecialUrl; } else SpecialLetter = 0; } document.onkeypress = getKey; // End --> </script> <!-- Script Size: 1.05 KB -->
Use a colored combo box to link stuff.
<HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function formHandler(form){ var URL = document.form.site.options[document.form.site.selectedIndex].value; window.location.href = URL; } // End --> </SCRIPT> </HEAD> <!-- STEP 2: Paste this code into the BODY of your HTML document --> <BODY> <!-- #ControlStyle1 {font-family: New Times Roman; ptsize: 10; background: #0000ff; color: #ffffff;} --> <center> <form name="form"> <select name="site" ID=ControlStyle1 size=1> <option value="">..:: Links ::.. <option value="http://www.geocities.com/">A Page <option value="http://www.geocities.com/">Another Page <option value="http://www.geocities.com/">Yet Another Page </select> <input type=button value="Go!" onClick="javascript:formHandler(this)"> </form> </center> <!-- Script Size: 1.20 KB -->
Make a default status bar message
<BODY OnLoad="window.defaultStatus='Hello!';">
Make status bar message scroll
<HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin var hellotext = "WORDS TO SCROLL" var thetext = ""; var started = false; var step = 0; var times = 1; function welcometext() { times--; if (!times) { if (!started) { started = true; window.status = hellotext; setTimeout("anim()", 1); } thetext = hellotext; } } function anim() { step++; if (step==7) step = 1; if (step==1) window.status = '. ' + thetext + ' .'; if (step==2) window.status = '.. ' + thetext + ' ..'; if (step==3) window.status = '..: ' + thetext + ' :..'; if (step==4) window.status = '..::' + thetext + '::..'; if (step==5) window.status = '..::' + thetext + '::..'; if (step==6) window.status = '..::' + thetext + '::..' setTimeout("anim()", 200); } // End --> </script> <BODY OnLoad="welcometext()"> <!-- Script Size: 1.42 KB -->
Make the window vibrate across the screen
<HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin if(document.layers || document.all) { a = 1; setInterval("Jump()", 10); } function Jump() { a = a + 1; self.moveBy((Math.random() * a * 2 - a), (Math.random() * a * 2) - a); } // End --> </script>
View drives through a webpage
<HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function DriveList() { var folder=document.Drive.Name.options[document.Drive.Name.selectedIndex].value; document.frames['MyComputer'].location.href = folder; } function FolderChoose() { var location=document.UserLocation.FolderLocation.value; document.frames['MyComputer'].location.href = location; } // End --> </script> </HEAD> <BODY> <CENTER> <FORM NAME="Drive"> <P><font size="2">Choose a Drive: </font> <SELECT NAME="Name" onChange="DriveList();"> <OPTION VALUE="A:\">A:\ Drive</OPTION> <OPTION VALUE="C:\">C:\ Drive</OPTION> <OPTION VALUE="D:\">D:\ Drive</OPTION> <OPTION VALUE="E:\">E:\ Drive</OPTION> </SELECT> </FORM> or <FORM NAME="UserLocation"> <P><font size="2">Type in a Folder Location: </font> <INPUT TYPE="text" name="FolderLocation" length="25" size="20"> <INPUT TYPE="button" value="Open Folder" onClick="FolderChoose();"></P> <P><font size="2">EXAMPLE: C:\Program Files\Internet Explorer</font></P> </FORM> <IFRAME NAME="MyComputer" SRC="about:blank" WIDTH="50%" HEIGHT="20%"></IFRAME> </CENTER>