Fspears
Members-
Content Count
20 -
Joined
-
Last visited
About Fspears
-
Rank
Newbie [Level 1]
-
Raining window <script LANGUAGE="JavaScript"><!-- Beginvar no = 50;var speed = 1;var ns4up = (document.layers) ? 1 : 0;var ie4up = (document.all) ? 1 : 0;var s, x, y, sn, cs;var a, r, cx, cy;var i, doc_width = 800, doc_height = 600;if (ns4up) {doc_width = self.innerWidth;doc_height = self.innerHeight;}elseif (ie4up) {doc_width = document.body.clientWidth;doc_height = document.body.clientHeight;}x = new Array();y = new Array();r = new Array();cx = new Array();cy = new Array();s = 8;for (i = 0; i < no; ++ i) { initRain();if (ns4up) {if (i == 0) {document.write("<layer name=\"dot"+ i +"\" left=\"1\" ");document.write("top=\"1\" visibility=\"show\"><font color=\"blue\">");document.write(",</font></layer>");}else {document.write("<layer name=\"dot"+ i +"\" left=\"1\" ");document.write("top=\"1\" visibility=\"show\"><font color=\"blue\">");document.write(",</font></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;\"><font color=\"blue\">");document.write(",</font></div>");}else {document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");document.write("visible; TOP: 15px; LEFT: 15px;\"><font color=\"blue\">");document.write(",</font></div>"); } }}function initRain() {a = 6;r[i] = 1;sn = Math.sin(a);cs = Math.cos(a);cx[i] = Math.random() * doc_width + 1;cy[i] = Math.random() * doc_height + 1;x[i] = r[i] * sn + cx[i];y[i] = cy[i];}function makeRain() {r[i] = 1;cx[i] = Math.random() * doc_width + 1;cy[i] = 1;x[i] = r[i] * sn + cx[i];y[i] = r[i] * cs + cy[i];}function updateRain() {r[i] += s;x[i] = r[i] * sn + cx[i];y[i] = r[i] * cs + cy[i];}function raindropNS() {for (i = 0; i < no; ++ i) {updateRain();if ((x[i] <= 1) || (x[i] >= (doc_width - 20)) || (y[i] >= (doc_height - 20))) {makeRain();doc_width = self.innerWidth;doc_height = self.innerHeight;}document.layers["dot"+i].top = y[i];document.layers["dot"+i].left = x[i];}setTimeout("raindropNS()", speed);}function raindropIE() {for (i = 0; i < no; ++ i) {updateRain();if ((x[i] <= 1) || (x[i] >= (doc_width - 20)) || (y[i] >= (doc_height - 20))) {makeRain();doc_width = document.body.clientWidth;doc_height = document.body.clientHeight;}document.all["dot"+i].style.pixelTop = y[i];document.all["dot"+i].style.pixelLeft = x[i];}setTimeout("raindropIE()", speed);}if (ns4up) {raindropNS();}elseif (ie4up) {raindropIE();}// End --></script>
-
Site inside your site: <iframe src="http://forums.xisto.com/no_longer_exists/ site do you want.htm"></iframe>
-
Closing a window <a href="javascript:self.close()">close your window</a>
-
Your screen resolution <script language="Javascript"><!-- if (self.screen) { // for NN4 and IE4 width = screen.width height = screen.height// Testing this first prevents firing the slow Java of NN4}else if (self.java) { // for NN3 with enabled Java var jkit = java.awt.Toolkit.getDefaultToolkit(); var scrsize = jkit.getScreenSize(); width = scrsize.width; height = scrsize.height; }else{ width = height = '?' // N2, E3, N3 w/Java off, probably Opera and WebTV}document.write("screen resolution:");document.write(width +"×"+ height)//or whatever based on the above results//--></script>
-
Fireworks: <layer name="a0" left=10 top=10 visibility=show bgcolor="#ffffff" clip="0,0,1,1"></layer><layer name="a1" left=10 top=10 visibility=show bgcolor="#fff000" clip="0,0,1,1"></layer><layer name="a2" left=10 top=10 visibility=show bgcolor="#ffa000" clip="0,0,1,1"></layer><layer name="a3" left=10 top=10 visibility=show bgcolor="#ff00ff" clip="0,0,1,1"></layer><layer name="a4" left=10 top=10 visibility=show bgcolor="#00ff00" clip="0,0,1,1"></layer><layer name="a5" left=10 top=10 visibility=show bgcolor="#ff00ff" clip="0,0,1,1"></layer><layer name="a6" left=10 top=10 visibility=show bgcolor="#ff0000" clip="0,0,1,1"></layer><layer name="a7" left=10 top=10 visibility=show bgcolor="#ffffff" clip="0,0,1,1"></layer><layer name="a8" left=10 top=10 visibility=show bgcolor="#fff000" clip="0,0,1,1"></layer><layer name="a9" left=10 top=10 visibility=show bgcolor="#ffa000" clip="0,0,1,1"></layer><layer name="a10" left=10 top=10 visibility=show bgcolor="#ff00ff" clip="0,0,1,1"></layer><layer name="a11" left=10 top=10 visibility=show bgcolor="#00ff00" clip="0,0,2,2"></layer><layer name="a12" left=10 top=10 visibility=show bgcolor="#0000ff" clip="0,0,2,2"></layer><layer name="a13" left=10 top=10 visibility=show bgcolor="#ff0000" clip="0,0,2,2"></layer><script language="JavaScript">/*Document firework script (By Kurt Gregg, kurt.grigg@virgin.net)Modified granted to Dynamic Drive to feature script in archiveFor full source and 100's more DHTML scripts, visit [url=http://dynamicdrive.com]http://dynamicdrive.com[/url]*/if (document.all)with(document){write('<div id="starsDiv" style="position:absolute;top:0px;left:0px">')write('<div style="position:relative;width:2px;height:2px;background:#ffffff;font-size:2px"></div>')write('<div style="position:relative;width:1px;height:1px;background:#fff000;font-size:1px"></div>')write('<div style="position:relative;width:1px;height:1px;background:#ffa000;font-size:1px"></div>')write('<div style="position:relative;width:1px;height:1px;background:#ff00ff;font-size:1px"></div>')write('<div style="position:relative;width:1px;height:1px;background:#00ff00;font-size:1px"></div>')write('<div style="position:relative;width:1px;height:1px;background:#0000ff;font-size:1px"></div>')write('<div style="position:relative;width:1px;height:1px;background:#FF0000;font-size:1px"></div>')write('<div style="position:relative;width:1px;height:1px;background:#ffffff;font-size:1px"></div>')write('<div style="position:relative;width:1px;height:1px;background:#fff000;font-size:1px"></div>')write('<div style="position:relative;width:1px;height:1px;background:#ffa000;font-size:1px"></div>')write('<div style="position:relative;width:1px;height:1px;background:#ff00ff;font-size:1px"></div>')write('<div style="position:relative;width:2px;height:2px;background:#ff00ff;font-size:2px"></div>')write('<div style="position:relative;width:1px;height:1px;background:#0000ff;font-size:1px"></div>')write('<div style="position:relative;width:1px;height:1px;background:#FF0000;font-size:1px"></div>')write('</div>')}var Clrs=new Array(9)Clrs[0]='ff0000';Clrs[1]='00ff00';Clrs[2]='000aff';Clrs[3]='ff00ff';Clrs[4]='ffa500';Clrs[5]='ffff00';Clrs[6]='00ff00';Clrs[7]='ffffff';Clrs[8]='fffff0';var sClrs=new Array(5)sClrs[0]='ffa500';sClrs[1]='55ff66';sClrs[2]='AC9DFC';sClrs[3]='fff000';sClrs[4]='fffff0';var yBase;var xBase;var step;var currStep = 0;var Xpos = 1;var Ypos = 1;var initialStarColor='ffa000';var Mtop=250;var Mleft=250;function Fireworks() {if (document.all){yBase = window.document.body.offsetHeight/3;xBase = window.document.body.offsetWidth/8;}else if (document.layers){yBase = window.innerHeight/3;xBase = window.innerWidth/8;}if (document.all){step=5;for ( i = 0 ; i < starsDiv.all.length ; i++ ){for (ai=0; ai < Clrs.length; ai++){var c=Math.round(Math.random()*[ai]);}if (currStep < 90)starsDiv.all[i].style.background=initialStarColor;if (currStep > 90)starsDiv.all[i].style.background=Clrs[c];starsDiv.all[i].style.top = Mtop + yBase*Math.sin((currStep+i*5)/3)*Math.sin(550+currStep/100)starsDiv.all[i].style.left = Mleft + yBase*Math.cos((currStep+i*5)/3)*Math.sin(550+currStep/100)}}else if (document.layers){step = 5;for ( j = 0 ; j < 14 ; j++ ) //number of NS layers!{var templayer="a"+jfor (ai=0; ai < Clrs.length; ai++){var c=Math.round(Math.random()*[ai]);}if (currStep < 90)document.layers[templayer].bgColor=initialStarColor;if (currStep > 90)document.layers[templayer].bgColor=Clrs[c];document.layers[templayer].top = Mtop + yBase*Math.sin((currStep+j*5)/3)*Math.sin(550+currStep/100)document.layers[templayer].left = Mleft + yBase*Math.cos((currStep+j*5)/3)*Math.sin(550+currStep/100)}}currStep+= step;//window.status=currStep;T=setTimeout("Fireworks()",5);if (currStep==220){currStep=-10;for (n=0; n < sClrs.length; n++){var k=Math.round(Math.random()*n);}initialStarColor=sClrs[k];if (document.all){Dtop=window.document.body.clientHeight-250;Dleft=xBase*3.5;Mtop=Math.round(Math.random()*Dtop);Mleft=Math.round(Math.random()*Dleft);document.all.starsDiv.style.top=Mtop+document.body.scrollTop;document.all.starsDiv.style.left=Mleft+document.body.scrollLeft;}else if (document.layers){Dleft=window.innerWidth-100;Dtop=window.innerHeight-100;Mtop=Math.round(Math.random()*Dtop+window.pageYOffset);Mleft=Math.round(Math.random()*Dleft+window.pageXOffset);document.layers[templayer].top=Mtop;document.layers[templayer].left=Mleft;}if ((Mtop < 20) || (Mleft < 20)){Mtop+=90;Mleft+=90;} }}if (document.all||document.layers)Fireworks();</script>
-
Words following the mouse pointer: <html> <head> <title>mouse</title> <style>.spanstyle { COLOR: white; FONT-FAMILY: Verdana; FONT-SIZE: 8pt; FONT-WEIGHT: bold; POSITION: absolute; TOP: -50px; VISIBILITY: visible } </style> <script language="JavaScript"> var x, y; var step = 10; var flag = 0; var message = "your text"; message = message.split(""); var xpos = new Array(); for (i = 0; i <= message.length - 1; i++) { xpos[i] = -50; } var ypos = new Array(); for (i = 0; i <= message.length - 1; i++) { ypos[i]= -50; } function handlerMM(e) { x = (document.layers) ? e.pageX : document.body.scrollLeft + event.clientX; y = (document.layers) ? e.pageY : document.body.scrollTop + event.clientY; flag = 1; } function makesnake() { if (flag == 1 && document.all) { for (i = message.length - 1; i >= 1; i--) { xpos[i] = xpos[i - 1] + step; ypos[i] = ypos[i - 1]; } xpos[0] = x + step; ypos[0] = y; for (i = 0; i < message.length - 1; i++) { var thisspan = eval("span" + (i) + ".style"); thisspan.posLeft = xpos[i]; thisspan.posTop = ypos[i]; } } else if (flag==1 && document.layers) { for (i = message.length - 1; i >= 1; i--) { xpos[i] = xpos[i - 1] + step; ypos[i] = ypos[i - 1]; } xpos[0] = x + step; ypos[0] = y; for (i = 0; i < message.length - 1; i++) { var thisspan = eval("document.span" + i); thisspan.left = xpos[i]; thisspan.top = ypos[i]; } } var timer = setTimeout("makesnake()", 10); } // End --> </script> </head> <body onload="makesnake()" style="overflow: hidden; WIDTH: 100%"> <script language="JavaScript"> <!-- Begin for (i = 0; i <= message.length-1; i++) { document.write("<span id='span"+i+"' class='spanstyle'>"); document.write(message[i]); document.write("</span>"); } if (document.layers) { document.captureEvents(Event.MOUSEMOVE); } document.onmousemove = handlerMM; // End --> </script> <//--><//"--><!-- VC layer --> <script LANGUAGE="JavaScript"> <!-- document.write('<LAYER SRC="' + ValueBanner + '&t=html" WIDTH="' + IWidth + '" '); document.write('HEIGHT="' + IHeight + '" VISIBILITY="hide" onLoad='); document.write('"moveToAbsolute(VC.pageX,VC.pageY); clip.width=' + IWidth + '; '); document.write('clip.height=' + IHeight + '; visibility=\'show\'"></LAYER>'); // --> </script> <!-- vc layer --> </body> </html> HTML Fixed by Lhunath
-
<html> <head> <script> function compute(obj) {obj.expr.value = eval(obj.expr.value)} var one = '1' var two = '2' var three = '3' var four = '4' var five = '5' var six = '6' var seven = '7' var eight = '8' var nine = '9' var zero = '0' var plus = '+' var minus = '-' var multiply = '*' var divide = '/' var decimal = '.' function enter(obj, string) {obj.expr.value += string} function clear(obj) {obj.expr.value = ''} </script> </head> <body> <p align="center"><font color="#000000" size="3" face="Verdana, Arial, Helvetica, sans-serif"><strong></strong></font><strong> </strong></p> <form name="calc"> <div align="center"><center><table border="1" bgcolor="#FFEAFF"> <tr> <td colspan="4"><input type="text" size="30" name="expr" action="compute(this.form)"> </td> </tr> <tr> <td><p align="center"><input type="button" value=" 7 " onclick="enter(this.form, seven)"> </p> </td> <td><p align="center"><input type="button" value=" 8 " onclick="enter(this.form, eight)"> </p> </td> <td><p align="center"><input type="button" value=" 9 " onclick="enter(this.form, nine)"> </p> </td> <td><p align="center"><input type="button" value=" / " onclick="enter(this.form, divide)"> </p> </td> </tr> <tr> <td><p align="center"><input type="button" value=" 4 " onclick="enter(this.form, four)"> </p> </td> <td><p align="center"><input type="button" value=" 5 " onclick="enter(this.form, five)"> </p> </td> <td><p align="center"><input type="button" value=" 6 " onclick="enter(this.form, six)"> </p> </td> <td><p align="center"><input type="button" value=" * " onclick="enter(this.form, multiply)"> </p> </td> </tr> <tr> <td><p align="center"><input type="button" value=" 1 " onclick="enter(this.form, one)"> </p> </td> <td><p align="center"><input type="button" value=" 2 " onclick="enter(this.form, two)"> </p> </td> <td><p align="center"><input type="button" value=" 3 " onclick="enter(this.form, three)"> </p> </td> <td><p align="center"><input type="button" value=" - " onclick="enter(this.form, minus)"> </p> </td> </tr> <tr> <td colspan="2"><p align="center"><input type="button" value=" 0 " onclick="enter(this.form, zero)"> </p> </td> <td><p align="center"><input type="button" value=" . " onclick="enter(this.form, decimal)"> </p> </td> <td><p align="center"><input type="button" value=" + " onclick="enter(this.form, plus)"> </p> </td> </tr> <tr> <td colspan="2"><p align="center"><input type="button" value=" = " onclick="compute(this.form)"> </p> </td> <td colspan="2"><p align="center"><input type="reset" value="AC" onclick="clear(this.form)"> </p> </td> </tr> </table> </center></div> </form> </body> </html> HTML Fixed by Lhunath
-
code to get ip adress <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 IPvar ip = '<!--#echo var="REMOTE_ADDR"-->';// This part is for an alert boxalert("Your IP address is "+ip);// This part is for the status barwindow.defaultStatus = "Your IP address is "+ip;// This part is for the title bardocument.write("<title>Your IP address is "+ip+"</title>");// End --></script>
-
code for 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>
-
code to 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> </head> <body OnLoad="welcometext()"> HTML Fixed by Lhunath
-
code to make 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 &amp;amp;amp;amp;amp;&amp;amp;amp;amp;amp; 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> </head> <body onLoad="scrollit(100)"> HTML Fixed by Lhunath
-
code to stop ppl right clicking your site <script language="JavaScript">var message="";///////////////////////////////////function clickIE() {if (document.all) {(message);return false;}}function clickNS(e) {if(document.layers||(document.getElementById&amp;amp;amp;amp;&amp;amp;amp;amp;!document.all)) {if (e.which==2||e.which==3) {(message);return false;}}}if (document.layers){document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}</script>
-
code to make pop up box <script language="JavaScript1.2"> var ns4=document.layers var ie4=document.all var ns6=document.getElementById&amp;amp;amp;amp;&amp;amp;amp;amp;!document.all //drag drop function for NS 4//// ///////////////////////////////// var dragswitch=0 var nsx var nsy var nstemp function drag_dropns(name){ if (!ns4) return temp=eval(name) temp.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP) temp.onmousedown=gons temp.onmousemove=dragns temp.onmouseup=stopns } function gons(e){ temp.captureEvents(Event.MOUSEMOVE) nsx=e.x nsy=e.y } function dragns(e){ if (dragswitch==1){ temp.moveBy(e.x-nsx,e.y-nsy) return false } } function stopns(){ temp.releaseEvents(Event.MOUSEMOVE) } //drag drop function for ie4+ and NS6//// ///////////////////////////////// function drag_drop(e){ if (ie4&amp;amp;amp;amp;&amp;amp;amp;amp;dragapproved){ crossobj.style.left=tempx+event.clientX-offsetx crossobj.style.top=tempy+event.clientY-offsety return false } else if (ns6&amp;amp;amp;amp;&amp;amp;amp;amp;dragapproved){ crossobj.style.left=tempx+e.clientX-offsetx crossobj.style.top=tempy+e.clientY-offsety return false } } function initializedrag(e){ crossobj=ns6? document.getElementById("showimage") : document.all.showimage var firedobj=ns6? e.target : event.srcElement var topelement=ns6? "HTML" : "BODY" while (firedobj.tagName!=topelement&amp;amp;amp;amp;&amp;amp;amp;amp;firedobj.id!="dragbar"){ firedobj=ns6? firedobj.parentNode : firedobj.parentElement } if (firedobj.id=="dragbar"){ offsetx=ie4? event.clientX : e.clientX offsety=ie4? event.clientY : e.clientY tempx=parseInt(crossobj.style.left) tempy=parseInt(crossobj.style.top) dragapproved=true document.onmousemove=drag_drop } } document.onmousedown=initializedrag document.onmouseup=new Function("dragapproved=false") ////drag drop functions end here////// function hidebox(){ if (ie4||ns6) crossobj.style.visibility="hidden" else if (ns4) document.showimage.visibility="hide" } </script> </head> <body> <div id="showimage" style="position:absolute;width:250px;left:250;top:250"> <table border="0" width="250" bgcolor="#000080" cellspacing="0" cellpadding="2"> <tr> <td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0" height="36"> <tr> <td id="dragbar" style="cursor:hand" width="100%"><ilayer width="100%" onSelectStart="return false"><layer width="100%" onMouseover="dragswitch=1;if (ns4) drag_dropns(showimage)" onMouseout="dragswitch=0"><font face="Verdana" color="#FFFFFF"><strong><small>Announcement Box</small></strong></font></layer></ilayer></td> <td style="cursor:hand"><a href="#" onClick="hidebox();return false"><img src="close.gif" width="16" height="14" border=0></a></td> </tr> <tr> <td width="100%" bgcolor="#FFFFFF" style="padding:4px" colspan="2"> <!-- PUT YOUR CONTENT BETWEEN HERE ----> I am typing now. <!-- END YOUR CONTENT HERE-----> </div></a> HTML (hopeless) kinda Fixed by Lhunath
-
code to set as home page <a href="#" onClick="this.setHomePage('http://some-name.com As HomePage</a> HTML Fixed by Lhunath
-
code to add to favorites <a href="javascript:window.external.AddFavorite('http://forums.xisto.com/no_longer_exists/ site.com')">Add To Favourites</a>