כפתור לפתיחת חלון על כל הדף
<script> <!-- function fullwin(){ window.open("http://www.kefliavihu.kef.li","","fullscreen,scrollbars") } //--> </script> <form> <input type="button" onClick="fullwin()" value="Open window"> </form>
הוספת האתר למועדפים
<table border=3 bgcolor="#c0ff00"><tr><td> <script language="JavaScript1.2"> <!-- var bookmarkurl="http://www.kefliavihu.kef.li" var bookmarktitle="כיף לי" function addbookmark(){ if (document.all) window.external.AddFavorite(bookmarkurl,bookmarktitle) } --> </script> <a href="javascript:addbookmark()">הוסף אתר למועדפים</a> </td></tr></table>
קבע כאתר בית
<table border=3 bgcolor="#c0ff00"><tr><td> <a style="cursor:hand" HREF onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.kefliavihu.kef.li');"> !לחץ כאן להפוך את האתר לאתר בית שלך</a></td> </tr></table>
כותרת בסטוס בר זזה
<SCRIPT LANGUAGE="JavaScript"> function infoscroll(seed,looped) { var text1 = " www.kefliavihu.kef.li "; var text2 = " kefli "; var msg=text1+text2; var putout = " "; var c = 1; if (looped > 10) { window.status="<Thanks !>"; } else if (seed > 100) { seed--; var cmd="infoscroll(" + seed + "," + looped + ")"; timerTwo=window.setTimeout(cmd,100); } else if (seed <= 100 && seed > 0) { for (c=0 ; c < seed ; c++) { putout+=" "; } putout+=msg.substring(0,100-seed); seed--; var cmd="infoscroll(" + seed + "," + looped + ")"; window.status=putout; timerTwo=window.setTimeout(cmd,100); } else if (seed <= 0) { if (-seed < msg.length) { putout+=msg.substring(-seed,msg.length); seed--; var cmd="infoscroll(" + seed + "," + looped + ")"; window.status=putout; timerTwo=window.setTimeout(cmd,100); // 100 } else { window.status=" "; looped += 1; var cmd = "infoscroll(100," + looped + ")"; timerTwo=window.setTimeout(cmd,75); // 75 } } } // --> <!-- infoscroll(100,1) // --> </SCRIPT> </form>
מצב האייסייקיו שלי הוא..
<img src="http://wwp.icq.com/scripts/online.dll?icq=פה מספר האייסייקיו שלכם&img=2">
העברה אוטומטית מאתר לאתר
<META HTTP-EQUIV=REFRESH CONTENT="7;URL=http://www.kefliavihu.kef.li">
הצמדת הרקע לאתר
הוסיפו את הקוד הבא ל...BODY bgproperties=fixed
צביעת טקסט שעכבר עובר מעליו
<a OnMouseOver="this.style.color = 'red';" OnMouseOut="this.style.color = 'blue';"> write here...blabla...bla bla </a>
תפריט מהיר עם אפשרות לחלון חדש
<table border=0><tr><td align=right> <form name="mycombowopt"> <select name="example" size=1>SELECTED <OPTION SELECTED VALUE="0"> ----- תפריט מהיר ----- <option value="o.html">עמוד ראשי</option> <option value="magar.html">מאגר הסקריפטים</option> <option value="clal.html">כללי הזהב</option> <option value="http://cnn.com">CNN</option> </select> <input type="button" value="Go!" onClick="gothere()"> <br> שדח ןולחב חתפ<input type="checkbox" name="windowoption" value="ON"> </form> </td></tr></table> <script language="javascript"> // www.kefliavihu.kef.li <!-- function gothere(){ var thebox=document.mycombowopt if (thebox.windowoption.checked){ newwindow=window.open(""); newwindow.location= thebox.example.options[thebox.example.selectedIndex].value } else location= thebox.example.options[thebox.example.selectedIndex].value } //--> </script>
האתר עודכן לאחרונה..
<script language="JavaScript" type="text/javascript"> <!-- document.write("" + document.lastModified) // --> </script> :עודכן לאחרונה ב
חסימה מוחלטת של לחצן ימיני
<script language="JavaScript"> <!-- function stopError() { return true; } window.onerror = stopError; // --> </script> <script language="JavaScript"> <!-- function openLoader( windowURL, windowName, windowFeatures ) { return window.open( windowURL, windowName, windowFeatures ) ; } // --> </script> <style> #ie5menu { position : absolute; width : 150px; border : 2px solid black; background-color : #cfffcf; font-family : Arial; line-height : 20px; cursor : default; visibility : hidden; } .menuitems { padding-left : 15px; padding-right : 15px; text-align : right; } </style> <script language="JavaScript1.1"> <!-- Begin function right(e) { if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) return false; } return true; } document.onmousedown=right; if (document.layers) window.captureEvents(Event.MOUSEDOWN); window.onmousedown=right; // End --> </script> <script language="JavaScript1.2"> function showmenuie5(){ ie5menu.style.left=document.body.scrollLeft+event.clientX 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="#000090" event.srcElement.style.color="white" if (display_url==1) window.status=event.srcElement.url } } function lowlightie5(){ if (event.srcElement.className=="menuitems"){ event.srcElement.style.backgroundColor="" event.srcElement.style.color="#000090" window.status='' } } function jumptoie5(){ if (event.srcElement.className=="menuitems") window.location=event.srcElement.url } </script> <font color="#000090" size="2" face="Arial"><b><!--[if IE]> <div id="ie5menu" onMouseover="highlightie5()" onMouseout="lowlightie5()" onClick="jumptoie5()"> <div class="menuitems" url="http://www.kefliavihu.kef.li" target="main">www.kefliavihu.kef.li </div> </div> <![endif]--> <script language="JavaScript1.2"> document.oncontextmenu=showmenuie5 if (document.all&&window.print) document.body.onclick=hidemenuie5 </script></b></font>
שורת הודעות מתחלפת
<script language="JavaScript"><!-- line=new Object() line[1]="www.kefliavihu.kef.li" line[2]="ברוכים הבאים לאתר שלי.." line[3]=":-) אהבתם את הסקריפט.!?..תהנו" line[4]="תוכלו לשנות את כל המאפיינים..בהצלחה..ביי" lines=4 //--Number of lines //--Don't edit below this line document.write('<form name="bannerform">') document.write('<div align="center"><center><p><input type="text" name="banner" size="48"') document.write(' style="background-color: #000000; color: #f7f7ff; text-align: center; font-family: verdana; font-size: 14pt; border: medium none" onfocus="blur()"></p>') document.write(' </center></div>') document.write('</form>') temp="" nextchar=-1; nextline=1; cursor="\\" function animate(){ if (temp==line[nextline] & temp.length==line[nextline].length & nextline!=lines){ nextline++; nextchar=-1; document.bannerform.banner.value=temp; temp=""; setTimeout("nextstep()",1000)} else if (nextline==lines & temp==line[nextline] & temp.length==line[nextline].length){ nextline=1; nextchar=-1; document.bannerform.banner.value=temp; temp=""; setTimeout("nextstep()",1000)} else{ nextstep()}} function nextstep(){ if (cursor=="\\"){ cursor="|"} else if (cursor=="|"){ cursor="/"} else if (cursor=="/"){ cursor="-"} else if (cursor=="-"){ cursor="\\"} nextchar++; temp+=line[nextline].charAt(nextchar); document.bannerform.banner.value=temp+cursor setTimeout("animate()",25)} document.onload=animate(); // --></script>
שעון עם ברכות
<SCRIPT language=JavaScript> function process(){} today = new Date() if(today.getMinutes() < 10) {pad = "0"} else pad = ""; document.write("<center><FONT SIZE=3>",today.getHours(),":",pad,today.getMinutes()) document.write("<FONT SIZE=3> :העשה </FONT><br>") if((today.getHours() >= 6) && (today.getHours() < 12)) { document.write("<center><FONT SIZE=3>בוקר טוב</FONT>")} if((today.getHours() >= 16) && (today.getHours() < 20)) { document.write("<center><FONT SIZE=2>אחר הצהרים טובים </FONT>")} if((today.getHours() >= 18) && (today.getHours() <= 23)) { document.write("<center><FONT SIZE=3>ערב טוב </FONT>")} if((today.getHours() >= 0) && (today.getHours() < 4)) { document.write("<center><FONT SIZE=3>לילה טוב </FONT>")} if((today.getHours() >= 12) && (today.getHours() <= 16)) { document.write("<center><FONT SIZE=3>צהריים טובים</FONT>")} // end hiding contents --></SCRIPT></font>
שורת לינקים \ הודעות מתחלפות
<script language="JavaScript1.2"> /* Ticker Tape script- © Dynamic Drive (www.dynamicdrive.com) For full source code, installation instructions, 100's more DHTML scripts, and Terms Of Use, visit dynamicdrive.com */ //configure tickercontents[] to set the messges you wish be displayed (HTML codes accepted) var tickercontents=new Array() tickercontents[0]='ברוכים הבאים לאתר' tickercontents[1]='<a href="http://www.kefliavihu.kef.li">[קישורים]</a>זה הקוונה שאפשר גם קישורים' tickercontents[2]='.תהנו</a>' //configure the below 2 variables to set the width/background color of the ticker var tickerwidth='50%' var tickerbgcolor='#ffffcf' //configure the below variable to determine the delay between ticking of messages (in miliseconds var tickdelay=3000 var currentmessage=0 function changetickercontent(){ if (document.layers){ document.tickernsmain.document.tickernssub.document.write(tickercontents[currentmessage]) document.tickernsmain.document.tickernssub.document.close() } else if (document.all) tickerie.innerHTML=tickercontents[currentmessage] if (currentmessage==tickercontents.length-1) currentmessage=0 else currentmessage++ setTimeout("changetickercontent()",tickdelay) } function start_ticking(){ if (document.layers) document.tickernsmain.visibility="show" changetickercontent() } if (document.all) document.write('<div id="tickerie" style="width:'+tickerwidth+'; background-color:'+tickerbgcolor+'"></div>') window.onload=start_ticking </script> <ilayer id="tickernsmain" width=&{tickerwidth}; bgColor=#ffffff visibility=hide><layer bgColor=&{tickerbgcolor}; id="tickernssub" width=&{tickerwidth}; left=48% top=0></layer></ilayer>
תמונות-קישור מתחלפות במעבר העכבר
<A HREF="your.html" onmouseover="document.pic.src='v2.gif'" onmouseout="document.pic.src='enter.gif'"> <img src="enter.gif" width="100" height="40" border="0" name="pic"></A>
קישור בולט במעבר העכבר
<A HREF="http://www.kefliavihu.kef.li" onmouseover="style.fontWeight='bold'" onmouseout="style.fontWeight='normal'">Move your cursor over this link.</a>
זיהוי רזולוציה, ואזהרה בהתאם
<script language="JavaScript1.2"> <!-- /* Screen resolution detection and notification Script- © Dynamic Drive (www.dynamicdrive.com) For full source code, installation instructions, 100's more DHTML scripts, and Terms Of Use, visit dynamicdrive.com */ var correctwidth=800 var correctheight=600 if (screen.width!=correctwidth||screen.height!=correctheight) document.write(" "+correctwidth+"*"+correctheight+" : הרזולוציה שלך היא<br>"+screen.width+"*"+screen.height+" : דף זה מומלץ לצפיה ברזולוציה של") //--> </script><p>
כמה פעמיים היית באתר
<SCRIPT> function GetCookie (name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return getCookieVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } function SetCookie (name, value) { var argv = SetCookie.arguments; var argc = SetCookie.arguments.length; var expires = (argc > 2) ? argv[2] : null; var path = (argc > 3) ? argv[3] : null; var domain = (argc > 4) ? argv[4] : null; var secure = (argc > 5) ? argv[5] : false; document.cookie = name + "=" + escape (value) + ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + ((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "" : ("; domain=" + domain)) + ((secure == true) ? "; secure" : ""); } function DeleteCookie (name) { var exp = new Date(); exp.setTime (exp.getTime() - 1); var cval = GetCookie (name); document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString(); } var expDays = 30; var exp = new Date(); exp.setTime(exp.getTime() + (expDays*24*60*60*1000)); function amt(){ var count = GetCookie('count') if(count == null) { SetCookie('count','1') return 1 } else { var newcount = parseInt(count) + 1; DeleteCookie('count') SetCookie('count',newcount,exp) return count } } function getCookieVal(offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } </SCRIPT> <SCRIPT> document.write("ברוך הבא בפעם ה: <b><font color=red>" + amt() + "</b></font> לאתר") </SCRIPT>
פסים חוצים לרוחב בכניסה לאתרלהשים ב head
<style> <!-- .intro{ position:absolute; left:0; top:0; layer-background-color:blue; background-color:blue; border:0.1px solid blue } --> </style>
וזה body
<div id="i1" class="intro"></div><div id="i2" class="intro"></div><div id="i3" class="intro"></div><div id="i4" class="intro"></div><div id="i5" class="intro"></div><div id="i6" class="intro"></div><div id="i7" class="intro"></div><div id="i8" class="intro"></div> <script language="JavaScript1.2"> /* Left-Right Stripy Curtain Script- © Dynamic Drive (www.dynamicdrive.com) For full source code, installation instructions, 100's more free DHTML scripts, and Terms Of Use, visit dynamicdrive.com */ var speed=20 var temp=new Array() var temp2=new Array() if (document.layers){ for (i=1;i<=8;i++){ temp[i]=eval("document.i"+i+".clip") temp2[i]=eval("document.i"+i) temp[i].width=window.innerWidth temp[i].height=window.innerHeight/8 temp2[i].top=(i-1)*temp[i].height } } else if (document.all){ var clipright=document.body.clientWidth,clipleft=0 for (i=1;i<=8;i++){ temp[i]=eval("document.all.i"+i+".style") temp[i].width=document.body.clientWidth temp[i].height=document.body.offsetHeight/8 temp[i].top=(i-1)*parseInt(temp[i].height) } } function openit(){ window.scrollTo(0,0) if (document.layers){ for (i=1;i<=8;i=i+2) temp[i].right-=speed for (i=2;i<=8;i=i+2) temp[i].left+=speed if (temp[2].left>window.innerWidth) clearInterval(stopit) } else if (document.all){ clipright-=speed for (i=1;i<=8;i=i+2){ temp[i].clip="rect(0 "+clipright+" auto 0)" } clipleft+=speed for (i=2;i<=8;i=i+2){ temp[i].clip="rect(0 auto auto "+clipleft+")" } if (clipright<=0) clearInterval(stopit) } } function gogo(){ stopit=setInterval("openit()",100) } gogo() </script>
שעון ותאריך בסטטוס ברלהשים ב head
<script language="JavaScript"> <!-- Hide from old browsers // Copyright © 1999 Doug Popeney // Created by Doug Popeney (easyjava@easyjavascipt.com) // JavaScript Made Easy!! - http://www.easyjavascript.com var timerID = null var timerRunning = false function MakeArray(size) { this.length = size; for(var i = 1; i <= size; i++) { this[i] = ""; } return this; } function stopclock (){ if(timerRunning) clearTimeout(timerID); timerRunning = false } function showtime () { var now = new Date(); year = new String(now.getYear()) yearLen = year.length year = year.split("") year = year[yearLen - 2] + year[yearLen - 1] var month = now.getMonth() + 1; var date = now.getDate(); var hours = now.getHours(); var minutes = now.getMinutes(); var seconds = now.getSeconds(); var day = now.getDay(); Day = new MakeArray(7); Day[0]="SUN"; Day[1]="MON"; Day[2]="TUE"; Day[3]="WED"; Day[4]="THU"; Day[5]="FRI"; Day[6]="SAT"; var timeValue = ""; timeValue += (Day[day]) + " "; timeValue += ((month < 10) ? " 0" : " ") + month + "-"; timeValue += date + "-" + year + " "; timeValue += ((hours <= 12) ? hours : hours - 12); timeValue += ((minutes < 10) ? ":0" : ":") + minutes; timeValue += ((seconds < 10) ? ":0" : ":") + seconds; timeValue += (hours < 12) ? " AM" : " PM"; window.status = timeValue; timerID = setTimeout("showtime()",1000); timerRunning = true } function startclock () { stopclock(); showtime() } // End Hiding --> </SCRIPT>
וזה ב body
<body onLoad="startclock();">
הודעות מתחלפות בסטטוס ברזה ב head
<script language="JavaScript"> <!-- Hide from old browsers // Copyright © 1999 Doug Popeney // Created by Doug Popeney (easyjava@easyjavascipt.com) // JavaScript Made Easy!! - http://www.easyjavascript.com var speed = 10 var pause = 1500 var timerID = null var bannerRunning = false var ar = new Array() ar[0] = "www.kefliavihu.kef.li" ar[1] = "היי שלום..נכון סקריפט מדליק.???" ar[2] = "אתם יכולים לכתוב פה אפילו הודעות ארוכות" ar[3] = "תודה שגלשתם לאתר כיף לי..המשך גלישה נעימה...ביי" var message = 0 var state = "" clearState() function stopBanner() { if (bannerRunning) clearTimeout(timerID) bannerRunning = false } function startBanner() { stopBanner() showBanner() } function clearState() { state = "" for (var i = 0; i < ar[message].length; ++i) { state += "0" } } function showBanner() { if (getString()) { message++ if (ar.length <= message) message = 0 clearState() timerID = setTimeout("showBanner()", pause) bannerRunning = true } else { var str = "" for (var j = 0; j < state.length; ++j) { str += (state.charAt(j) == "1") ? ar[message].charAt(j) : " " } window.status = str timerID = setTimeout("showBanner()", speed) bannerRunning = true } } function getString() { var full = true for (var j = 0; j < state.length; ++j) { if (state.charAt(j) == 0) full = false } if (full) return true while (1) { var num = getRandom(ar[message].length) if (state.charAt(num) == "0") break } state = state.substring(0, num) + "1" + state.substring(num + 1, state.length) return false } function getRandom(max) { return Math.round((max - 1) * Math.random()) } // -- End Hiding Here --> </script>
וזה בbody
<body onLoad="startBanner()">
חסימת הלחצן הימיני של העכבר
תמונה מתחלפת ברענון בסדר סתמי
<script language="javascript"> <!-- var Quotes = new makeArray (6) ; Quotes[0] = "k43.jpg" ; Quotes[1] = "k44.jpg" ; Quotes[2] = "people.gif" ; Quotes[3] = "k43.jpg" ; Quotes[4] = "people.gif" ; Quotes[5] = "snow.gif" ; function makeArray (n) { this.length=n ; for (var t=0;t<n;t++) this[t] = '' ; } var quote=Math.round(Math.random(1)*6); document.write("<img src="+Quotes[quote]+" align=middle>"); --> </script>
רקע צבעוני משתנה בכניסה וביציאה לאתרלהשים ב head
<SCRIPT LANGUAGE="JavaScript"> <!-- // convert decimal value (0 - 255) to hexadecimal // (use .toString(16) method supported by IE) function toHex(dec) { var hexCharacters = "0123456789ABCDEF" if (dec < 0) return "00" if (dec > 255) return "FF" var i = Math.floor(dec / 16) var j = dec % 16 return hexCharacters.charAt(i) + hexCharacters.charAt(j) } function setbgColor(red, green, blue) { document.bgColor = "#" + toHex(red) + toHex(green) + toHex(blue) } function fade(sred, sgreen, sblue, ered, egreen, eblue, step) { for(var i = 0; i <= step; ++i) { var red = Math.floor(sred * ((step - i) / step) + ered * (i / step)) var green = Math.floor(sgreen * ((step - i) / step) + egreen * (i / step)) var blue = Math.floor(sblue * ((step - i) / step) + eblue * (i / step)) setbgColor(red, green, blue) } } // --> </SCRIPT>
זה קוד הקישור
<a href="yourlink.com"><img src="yourimg.gif" class="popshadow"></a>
שורת סטטוס פשוטה וקבועה
<script> window.status= "www.kefliavihu.kef.li" </script>
באנר קישור המתחלף פעם ביום
<script> <!-- <!--Week Of The Day Image Displayer script- By Website Abstraction (www.wsabstract.com) More free scripts here--> var mondayimg="banner2.gif" var tuesdayimg="banner5.gif" var wednesdayimg="banner7.gif" var thursdayimg="banner8.gif" var fridayimg="banner9.gif" var saturdayimg="banner10.gif" var sundayimg="banner4.gif" var mydate=new Date() var today=mydate.getDay() if (today==1) document.write('<a href="http://www.kefliavihu.kef.li"><img src="'+mondayimg+'"></a>') else if (today==2) document.write('<a href="http://www.kefliavihu.kef.li"><img src="'+tuesdayimg+'"></a>') else if (today==3) document.write('<a href="http://www.kefliavihu.kef.li"><img src="'+wednesdayimg+'"></a></a>') else if (today==4) document.write('<a href="http://www.kefliavihu.kef.li"><img src="'+thursdayimg+'"></a>') else if (today==5) document.write('<a href="http://www.kefliavihu.kef.li"><img src="'+fridayimg+'"></a>') else if (today==6) document.write('<a href="http://www.kefliavihu.kef.li"><img src="'+saturdayimg+'"></a>') else document.write('<a href="http://www.kefliavihu.kef.li"><img src="'+sundayimg+'"></a>') //--> </script>
כפתורי רדיו עם תגובות בהתאם
<table border=1 width=200 cellspacing=0 cellpadding=0 bordercolor=blue><tr><td align=center> ?איך נראה לך האתר</td></tr><td align=right> הלועמ<INPUT TYPE="radio" NAME="myradio" value="!תודה רבה" onClick="alert(value)"><br> ינוניב<INPUT TYPE="radio" NAME="myradio" value="או קיי, אני אשתדל לשפר" onClick="alert(value)"><br> עורג<INPUT TYPE="radio" NAME="myradio" value=":-( ..חבל" onClick="alert(value)"> </td></tr></table>
תמונה קבועה ברקע הדף
<script language="JavaScript1.2"> /* Watermark Backgound Image Script- © Dynamic Drive (www.dynamicdrive.com) For full source code, installation instructions, 100's more DHTML scripts, and Terms Of Use, visit dynamicdrive.com */ if (document.all) document.body.style.cssText="background:white url(כתובת.gif) no-repeat fixed center center" </script>
תפריט לינקים נגללמיקום בhead
<STYLE TYPE="text/css"> <!-- .menuh { BORDER-COLOR : #FFFF99 ; cursor : hand ; Border-Left : #FFFF99 ; Border-Top : #FFFF99 ; Padding-Left : 1px ; Padding-Top : 1px ; Background-Color : #FFFF99 ; } .menu { Background-Color : white ; } .home { cursor : hand ; } .menulinks{ text-decoration:none; } //--> </STYLE>
מיקום בתחילת ה body
<SCRIPT Language="Javascript1.2"> <!-- /* Static menu script III (By maXimus, maximus@nsimail.com, http://absolutegb.com/maximus/) Modified slightly/ permission granted to Dynamic Drive to feature script in archive For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com */ //configure below variable for menu width, position on page var menuwidth=110 var offsetleft=10 var offsettop=90 function makeStatic() { if (document.all) {object1.style.pixelTop=document.body.scrollTop+offsettop} else{eval(document.object1.top=eval(window.pageYOffset+offsettop));} setTimeout("makeStatic()",0); } if (document.all) {document.write('<DIV ALIGN="CENTER" ID="object1" STYLE="Position:absolute; Top:20; Left:'+offsetleft+'; Z-Index:5;cursor:hand;background-color:black"><TABLE BORDER="1" width="'+menuwidth+'" CELLPADDING="0" CELLSPACING="0" BORDERCOLOR="black" bgcolor="white">')} else if (document.layers){ document.write('<LAYER top="20" name="object1" left="'+offsetleft+'" BGCOLOR=black><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="1"><TR><TD><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" width="'+menuwidth+'">')} if (document.all||document.layers) document.write('<TR><TD BGCOLOR="#3399FF" BORDERCOLORDARK="#99CCFF" BORDERCOLORLIGHT="#003399"><P ALIGN=CENTER><FONT SIZE="4" FACE=ARIAL>?????</FONT></TD></TR>') var menui = new Array(); var menul = new Array(); //configure below for menu items. Extend list as desired menui[0]="עמוד ראשי"; menui[1]="סקריפטים"; menui[2]="משחקים"; menui[3]="הורדות"; menui[4]="סקר"; menul[0]="index.htm"; menul[1]="ckripts.html"; menul[2]="games.html"; menul[3]="prog.html"; menul[4]="seker.html"; for (i=0;i<=menui.length-1;i++) if (document.all) {document.write('<TR><TD BORDERCOLOR="white" ONCLICK="location=\''+menul[i]+'\'" onmouseover="className=\'menuh\'" onMouseout="className=\'menu\'"><CENTER><FONT>'+menui[i]+'</FONT></TD></TR>')} else if (document.layers){document.write('<TR><TD BGCOLOR="white"><ILAYER><LAYER width="'+menuwidth+'" onmouseover="bgColor=\'yellow\'" onmouseout="bgColor=\'white\'"><CENTER><A HREF="'+menul[i]+'" class=menulinks>'+menui[i]+'</A></CENTER></LAYER></ILAYER></TD></TR>')} if (document.all) {document.write('</TABLE></DIV>')} else if (document.layers){document.write('</TABLE></TD></TR></TABLE></LAYER>')} function menu3(){ if (document.all||document.layers) makeStatic() } window.onload=menu3 //--> </SCRIPT>
באנר אקראי עם הסבר מתחתיו
<SCRIPT> <!-- gfx0="banner5.gif"; lnk0="http://www.kefliavihu.kef.li"; alt0="Alt code 1"; txt0="1 הסבר לבאנר מספר"; gfx1="banner2.gif"; lnk1="http://www.kefliavihu.kef.li"; alt1="Alt code 2"; txt1="הסבר לבנאר מספר 2"; gfx2="banner4.gif"; lnk2="http://www.kefliavihu.kef.li"; alt2="Alt code 3"; txt2="הסבר לבאנר מספר 3"; len=3; // change to equal number of banners today=new Date(); today=today.getTime()/10; rnd=today%len; document.writeln('<A HREF="'+eval("lnk"+rnd)+'"><IMG SRC="'+eval("gfx"+rnd)+'" ALT="'+eval("alt"+rnd)+'"><BR>'+eval("txt"+rnd)+'</A>'); //--> </SCRIPT>
כניסה לאתר מחיב הסכמה לתנאים
<script language="JavaScript1.2"> /* from (www.kefliavihu.kef.li) */ <!-- var checkme; function g(){ checkme="d"; } function send(){ if(checkme!="d"){ alert('אנא לחץ קודם על הסכמה לתנאים'); } else if(checkme=="d"){ window.open('http://www.kefliavihu.kef.li') } } // --> </script> <font face="Ms Sans Serif"> <input type=button value=" מסכים לתנאים " onclick="g()"></a><hr color=red width=80> <input type="button" value="כנס לאתר" onclick="send();"></font>
כניסה לאתר מחיב לחיצה על הבאנר
<script language="javascript"> /* More Free Scripts (www.kefliavihu.kef.li) */ var clickme; function chack(){ clickme="ok"; } function send(){ if(clickme!="ok"){ alert('בבקשה לחץ קודם על הבאנר'); return false; } else if(clickme=="ok"){ return true; } } </script> <a href="http://www.topsites.co.il/In.asp?Member=9175" target=_blank><img src="http://www.topsites.co.il/wave.gif" onclick="chack()"></a><p> <a href="http://www.kefliavihu.kef.li" target=_blank onclick="return send()"><b>לחץ כאן להיכנס לאתר</b></a>
טקסט מחליף צבעיםלשים ב head
<script language="JavaScript"> <!-- function MakeArray(n){ this.length=n; for(var i=1; i<=n; i++) this[i]=i-1; return this } hex=new MakeArray(16); hex[11]="A"; hex[12]="B"; hex[13]="C"; hex[14]="D"; hex[15]="E"; hex[16]="F"; function ToHex(x){ var high=x/16; var s=high+""; s=s.substring(0,2); high=parseInt(s,10); var left=hex[high+1]; var low=x-high*16; s=low+""; s=s.substring(0,2); low=parseInt(s,10); var right=hex[low+1]; var string=left+""+right; return string; } function rainbow(text){ text=text.substring(3,text.length-4); color_d1=255; mul=color_d1/text.length; for(i=0;i < text.length;i++){ color_d1=255*Math.sin(i/(text.length/3)); "255*Math.sin(i/(text.length/3))" color_h1=ToHex(color_d1); color_d2=mul*i; color_h2=ToHex(color_d2); document.write("<FONT COLOR='#FF"+color_h1+color_h2+"'>"+text.substring(i,i+1)+'</FONT>'); } } // --> </script>
וזה הטקסט להשים ב body
<SCRIPT> <!-- {rainbow("--> כאן הטקסט שלך <!--");} //--> </SCRIPT>
סקריפט של גשם ברקע
<SCRIPT LANGUAGE="JavaScript"> <!-- Begin var 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; } else if (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(); } else if (ie4up) { raindropIE(); } // End --> </script>
סקריפט רעידת אדמהלשים ב- head
<SCRIPT LANGUAGE="JavaScript1.2"> function shake(n) { if (parent.moveBy) { for (i=10;i>0;i--) { for (j=n;j>0;j--) { parent.moveBy(0,i); parent.moveBy(i,0); parent.moveBy(0,-i); parent.moveBy(-i,0); } } } } </script>
זה ב-body
<input type=button onClick="shake(2)" value="BOOMMMMM"> </form>
סקריפט שמברך לפי זמן
<SCRIPT LANGUAGE="JavaScript"> <!-- currentTime = new Date(); if (currentTime.getHours() < 12) document.write("<b><u>בוקר טוב</u></b>"); else if (currentTime.getHours() < 16) document.write("<b><u>צהריים טובים</u></b>"); else if (currentTime.getHours() < 18) document.write("<b><u>אחר הצהריים טובים</u></b>"); else if (currentTime.getHours() < 22) document.write("<b><u>ערב טוב</u></b>"); else document.write("<b><u>לילה טוב</u></b>"); //--> </SCRIPT>
חדשות ספורט לאתר
<IFRAME SRC="http://www.one.co.il//ticker/score_board.asp" name="scoreboard" width="162" height="191" frameborder="no" border="0" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="no"></IFRAME>
ברקים
<SCRIPT language="Javascript"> <!-- /* For full source and 100's more DHTML scripts, visit http://www.mamticc.up.co.il */ ie4=document.all?1:0; ns4=document.layers?1:0; ns5=(document.getElementById && !document.all)?1:0; function init(){ // Bolt has an aura? (true | false) // takes twice as long to strike aura=false; bcolor="white"; acolor="blue"; // Make background color flash? (true | false) flash=true; skyNorm="black"; skyFlash="#000050"; if (flash) document.bgColor=skyNorm; // nbs = Number of main bolt segments nbs = 50; ct=0; // Font sizes for lightning bolt and aura segments fsb=shi*.3; fsf=shi*.2; fsbi=shi*.2; fsfi=shi*.12; fsbii=shi*.12; fsfii=shi*.07; xpos=cswi; ypos=0; if (ns5) ark = document.getElementById("ark"); if (ns4) { ol=document.layers["ark"]; ol = new Layer(swi); ol.left = 0; ol.top = 0; ol.height = shi; ol.zIndex=1; ol.visibility = "hide"; ret="<STYLE TYPE='text/css'>"; for (i=1;i<10;i++){ ret+="DIV.bolt"+i+" {position:absolute; font-style:'Times New Roman'; font-size:"+(fsf*i/9)+"px; color:"+bcolor+"; visibility:inherit; z-index:1}"; if (aura) ret+="DIV.bolta"+i+" {position:absolute; font-style:'Times New Roman'; font-size:"+(fsf*1.3*i/9)+"px; color:blue; visibility:inherit; z-index:0}"; } ret+="</STYLE>"; for (fs=1;fs<10;fs++) for (i=1;i<nbs;i++) { if (aura) ret+="<DIV id=a"+i+"f"+fs+" class=bolta"+fs+">.</DIV>"; ret+="<DIV id=s"+i+"f"+fs+" class=bolt"+fs+">.</DIV>"; } //ol.document.open(); ol.document.write(ret); ol.document.close(); } Time1=setTimeout("mainplot()",100); } function mainplot() { lang=0; xpos=Math.random()*cswi+cswi/2; ypos=0; fs=9; fsi=8 deg=Math.random()*30-15+((xpos<cswi)? +15:-15); jag=Math.round(Math.random()*100)/100; zag=Math.round(Math.random()*100)/100; cur=Math.round((.5 * (Math.random()*10-5))*100)/100; ion=(Math.random()>.5)? 1:-1; //status=" "+ct+" Divs "+format(jag)+" jag "+format(zag)+" zag "+cur+" curve"; ct=0; if (ns4) { for (i=1;i<nbs;i++) { ang=Math.random()*jag*90-jag*45; if (Math.random()+.05>zag) lang=Math.random()*zag*90-zag*45; ang+=lang; ct++; if (Math.random()*10>9.5 && fsi>1) {fsi--; leg1();} xpos+=Math.sin((deg+(ang+i*cur))/57.3)*(fsf*fs/9)*.07; ypos+=Math.abs(Math.cos((deg+(ang+i*cur))/57.3)*(fsf*fs/9)*.07); //fsb=fsf*1.5; if (aura) { ol.document.layers["a"+i+"f"+fs].moveTo(xpos-(fsf*1.3*fs/9)*.125,ypos-(fsf*1.3*fs/9)*.85); ct++;} ol.document.layers["s"+i+"f"+fs].moveTo(xpos-(fsf*fs/9)*.125,ypos-(fsf*fs/9)*.85); if (ypos>shi || xpos<0 || xpos>swi) i=nbs; } //status=" "+ct+" Divs "+format(jag)+" jag "+format(zag)+" zag "+cur+" curve"; ol.resizeTo(swi,shi); Time1=setTimeout("light()",100); } if (ie4 || ns5) { // Rewriting layers can be faster than repositioning in internet explorer ret=""; fsf=shi*.2; for (i=1;i<nbs;i++) { ang=Math.random()*jag*90-jag*45; if (Math.random()+.05>zag) lang=Math.random()*zag*90-zag*45; ang+=lang; ct++; if (Math.random()*10>9.5) {fsfi=fsf*.6; fsf*=.95; leg1();} xpos+=Math.sin((deg+(ang+i*cur))/57.3)*fsf*.07; ypos+=Math.abs(Math.cos((deg+(ang+i*cur))/57.3)*fsf*.07); fsb=fsf*1.3; if (ypos>shi || xpos<0 || xpos>swi) i=nbs; if (aura) { ret+="<DIV id='darg"+i+"' style='position:absolute; left:"+(xpos-fsb*.125)+"; top:"+(ypos-fsb*.85)+"; font-size:"+fsb+"px; color:rgb(0,0,255); z-Index:0' >.</DIV>"; ct++;} ret+="<DIV style='position:absolute; left:"+(xpos-fsf*.125)+"; top:"+(ypos-fsf*.85)+"; font-size:"+fsf+"px; color:"+bcolor+"; z-Index:1' >.</DIV>"; } //status=" "+ct+" Divs "+format(jag)+" jag "+format(zag)+" zag "+cur+" curve"; ark.innerHTML=ret; Time1=setTimeout("lightie()",100); } } function leg1() { xpo=xpos; ypo=ypos; lang=zag*ion*(30+Math.random()*20-10); ion*=-1; lang1=0; deg1=deg+ion*50+Math.random()*20-10; jlen=Math.random()*nbs*.25+nbs*.25; if(ns4) { fsii=fsi-1 for (j=1;j<jlen;j++) { ang1=Math.random()*jag*90-jag*45; if (Math.random()+.05>zag) lang1=Math.random()*zag*90-zag*45; ang1-=lang1; ct++; if (Math.random()*10>9.9 && fsii>1) {fsii--; leg2();} xpo+=Math.sin((deg1+(ang1+j*cur))/57.3)*(fsf*fsi/9)*.07; ypo+=Math.abs(Math.cos((deg1+(ang1+j*cur))/57.3)*(fsf*fsi/9)*.07); if (aura) { ol.document.layers["a"+j+"f"+fsi].moveTo(xpo-(fsf*1.3*fsi/9)*.125,ypo-(fsf*1.3*fsi/9)*.85); ct++;} ol.document.layers["s"+j+"f"+fsi].moveTo(xpo-(fsf*fsi/9)*.125,ypo-(fsf*fsi/9)*.85); if (ypo>shi || xpo<0 || xpo>swi) j=jlen; } } if (ie4 || ns5) { ret+="<DIV id='fork'>"; for (j=1;j<jlen;j++) { ang1=Math.random()*jag*90-jag*45; if (Math.random()+.05>zag) lang1=Math.random()*zag*90-zag*45; ang1-=lang1; ct++; if (Math.random()*10>9.9) {fsfii=fsfi*.6; fsfi*=.95; leg2();} xpo+=Math.sin((deg1+(ang1+j*cur))/57.3)*fsfi*.07; ypo+=Math.cos((deg1+(ang1+j*cur))/57.3)*fsfi*.07; fsbi=fsfi*1.3; if (ypo>shi || xpo<0 || xpo>swi) j=jlen; if (aura) { ret+="<DIV id='arg"+j+"' style='position:absolute; left:"+(xpo-fsbi*.125)+"; top:"+(ypo-fsbi*.85)+"; font-size:"+fsbi+"px; color:rgb(0,0,255); z-Index:0' >.</DIV>"; ct++;} ret+="<DIV style='position:absolute; left:"+(xpo-fsfi*.125)+"; top:"+(ypo-fsfi*.85)+"; font-size:"+fsfi+"px; color:"+bcolor+"; z-Index:1' >.</DIV>"; }ret+="</DIV>"; } } function leg2() { xp=xpo; yp=ypo; lang1=zag*ion*(30+Math.random()*20-10); //ion*=-1; lang2=0; deg2=deg1+ion*50+Math.random()*20-10; klen=Math.random()*nbs/2+nbs/2; // // if (ns4) { for (k=nbs/2;k<klen;k++) { ang2=Math.random()*jag*90-jag*45; if (Math.random()+.05>zag) lang2=Math.random()*zag*90-zag*45; ang2-=lang2; ct++; xp+=Math.sin((deg2+(ang2+k*cur))/57.3)*(fsf*fsii/9)*.07; yp+=Math.cos((deg2+ang2)/57.3)*(fsf*fsii/9)*.07; if (aura) { ol.document.layers["a"+k+"f"+fsii].moveTo(xp-(fsf*1.3*fsii/9)*.125,yp-(fsf*1.3*fsii/9)*.85); ct++;} ol.document.layers["s"+k+"f"+fsii].moveTo(xp-(fsf*fsii/9)*.125,yp-(fsf*fsii/9)*.85); if (yp>shi || xp<0 || xp>swi) k=klen; } } if (ie4 || ns5) { ret+="<DIV id='forki'>"; for (k=nbs/2;k<klen;k++) { ang2=Math.random()*jag*90-jag*45; if (Math.random()+.05>zag) lang2=Math.random()*zag*90-zag*45; ang2-=lang2; ct++; xp+=Math.sin((deg2+(ang2+k*cur))/57.3)*fsfii*.07; yp+=Math.cos((deg2+(ang2+k*cur))/57.3)*fsfii*.07; fsbii=fsfii*1.3; if (yp>shi || xp<0 || xp>swi) k=klen; if (aura) { ret+="<DIV id='arg"+k+"' style='position:absolute; left:"+(xp-fsbii*.125)+"; top:"+(yp-fsbii*.85)+"; font-size:"+fsbii+"px; color:rgb(0,0,255); z-Index:0' >.</DIV>"; ct++;} ret+="<DIV style='position:absolute; left:"+(xp-fsfii*.125)+"; top:"+(yp-fsfii*.85)+"; font-size:"+fsfii+"px; color:"+bcolor+"; z-Index:1' >.</DIV>"; } ret+="</DIV>"; } } function light() { ol.moveTo(pageXOffset,pageYOffset); ol.visibility = "show"; if (flash) document.bgColor=skyFlash; Time2=setTimeout("ning()",(Math.random()*1000+1000)); } function lightie() { ark.style.left=document.body.scrollLeft; ark.style.top=document.body.scrollTop; ark.style.visibility = "visible"; if (flash) document.bgColor=skyFlash; Time2=setTimeout("ningie()",(Math.random()*500+100)); } function ning() { if (flash) document.bgColor=skyNorm; ol.visibility = "hide"; if (Math.random()*3>2) Time2=setTimeout("light()",(Math.random()*500+100)); else { for (fs=1;fs<10;fs++) for (i=1;i<nbs;i++) { if (aura) ol.document.layers["a"+i+"f"+fs].moveTo(-100,-100); ol.document.layers["s"+i+"f"+fs].moveTo(-100,-100); } Time1=setTimeout("mainplot()",(Math.random()*500+100)) } } function ningie() { ark.style.visibility = "hidden"; if (flash) document.bgColor=skyNorm; if (Math.random()*3>2) Time2=setTimeout("lightie()",(Math.random()*500+100)); else Time1=setTimeout("mainplot()",(Math.random()*500+100)); } function format(f){ f+=""; if (f.charAt(0)==".") f="0"+f; if (f.length==1) f+=".00"; if (f.length==3) f+="0"; return f; } function halt() { if (Time1) {clearTimeout(Time1); Time1=null;} if (Time2) {clearTimeout(Time2); Time2=null;} } //--> </SCRIPT> <STYLE TYPE="text/css"> #frm {position:absolute; left:20; top:10; width:100; height:100; visibility:visible; z-Index:951; color:blue; overflow:clip; font-style:Times} </STYLE> </head> <!--ADD THE FOLLOWING EVENTS INTO THE BODY TAG ITSELF--> <BODY onLoad="var SymTmpWinOpen = window.open; window.open = SymWinOpen; window.focus();init();; window.open = SymTmpWinOpen;" onResize="document.location.href=document.location.href;" bgColor="#000000" text="#FFFFFF" onUnload="var SymTmpWinOpen = window.open; window.open = SymWinOpen; halt();; window.open = SymTmpWinOpen;" link="#FFFF00" vlink="#00FF00"> <!--ADD THE BELOW SCRIPT INSIDE THE BODY SECTION, AT THE END--> <SCRIPT language="Javascript"> <!-- swi=(ie4)? document.body.offsetWidth-17:window.innerWidth; shi=(ie4)? document.body.offsetHeight-4:window.innerHeight; cswi=swi/2; cshi=shi/2; ret="<DIV id='ark' style='position:absolute; left:0; top:0; width:"+swi+"; height:"+shi+"; visibility:visible; z-index=1; overflow:hidden; clip:rect(0,"+(swi)+","+(shi)+",0)'></DIV>"; document.write(ret); //--> </SCRIPT>
זיקוקיםמומלץ על רקע שחור
<script language="JavaScript1.2"> /* by megascript www.kefliavihu.kef.li */ var ns=document.layers?1:0 var ie4=document.all?1:0 var ns6=document.getElementById&&!document.all?1:0 amount=14; if (ns){ for (i=0; i < amount; i++) document.write("<LAYER NAME='nsstars"+i+"' LEFT=0 TOP=0 BGCOLOR='#FFFFF0' CLIP='0,0,1,1'></LAYER>"); } else if (ie4||ns6){ document.write("<div id='ieCov' style='position:absolute;top:0px;left:0px'>"); document.write("<div style='position:relative'>"); for (i=0; i < amount; i++) document.write("<div id='iestars"+i+"' style='position:absolute;top:0px;left:0px;width:1;height:1;background:#ffffff;font-size:1;z-index:10'></div>"); document.write("</div></div>"); } Clrs=new Array('ff0000','00ff00','ffffff','ff00ff','ffa500','ffff00','00ff00','ffffff','ff00ff') sClrs=new Array('ffa500','00ff00','FFAAFF','fff000','fffffF') Xpos=300; Ypos=150; initialStarColor='00ff00'; step=5; currStep=0; explosionSize=120; function Fireworks(){ var WinHeight=(ns||ns6)?window.innerHeight-100:window.document.body.clientHeight-100; var WinWidth=(ns||ns6)?window.innerWidth-100:window.document.body.clientWidth-100; var Yscroll=(ns||ns6)?window.pageYOffset:document.body.scrollTop; for (i=0; i < amount; i++){ if (ie4||ns6) var layer=ns6?document.getElementById("iestars"+i).style : eval("iestars"+i).style; else if (ns) var layer=document.layers["nsstars"+i] var randCol=Math.round(Math.random()*8); var randSz=Math.round(Math.random()*2); layer.top = Ypos + explosionSize*Math.sin((currStep+i*5)/3)*Math.sin(currStep/100) layer.left= Xpos + explosionSize*Math.cos((currStep+i*5)/3)*Math.sin(currStep/100) if (currStep < 110){ if (ns){layer.bgColor=initialStarColor;layer.clip.width=1;layer.clip.height=1} else{layer.background=initialStarColor;layer.width=1;layer.height=1;layer.fontSize=1} } else{ if (ns){layer.bgColor=Clrs[randCol];layer.clip.width=randSz;layer.clip.height=randSz} else{layer.background=Clrs[randCol];layer.width=randSz;layer.height=randSz;layer.fontSize=randSz} } } if (currStep > 220) { currStep=0; Ypos = 50+Math.round(Math.random()*WinHeight)+Yscroll; Xpos = 50+Math.round(Math.random()*WinWidth); for (i=0; i < sClrs.length; i++) { var newIcol=Math.round(Math.random()*i); } initialStarColor=sClrs[newIcol]; explosionSize=Math.round(80*Math.random()+100); } currStep+=step; setTimeout("Fireworks()",20); } Fireworks(); // --> </script>
רוחות רפאיםיש להוסיף ל body onLoad="JSFX_StartEffects()"דוגמא
<body color=#000000" onLoad="JSFX_StartEffects()">
<SCRIPT LANGUAGE="JavaScript"> function JSFX_StartEffects() { if (!document.all&&!document.layers) return JSFX.AddGhost("ghost.gif"); JSFX.AddGhost("ghost1.gif"); JSFX.AddGhost("ghost2.gif"); JSFX.AddGhost("ghost.gif"); JSFX.AddGhost("ghost1.gif"); JSFX.AddGhost("ghost2.gif"); } </SCRIPT>
הורידו לינקים אלו את זה את זה את זה
אפקט המטריקס
<script type="text/javascript" language="JavaScript"> <!-- var rows=11; // must be an odd number var speed=50; // lower is faster var reveal=2; // between 0 and 2 only. The higher, the faster the word appears var effectalign="default" //enter "center" to center it. /*********************************************** * Visit http://www.kefliavihu.kef.li ***********************************************/ var w3c=document.getElementById && !window.opera;; var ie45=document.all && !window.opera; var ma_tab, matemp, ma_bod, ma_row, x, y, columns, ma_txt, ma_cho; var m_coch=new Array(); var m_copo=new Array(); window.onload=function() { if (!w3c && !ie45) return var matrix=(w3c)?document.getElementById("matrix"):document.all["matrix"]; ma_txt=(w3c)?matrix.firstChild.nodeValue:matrix.innerHTML; ma_txt=" "+ma_txt+" "; columns=ma_txt.length; if (w3c) { while (matrix.childNodes.length) matrix.removeChild(matrix.childNodes[0]); ma_tab=document.createElement("table"); ma_tab.setAttribute("border", 0); ma_tab.setAttribute("align", effectalign); ma_tab.style.backgroundColor="#000000"; ma_bod=document.createElement("tbody"); for (x=0; x<rows; x++) { ma_row=document.createElement("tr"); for (y=0; y<columns; y++) { matemp=document.createElement("td"); matemp.setAttribute("id", "Mx"+x+"y"+y); matemp.className="matrix"; matemp.appendChild(document.createTextNode(String.fromCharCode(160))); ma_row.appendChild(matemp); } ma_bod.appendChild(ma_row); } ma_tab.appendChild(ma_bod); matrix.appendChild(ma_tab); } else { ma_tab='<ta'+'ble align="'+effectalign+'" border="0" style="background-color:#000000">'; for (var x=0; x<rows; x++) { ma_tab+='<t'+'r>'; for (var y=0; y<columns; y++) { ma_tab+='<t'+'d class="matrix" id="Mx'+x+'y'+y+'"> </'+'td>'; } ma_tab+='</'+'tr>'; } ma_tab+='</'+'table>'; matrix.innerHTML=ma_tab; } ma_cho=ma_txt; for (x=0; x<columns; x++) { ma_cho+=String.fromCharCode(32+Math.floor(Math.random()*94)); m_copo[x]=0; } ma_bod=setInterval("mytricks()", speed); } function mytricks() { x=0; for (y=0; y<columns; y++) { x=x+(m_copo[y]==100); ma_row=m_copo[y]%100; if (ma_row && m_copo[y]<100) { if (ma_row<rows+1) { if (w3c) { matemp=document.getElementById("Mx"+(ma_row-1)+"y"+y); matemp.firstChild.nodeValue=m_coch[y]; } else { matemp=document.all["Mx"+(ma_row-1)+"y"+y]; matemp.innerHTML=m_coch[y]; } matemp.style.color="#33ff66"; matemp.style.fontWeight="bold"; } if (ma_row>1 && ma_row<rows+2) { matemp=(w3c)?document.getElementById("Mx"+(ma_row-2)+"y"+y):document.all["Mx"+(ma_row-2)+"y"+y]; matemp.style.fontWeight="normal"; matemp.style.color="#00ff00"; } if (ma_row>2) { matemp=(w3c)?document.getElementById("Mx"+(ma_row-3)+"y"+y):document.all["Mx"+(ma_row-3)+"y"+y]; matemp.style.color="#009900"; } if (ma_row<Math.floor(rows/2)+1) m_copo[y]++; else if (ma_row==Math.floor(rows/2)+1 && m_coch[y]==ma_txt.charAt(y)) zoomer(y); else if (ma_row<rows+2) m_copo[y]++; else if (m_copo[y]<100) m_copo[y]=0; } else if (Math.random()>0.9 && m_copo[y]<100) { m_coch[y]=ma_cho.charAt(Math.floor(Math.random()*ma_cho.length)); m_copo[y]++; } } if (x==columns) clearInterval(ma_bod); } function zoomer(ycol) { var mtmp, mtem, ytmp; if (m_copo[ycol]==Math.floor(rows/2)+1) { for (ytmp=0; ytmp<rows; ytmp++) { if (w3c) { mtmp=document.getElementById("Mx"+ytmp+"y"+ycol); mtmp.firstChild.nodeValue=m_coch[ycol]; } else { mtmp=document.all["Mx"+ytmp+"y"+ycol]; mtmp.innerHTML=m_coch[ycol]; } mtmp.style.color="#33ff66"; mtmp.style.fontWeight="bold"; } if (Math.random()<reveal) { mtmp=ma_cho.indexOf(ma_txt.charAt(ycol)); ma_cho=ma_cho.substring(0, mtmp)+ma_cho.substring(mtmp+1, ma_cho.length); } if (Math.random()<reveal-1) ma_cho=ma_cho.substring(0, ma_cho.length-1); m_copo[ycol]+=199; setTimeout("zoomer("+ycol+")", speed); } else if (m_copo[ycol]>200) { if (w3c) { mtmp=document.getElementById("Mx"+(m_copo[ycol]-201)+"y"+ycol); mtem=document.getElementById("Mx"+(200+rows-m_copo[ycol]--)+"y"+ycol); } else { mtmp=document.all["Mx"+(m_copo[ycol]-201)+"y"+ycol]; mtem=document.all["Mx"+(200+rows-m_copo[ycol]--)+"y"+ycol]; } mtmp.style.fontWeight="normal"; mtem.style.fontWeight="normal"; setTimeout("zoomer("+ycol+")", speed); } else if (m_copo[ycol]==200) m_copo[ycol]=100+Math.floor(rows/2); if (m_copo[ycol]>100 && m_copo[ycol]<200) { if (w3c) { mtmp=document.getElementById("Mx"+(m_copo[ycol]-101)+"y"+ycol); mtmp.firstChild.nodeValue=String.fromCharCode(160); mtem=document.getElementById("Mx"+(100+rows-m_copo[ycol]--)+"y"+ycol); mtem.firstChild.nodeValue=String.fromCharCode(160); } else { mtmp=document.all["Mx"+(m_copo[ycol]-101)+"y"+ycol]; mtmp.innerHTML=String.fromCharCode(160); mtem=document.all["Mx"+(100+rows-m_copo[ycol]--)+"y"+ycol]; mtem.innerHTML=String.fromCharCode(160); } setTimeout("zoomer("+ycol+")", speed); } } // --> </script><div id="matrix">masticc.up.co.il</div>
אפקט של פנס מעל לתמונה קוד התמונה
<img id="myimage" src="כתובת תמונה">
הסקריפט
<script language="JavaScript1.2"> //Visit http://www.kefliavihu.kef.li s = 50; // the size of the spotlight vp = 10; // the visibility percent of the picture startx = 0; // the top position of your sportlight into the image (on start) starty = 0; // the left position of your spotlight into the image (on start) ////////////////////////////////////////////////////////////////// // No need to edit below this line // ////////////////////////////////////////////////////////////////// var IE = document.all?true:false function moveL() { xv = tempX; yv = tempY; myimage.filters.light.MoveLight(1,xv,yv,s,true); } if (IE&&myimage.filters) document.all.myimage.onmousemove = getMouseXY; var tempX = 0 var tempY = 0 function getMouseXY(e) { tempX = event.offsetX tempY = event.offsetY if (tempX < 0){tempX = 0} if (tempY < 0){tempY = 0} if (t) { moveL(); } return true } var xv = startx; var yv = starty; var t= true; if (IE&&myimage.filters){ myimage.style.cursor="hand"; myimage.filters.light.addAmbient(255,255,255,vp) myimage.filters.light.addPoint(startx,starty,s,255,255,255,255) } </script>
הזזת תמונה עם העכבר
<script language="JavaScript1.2"> <!-- /* by mega script www.kefliavihu.kef.li */ var dragapproved=false var z,x,y function move(){ if (event.button==1&&dragapproved){ z.style.pixelLeft=temp1+event.clientX-x z.style.pixelTop=temp2+event.clientY-y return false } } function drags(){ if (!document.all) return if (event.srcElement.className=="drag"){ dragapproved=true z=event.srcElement temp1=z.style.pixelLeft temp2=z.style.pixelTop x=event.clientX y=event.clientY document.onmousemove=move } } document.onmousedown=drags document.onmouseup=new Function("dragapproved=false") //--> </script> הקוד של התמונה <img src="כאן התמונה" class="drag">
כוכבים רוקדים סביב העכבר
<script language="JavaScript"> <!-- /* by mega script www.kefliavihu.kef.li */ if (document.all){ document.write('<div id="starsDiv" style="position:absolute;top:0px;left:0px">') for (xy=0;xy<7;xy++) document.write('<div style="position:relative;width:3px;height:3px;background:#FFFF00;font-size:2px;visibility:visible"></div>') document.write('</div>') } if (document.layers) {window.captureEvents(Event.MOUSEMOVE);} var yBase = 200; var xBase = 200; var yAmpl = 10; var yMax = 40; var step = .2; var ystep = .5; var currStep = 0; var tAmpl=1; var Xpos = 1; var Ypos = 1; var i = 0; var j = 0; if (document.all) { function MoveHandler(){ Xpos = document.body.scrollLeft+event.x; Ypos = document.body.scrollTop+event.y; } document.onmousemove = MoveHandler; } else if (document.layers) { function xMoveHandler(evnt){ Xpos = evnt.pageX; Ypos = evnt.pageY; } window.onMouseMove = xMoveHandler; } function animateLogo() { if (document.all) { yBase = window.document.body.offsetHeight/4; xBase = window.document.body.offsetWidth/4; } else if (document.layers) { yBase = window.innerHeight/4 ; xBase = window.innerWidth/4; } if (document.all) { var totaldivs=document.all.starsDiv.all.length for ( i = 0 ; i < totaldivs ; i++ ) { var tempdiv=document.all.starsDiv.all[i].style tempdiv.top = Ypos + Math.cos((20*Math.sin(currStep/20))+i*70)*yBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + i*25)/10); tempdiv.left = Xpos + Math.sin((20*Math.sin(currStep/20))+i*70)*xBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + i*25)/10); } } else if (document.layers) { for ( j = 0 ; j < 7 ; j++ ) { var templayer="a"+j document.layers[templayer].top = Ypos + Math.cos((20*Math.sin(currStep/20))+j*70)*yBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + j*25)/10); document.layers[templayer].left =Xpos + Math.sin((20*Math.sin(currStep/20))+j*70)*xBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + j*25)/10); } } currStep += step; setTimeout("animateLogo()", 15); } animateLogo(); // --> </script>
חדשות
<iframe src="http://www.ynet.co.il/Ext/Comp/Ticker/Dhtml_Ticker/0,10016,L-184,00.html" frameborder="0" width="150" height="88" noresize scrolling="no" marginheight="0"></iframe>
הודעה מהבהבת בסטטוס בר
<script> <nobr>var yourwords = "Enter Yout Text Here";<nobr> var speed = 300; var control = 1; function flash() { if (control == 1) { window.status=yourwords; control=0; } else { window.status=""; control=1; } setTimeout("flash()",speed); } </script>