סקריפטים2
תמונה נגררת-דולמייקר
<html> <head><title>Hama.com-2.net</title><s tyle> <!-- .drag{position:relative;cursor:hand} --> </style> <script language="JavaScript1.2"> <!--
/* Drag and Drop 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 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>
</head>
<body bgcolor="#ffffff"> <img src="Drag.jpg" class=drag> </body> </html>
מצב האיסיקייו שלכם
<SCRIPT language="VBScript"> <!-- dim MoveItX, MoveItY, mnumfond MoveItY=0 MoveItX=0 numfond=document.body.sourceIndex SUB SF MoveItY=MoveItY-1 MoveItX=MoveItX+2 Document.all(numfond).style.BackgroundPosition= MoveItX & " " & MoveItY id=SetTimeOut("SF",100,"VBScript") End Sub SF --> </SCRIPT>
![](http://img78.exs.cx/img78/5994/5574aa.gif)
מניעת צביעת טקסט, נגד גנבות.
<script language="JavaScript1.2">
function disableselect(e){ return false }
function reEnable(){ return true }
//if IE4+ document.onselectstart=new Function ("return false")
//if NS6 if (window.sidebar){ document.onmousedown=disableselect document.onclick=reEnable } </script>
![](http://img78.exs.cx/img78/5994/5574aa.gif)
תמונה מטושטשת שהעכבר עובר מעליה היא מתבהרת. את זה לשים ב-HEAD
<script language="JavaScript" type="text/JavaScript"> <!-- function MM_displayStatusMsg(msgStr) { //v1.0 status=msgStr; document.MM_returnValue = true; } //--> </script> <script language="JavaScript1.2">
function high(which2){ theobject=which2 highlighting=setInterval("highlightit(theobject)",100) } function low(which2){ clearInterval(highlighting) if (which2.style.MozOpacity) which2.style.MozOpacity=0.3 else if (which2.filters) which2.filters.alpha.opacity=30 }
function highlightit(cur2){ if (cur2.style.MozOpacity<1) cur2.style.MozOpacity=parseFloat(cur2.style.MozOpacity)+0.1 else if (cur2.filters&&cur2.filters.alpha.opacity<100) cur2.filters.alpha.opacity+=10 else if (window.highlighting) clearInterval(highlighting) } </script>
ואת זה ב-BODY
<img border="0" src="כתובת התמונה" width="130" height="80" dir="rtl" style="filter:alpha(opacity=30);-moz-opacity:0.2" onMouseover="high(this)" onMouseout="low(this)">
מוזיקת רקע
<bgsound src="כתובת השיר.mid" Loop="מס' הפעמים שהוא יישמע">
חסימת מקש ימני עם הודעה
<script language="Javascript1.2"> <!-- message = "את ההודעה כותבים כאן";
bV = parseInt(navigator.appVersion) bNS = navigator.appName=="Netscape" bIE = navigator.appName=="Microsoft Internet Explorer"
function nrc(e) { if (bNS && e.which > 1){ alert(message) return false } else if (bIE && (event.button >1)) { alert(message) return false; } }
document.onmousedown = nrc; if (document.layers) window.captureEvents(Event.MOUSEDOWN); if (bNS && bV<5) window.onmousedown = nrc; //--> </script> <br> <p>
![](http://img78.exs.cx/img78/5994/5574aa.gif)
כוכבים מסתובבים סביב העכבר!
<HTML> <HEAD> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-8"> <meta name=Generator content="HebMaster V1.50"> <TITLE> </TITLE> </HEAD> <BODY> <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,2,2"></LAYER> <LAYER NAME="a8" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#fff000" CLIP="0,0,2,2"></LAYER> <LAYER NAME="a9" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#ffa000" CLIP="0,0,2,2"></LAYER> <LAYER NAME="a10" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#ff00ff" CLIP="0,0,2,2"></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">
if (document.all){ with (document){ write('<div id="starsDiv" style="position:absolute;top:0px;left:0px">') write('<div style="position:relative;width:1px;height:1px;background:#ffffff;font-size:1px;visibility:visible"></div>') write('<div style="position:relative;width:1px;height:1px;background:#fff000;font-size:1px;visibility:visible"></div>') write('<div style="position:relative;width:1px;height:1px;background:#ffa000;font-size:1px;visibility:visible"></div>') write('<div style="position:relative;width:1px;height:1px;background:#ff00ff;font-size:1px;visibility:visible"></div>') write('<div style="position:relative;width:1px;height:1px;background:#00ff00;font-size:1px;visibility:visible"></div>') write('<div style="position:relative;width:1px;height:1px;background:#0000ff;font-size:1px;visibility:visible"></div>') write('<div style="position:relative;width:1px;height:1px;background:#FF0000;font-size:1px;visibility:visible"></div>') write('<div style="position:relative;width:2px;height:2px;background:#ffffff;font-size:2px;visibility:visible"></div>') write('<div style="position:relative;width:2px;height:2px;background:#fff000;font-size:2px;visibility:visible"></div>') write('<div style="position:relative;width:2px;height:2px;background:#ffa000;font-size:2px;visibility:visible"></div>') write('<div style="position:relative;width:2px;height:2px;background:#ff00ff;font-size:2px;visibility:visible"></div>') write('<div style="position:relative;width:2px;height:2px;background:#00ff00;font-size:2px;visibility:visible"></div>') write('<div style="position:relative;width:2px;height:2px;background:#0000ff;font-size:2px;visibility:visible"></div>') write('<div style="position:relative;width:3px;height:3px;background:#FF0000;font-size:3px;visibility:visible"></div>') write('</div>') } }
if (document.layers) {window.captureEvents(Event.MOUSEMOVE);} var yBase = 200; var xBase = 200; var step = 1; var currStep = 0; var Xpos = 1; var Ypos = 1;
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/6; xBase = window.document.body.offsetWidth/6; } else if (document.layers) { yBase = window.innerHeight/8; xBase = window.innerWidth/8; }
if (document.all) { for ( i = 0 ; i < starsDiv.all.length ; i++ ) { starsDiv.all[i].style.top = Ypos + yBase*Math.sin((currStep + i*4)/12)*Math.cos(400+currStep/200); starsDiv.all[i].style.left = Xpos + xBase*Math.sin((currStep + i*3)/10)*Math.sin(currStep/200); } }
else if (document.layers) { for ( j = 0 ; j < 14 ; j++ ) //number of NS layers! { var templayer="a"+j document.layers[templayer].top = Ypos + yBase*Math.sin((currStep + j*4)/12)*Math.cos(400+currStep/200); document.layers[templayer].left = Xpos + xBase*Math.sin((currStep + j*3)/10)*Math.sin(currStep/200); } } currStep+= step; setTimeout("animateLogo()", 10); } animateLogo(); </script> <BR><CENTER><FONT SIZE="1" COLOR="#0080FF" ><span dir="rtl">סקריפט זה נלקח ממגה סקריפט -מרכז בוני האתרים<BR> <A HREF="http://www.megascript.up.co.il"><FONT SIZE="1" COLOR="#ff0000" >www.megascript.up.co.il ©</FONT></A></FONT></CENTER> </BODY> </HTML>
פינת דשים
<marquee direction="right" bgcolor="#000099" scrolldelay="80" onMouseOut=this.start() onMouseOver=this.stop() scrollamount="3" style="font-weight: bold; color: #000099; position: relative; border-left-style:outset; border-left-width:2px; border-right-style:solid; border-right-width:2px; padding-left:15px; padding-right:2px; padding-top:6px; padding-bottom:1px; background-image:url('images/skins/10_bar_bk.gif'); border-top-width:1px; border-bottom-width:1px" > <font size=2 color=#FF0000 face=david> הדשים כאן
</font></marquee></body><br></html><br></body><br></html><br></body> </html> </body> </html> </body> </html>
![](http://img78.exs.cx/img78/5994/5574aa.gif)
ברכה לפי השעה!
<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>
מונה כניסות:
<html> <head> <title>א"ב בבנית אתרים</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-8"> <style> .counter{ background-color:black; color:yellow; font-weight:bold; } </style> <SCRIPT>
expireDate = new Date expireDate.setMonth(expireDate.getMonth()+6) jcount = eval(cookieVal("jaafarCounter")) jcount++ document.cookie = "jaafarCounter="+jcount+";expires=" + expireDate.toGMTString()
function cookieVal(cookieName) { thisCookie = document.cookie.split("; ") for (i=0; i<thisCookie.length; i++){ if (cookieName == thisCookie[i].split("=")[0]){ return thisCookie[i].split("=")[1] } } return 0 }
function page_counter(){ for (i=0;i<(7-jcount.toString().length);i++) document.write('<span class="counter">0</span>') for (y=0;y<(jcount.toString().length);y++) document.write('<span class="counter">'+jcount.toString().charAt(y)+'</span>') }
</SCRIPT>
</head>
<body >
You have visited this page <SCRIPT> page_counter(jcount); </SCRIPT> times.
</body> </html>
בקרוב עוד!
|