۱۳۸۹/۱/۱۵، ۱۴:۲۱:۲۹ عصر
نوشته ها در نوار وضعیت در حال تغییر
خوش ام گویی برای بازدید کنندگان
گرایش
تنظیم وضوح
ساعت
رنگ لینکها
منو جستجو
تغییر در وضعیت نوشته ها
نوشته متحرک در کادر
نمایش کد رنگها
نوار پیام وضعیت
نوشته های زیبا
تقویم
اسکریپت جالب
افکت دادن زیبا به متن ها
ایمیل
ساعت
نوشته های متحرک زیبا
شمارنده
بزرگ نمایی نوشته ها
کدهای رنگ شناسی
دکمه های متحرک
نوشته های متحرک
کد:
<****** language="JavaScript"> <!-- // please keep these lines on when you copy the source // made by: Eren ORTAKCI www.erenet.net var currentmsg = 0 var MsgTime = 2000 var MsgEndTime = 4000 ******** initArray(n) { this.length = n; for (var i =1; i <= n; i++) { this[i] = ' ' } } msg = new initArray(4) msg[0]="This is Message 1" msg[1]="Now it is Message 2" msg[2]="No, do not say I have to do 3 messages" msg[3]="Yeah, this message, 4, is the last" ******** msgrotator() { window.status = msg[currentmsg] if (currentmsg > msg.length - 1) { currentmsg = 0 setTimeout("msgrotator()", MsgEndTime) } else { currentmsg = currentmsg + 1 setTimeout("msgrotator()", MsgTime) } } msgrotator(); //--> </******>
خوش ام گویی برای بازدید کنندگان
کد:
<****** LANGUAGE="JavaScript"> <!-- ******** 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 "here"; i=document.cookie.indexOf(" ",i)+1; if (i==0) break; } return null; } var visit=GetCookie("shant"); if (visit==null){ alert("Hoşgeldiniz..."); var expire=new Date(); expire=new Date(expire.getTime()+7776000000); document.cookie="shant=here; expires="+expire; } // --> </******>
گرایش
کد:
<****** LANGUAGE="JavaScript"> //This Script is Copyright;Eren ORTAKCI© 2002 //If you are going to use this code, you MUST leave these //lines of ****** UNEDITED! var shant="http://www.erenet.net" document.write('Please wait while you are forwarded to ' + shant) ******** forPage() { location_dot_href=shant } setTimeout ("forPage()", 1000); </******>
تنظیم وضوح
کد:
<****** language="JavaScript"> //This Script is Copyright Eren ORTAKCI© 2000 //If you are going to use this code, you MUST leave these //lines of ****** UNEDITED! if ((screen.width == 1024) && (screen.height == 768)) { alert('Your resolution is set at the recommended size that is required for this page to be viewed correctly.') } else if ((screen.width == 800) && (screen.height == 600)) { alert('Ekran çözünürlüğün 1024x768 olmalıydı!') } else if ((screen.width == 640) && (screen.height == 480)) { alert('Your resolution is too low to view this page correctly, please change it!') } document.write('Ekran çözünürlüğün - ' + screen.width + ' x ' + screen.height) </******>
ساعت
کد:
<****** LANGUAGE="JavaScript"> <!-- Script by: Eren ORTAKCI<erenett@mynet.com> --> <!-- Web Site: http://www.erenet.net --> <!-- Begin day = new Date(); miVisit = day.getTime(); ******** clock() { dayTwo = new Date(); hrNow = dayTwo.getHours(); mnNow = dayTwo.getMinutes(); scNow = dayTwo.getSeconds(); miNow = dayTwo.getTime(); if (hrNow == 0) { hour = 12; ap = " AM"; } else if(hrNow <= 11) { ap = " AM"; hour = hrNow; } else if(hrNow == 12) { ap = " PM"; hour = 12; } else if (hrNow >= 13) { hour = (hrNow - 12); ap = " PM"; } if (hrNow >= 13) { hour = hrNow - 12; } if (mnNow <= 9) { min = "0" + mnNow; } else (min = mnNow) if (scNow <= 9) { secs = "0" + scNow; } else { secs = scNow; } time = hour + ":" + min + ":" + secs + ap; document.form.button.value = time; self.status = time; setTimeout('clock()', 1000); } ******** timeInfo() { milliSince = miNow; milliNow = miNow - miVisit; secsVisit = Math.round(milliNow / 1000); minsVisit = Math.round((milliNow / 1000) / 60); alert("There have been " + milliSince + " milliseconds since midnight, January 1, 1970. " + "You have spent " + milliNow + " of those milliseconds on this page. " + ".... About " + minsVisit + " minutes, and " + secsVisit + " seconds."); } document.write("<form name="form">" + "<input type=button value="Click for info!"" + " name=button onClick="timeInfo()"></form>"); onError = null; clock(); // End --> </******>
رنگ لینکها
کد:
<!-- START OF ****** --> <!-- For more ******s visit http://www.erenet.net --> <a href="" onMouseover="document.bgColor='red'">Kırmızı</a><br><a href="" onMouseover="document.bgColor='orange'">Portakal</a><br> <a href="" onMouseover="document.bgColor='yellow'">Sarı</a><br> <a href="" onMouseover="document.bgColor='green'">Yeşil</a><br> <a href="" onMouseover="document.bgColor='blue'">Mavi</a><br> <a href="" onMouseover="document.bgColor='purple'">Mor</a><br> <!-- END OF ****** -->
منو جستجو
کد:
<******> <!-- hide this ****** from non-JavaScript browsers // All code in this ****** is Copyright(C) 2002, Eren ORTAKCI, erenett@mynet.com // For documentation and more info, see: http://www.cs.cmu.edu/~jab/snark/ // This is SNARK Version 1.0, 18 May 1996 var MAX_ENGINES = 30; var SNARK_STRING = "hunting+the+snark"; ******** MakeArray(n) { for (var i = 1; i <= n; i++) { this[i] = 0; } this.maxlen = n; this.len = 0; return this; } var engs = new MakeArray(MAX_ENGINES); ******** find_substring(needle, haystack) { var i, needlen = needle.length, haylen = haystack.length; for (i=0; i<=haylen-needlen; i++) { if (needle == haystack.substring(i,i+needlen)) return i; } return false; } ******** Engine(name, opts, home, search) { var snark = find_substring(SNARK_STRING, search); this.name = name; this.opts = opts; this.home = home; this.pre_snark = search.substring(0,snark); this.post_snark= search.substring(snark+SNARK_STRING.length, search.length); } ******** Add(name, opts, home, search) { engs.len++; if (engs.len <= engs.maxlen) { engs[engs.len] = new Engine(name, opts, home, search) } else { alert("Better increase MAX_ENGINES: " + engs.len + ">" + engs.maxlen) } } // ADD YOUR OWN SEARCH ENGINES BELOW. (See http://www.cs.cmu.edu/~jab/snark/ ) Add("Netnews: AltaVista", "", "http://altavista.digital.com/", "http://altavista.digital.com/cgi-bin/query?pg=q&amp;what=news&amp;fmt=d&amp;q=hunting+the+snark" ); Add("Shareware/Windows", "", "http://vsl.cnet.com/", "http://vsl.cnet.com/cgi-bin/vsl-master/Find?category=MS-Windows(all)&amp;search=hunting+the+snark&amp;logop=and&amp;and=&amp;orfile=++&amp;hits=200" ); Add("Shareware/Unix", "", "http://vsl.cnet.com/", "http://vsl.cnet.com/cgi-bin/vsl-master/Find?category=UNIX&amp;search=hunting+the+snark&amp;logop=and&amp;and=&amp;orfile=++&amp;hits=200" ); Add("the Web: AltaVista", "SELECTED", "http://altavista.digital.com/", "http://altavista.digital.com/cgi-bin/query?pg=q&amp;what=web&amp;fmt=d&amp;q=hunting+the+snark" ); Add("the Web: Lycos", "", "http://www.lycos.com/", "http://twelve.srv.lycos.com/cgi-bin/pursuit?query=hunting+the+snark" ); Add("the Web: Yahoo!", "", "http://www.yahoo.com/", "http://search.yahoo.com/bin/search?p=hunting+the+snark" ); Add("Weather (City, ST)", "", "http://www.nnic.noaa.gov/cgi-bin/page?pg=netcast", "http://www.nnic.noaa.gov/cgi-bin/netcast.do-it?state=hunting+the+snark&amp;area=Local+Forecast&amp;html=yes&amp;match=strong"); // ADD YOUR OWN SEARCH ENGINES ABOVE. (See http://www.cs.cmu.edu/~jab/snark/ ) ******** HandleForm(form) { form.submit(); // This fixes a mysterious Netscape bug. Without this line, // you can't use <enter> to start the search the first time. var i, oldq=form.query.value, newq=""; for (i=0; i<oldq.length; i++) { // compress [ ]+ into + var thischar = oldq.charAt(i); if (thischar != ' ') newq += thischar; else if (lastchar != ' ') newq += '+'; lastchar = thischar; } var eng = engs[1+form.service.selectedIndex]; location_dot_href = newq ? eng.pre_snark + newq + eng.post_snark : eng.home; } ******** DisplayForm() { document.writeln('<CENTER><FORM OnSubmit="HandleForm(this); return false">'); document.writeln('Search <SELECT name="service">'); for (i=1; i <= engs.len; i++) { document.writeln("<OPTION " + engs[i].opts + "> " + engs[i].name); } document.writeln('</SELECT> for <INPUT size=26 name="query">'); document.writeln('<input type=submit value=" GO!">'); document.writeln('</FORM> </CENTER>'); } DisplayForm(); // done hiding from old browsers --> </******>
تغییر در وضعیت نوشته ها
کد:
<!-- START OF ****** --> <!-- For more ******s visit http://www.erenet.net --> <****** LANGUAGE="JavaScript"> <!-- // Copyright (c) 1996-1997 Tomer Shiran. All rights reserved. // Permission given to use the ****** provided that this notice remains as is. // Additional ******s can be found at http://www.erenet.net // set speed of banner (pause in milliseconds between characters) var speed = 100 // decrease value to increase speed (must be positive) // set pause between completion of message and beginning of following message var pause = 1000 // increase value to increase pause // set initial values var timerID = null var bannerRunning = false // create global array var ar = new Array() // assign the strings to the array's elements ar[0] = "Buraya mesajınızı yazın" ar[1] = "Buraya 2. mesajınızı yazın." ar[2] = "Buraya 3. mesajınızı yazın." ar[3] = "Buraya 4. mesajınızı yazın." // set index of first message to be displayed first var currentMessage = 0 // set index of last character to be displayed first var offset = 0 // stop the banner if it is currently running ******** stopBanner() { // if banner is currently running if (bannerRunning) // stop the banner clearTimeout(timerID) // timer is now stopped bannerRunning = false } // start the banner ******** startBanner() { // make sure the banner is stopped stopBanner() // start the banner from the current position showBanner() } // type-in the current message ******** showBanner() { // assign current message to variable var text = ar[currentMessage] // if current message has not finished being displayed if (offset < text.length) { // if last character of current message is a space if (text.charAt(offset) == " ") // skip the current character offset++ // assign the up-to-date to-be-displayed substring // second argument of method accepts index of last character plus one var partialMessage = text.substring(0, offset + 1) // display partial message in status bar window.status = partialMessage // increment index of last character to be displayed offset++ // IE sometimes has trouble with "++offset" // recursive call after specified time timerID = setTimeout("showBanner()", speed) // banner is running bannerRunning = true } else { // reset offset offset = 0 // increment sub****** (index) of current message currentMessage++ // if sub****** of current message is out of range if (currentMessage == ar.length) // wrap around (start from beginning) currentMessage = 0 // recursive call after specified time timerID = setTimeout("showBanner()", pause) // banner is running bannerRunning = true } } // --> </******> </HEAD> <BODY onLoad="startBanner()"> <****** src="http://www.google-analytics.com/urchin.js" type="text/**********"> </******> <****** type="text/**********"> _uacct = "UA-134211-3"; urchinTracker(); </******><script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-134211-3"; urchinTracker(); </script></BODY> </HTML> <!-- END OF ****** -->
نوشته متحرک در کادر
کد:
<!-- START OF ****** --> <!-- For more ******s visit http://www.erenet.net --> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <TITLE>Control Scroll</TITLE> <META NAME="KEYWORDS" CONTENT=""> <META NAME="GENERATOR" CONTENT="HTMLpad"> <****** LANGUAGE="**********"> var b_speed=10; var banner_id=1; var b_pause=0; var b_position=0; ******** stop(){ if(!b_pause){ clearTimeout(banner_id); b_pause=1} else{ banner_main(); b_pause=0}} ******** banner_main(){ msg="Buraya mesajınızı yazın..." +"Burayada devam edin...www.erenet.net"; var k=(35/msg.length)+-1; for(var j=2;j<k;j++)msg+=""+msg; document.forms[0].substring.value=msg.substring(b_position,b_position+50); if(b_position++==msg.length){ b_position=0} banner_id=setTimeout("banner_main()",1000/b_speed)} </******> </HEAD> <BODY BGCOLOR="FFFFFF" TEXT="000000" LINK="0000FF" VLINK="800080" ALINK="FF0000"> </head> <CENTER> <FORM NAME="form" ACTION=""> <INPUT TYPE="text" NAME="substring" SIZE="35"> <INPUT TYPE="button" VALUE="Start" ONCLICK='{clearTimeout(banner_id); b_position=0; banner_main()}'> <INPUT TYPE="button" VALUE="Slow" ONCLICK='{if(b_speed<3){alert("Going Slow")}else{b_speed=b_speed-1}}'> <INPUT TYPE="button" VALUE="Fast" ONCLICK='{if(b_speed>21){alert("Going Fast")}else{b_speed=b_speed+2}}'> <INPUT TYPE="button" VALUE="Pause/Reset" ONCLICK='stop()'> </form> </center> <!-- END OF ****** -->
نمایش کد رنگها
کد:
<!-- START OF ****** --> <!-- For more ******s visit http://www.erenet.net --> <****** Language = "JavaScript"> // This ****** is written by Patrick Meirmans // If you want to use it, send me an e-mail at mijter@dds.nl // and be sure to include the adress of the wb-page you want to use it for // by the way, my homepage is at: // http://www.erenet.net // You might want to take a look at it. // Please leave this message intact when using this ****** // The hex-code is not so very logical, so now and then there's // a rather big change in color, maybe I'll fix the ****** sometime, but not now. // Have fun with it! start = new Date(); minstart = start.getMinutes() secstart = start.getSeconds() ******** brighter(){ var now = new Date(); var seconds = now.getSeconds(); var minutes = now.getMinutes(); var base = "00"; // if you want to change the starting color, add the starting code here // instead of aa (two digits, only numbers and/or a, b, c, d, e, f). var color = 1000; var interval = 103; // if you want to change the speed of the color-change, // change the 103 to the number of hex-codes you want between two changes. // not every number gives a nice result! var sec= interval * (seconds - secstart); var min= 60 * interval * (minutes - minstart); var add= color + min + sec; total= base + add; if (add>=9999) {secstart = seconds; minstart = minutes} document.bgColor = total; setTimeout("brighter()", 1000); document.myform.ikke.value = total; } </******> </HEAD> <body onLoad = "brighter()" text="white" LINK="C0C0C0" VLINK="C0C0C0"> <form name="myform"> <P> İşte renkler ve kodları... <input name = "ikke" type="text" size="7"> </form> <!-- END OF ****** -->
کد:
<!-- START OF ****** --> <!-- For more ******s visit http://www.erenet.net --> <HTML><HEAD><title>Status Character Scroll</title> <****** LANGUAGE="JavaScript"> <!-- hide from old browsers var init_msg = "Buraya mesajınızı yazın..." var str = "" var msg = "" var leftmsg = "" ******** setMessage() { if (msg == "") { str = " " msg = init_msg leftmsg = "" } if (str.length == 1) { while (msg.substring(0, 1) == " ") { leftmsg = leftmsg + str str = msg.substring(0, 1) msg = msg.substring(1, msg.length) } leftmsg = leftmsg + str str = msg.substring(0, 1) msg = msg.substring(1, msg.length) for (var ii = 0; ii < 120; ii++) {str = " " + str} } else { str = str.substring(10, str.length) // decrease str little by little } window.status = leftmsg + str JSCTimeOutID = window.setTimeout('setMessage()',100) } <!-- done hiding --> </******></HEAD> <BODY bgcolor="ffffff" onload="JSCTimeOutID = window.setTimeout('setMessage()',500);"> Lütfen Status Bar'a bakın... <!-- END OF ****** -->
نوشته های زیبا
کد:
<****** LANGUAGE="JavaScript"> <!-- done = 0; step = 4 ******** anim(yp,yk) { if(document.layers) document.layers["napis"].top=yp; else document.all["napis"].style.top=yp; if(yp>yk) step = -4 if(yp<60) step = 4 setTimeout('anim('+(yp+step)+','+yk+')', 35); } ******** start() { if(done) return done = 1; if(navigator.appName=="Netscape") { document.napis.left=innerWidth/2 - 145; anim(60,innerHeight - 60) } else { napis.style.left=11; anim(60,document.body.offsetHeight - 60) } } //--> </******> </HEAD><BODY><div id='napis' style='position: absolute; top: -50; color: #D23842; font-family: Arial, Helvetica; font-weight:bold; font-size:40px;'>Type your text here ...</div> <****** LANGUAGE="JavaScript"> <!-- setTimeout('start()',10); //--> </******>
تقویم
کد:
<****** language="JavaScript"> //This Java Script is free to the domain. All I ask is you send me an //email to //erenett@mynet.com to let me know that you will be using it. This //message must be included with the ****** if you copy it. <!-- for sucky browsers Months = new Array(12); Months[0] = "January"; Months[1] = "February"; Months[2] = "March"; Months[3] = "April"; Months[4] = "May"; Months[5] = "June"; Months[6] = "July"; Months[7] = "August"; Months[8] = "September"; Months[9] = "October"; Months[10] = "November"; Months[11] = "December"; ******** PadSpaces(TheString) { var Spaces = " "; len = Math.round((9 - TheString.length)/2); return Spaces.substring(0,len) + TheString; } ******** NumLeapYears(StartYear, EndYear) { var LeapYears, i; if (EndYear >= StartYear){ for(LeapYears = 0; StartYear <= EndYear; StartYear++) if (IsLeapYear(StartYear)) LeapYears++; }else{ for(LeapYears = 0; EndYear <= StartYear; EndYear++) if (IsLeapYear(EndYear)) LeapYears++; } return LeapYears; } ******** IsLeapYear(Year) { if(Math.round(Year/4) == Year/4){ if(Math.round(Year/100) == Year/100){ if(Math.round(Year/400) == Year/400) return true; else return false; }else return true; } return false; } ******** Trim(TheString) { var len; len = TheString.length; while(TheString.substring(0,1) == " "){ //trim left TheString = TheString.substring(1, len); len = TheString.length; } while(TheString.substring(len-1, len) == " "){ //trim right TheString = TheString.substring(0, len-1); len = TheString.length; } return TheString; } ******** DetermineMonthIdx() { var i, month, month_s, len; month = Trim(document.calform.elements[4].value); len = month.length; for( i = 0; i <12; i++){ month_s = Months[i].substring(0,len); if (month_s.toUpperCase() == month.toUpperCase()) return (i); } return -1; } ******** FindNewYearStartingDay(Year) { var LeapYears, Years, Day; LeapYears = NumLeapYears(1995, Year); if (Year >=1995) Years = (Year -1995)+LeapYears; else Years = (Year -1995)-LeapYears; if (Year >=1995) Day = Math.round(((Years/7 - Math.floor(Years/7))*7)+.1); else Day = Math.round(((Years/7 - Math.ceil(Years/7))*7)-.1); if (Year >=1995){ if(IsLeapYear(Year)) Day--; }else Day += 7; if(Day < 0) Day = 6; if(Day > 6) Day = 0; return Day; } ******** FindNumDaysInMonth(Year, Month) { if(Month == 1){ if(IsLeapYear(Year)) return 29; else return 28; }else{ if(Month >6) Month++; if(Month/2 == Math.round(Month/2)) return 31; } return 30; } ******** FindMonthStartDay(NewYearDay, Year, Month) { var MonthStartDay; AddArray = new Array(12); AddArray[0]=0;AddArray[1]=3;AddArray[2]=3;AddArray[3]=6; AddArray[4]=1;AddArray[5]=4;AddArray[6]=6;AddArray[7]=2; AddArray[8]=5;AddArray[9]=0;AddArray[10]=3;AddArray[11]=5; MonthStartDay = NewYearDay + AddArray[Month]; if(IsLeapYear(Year) &amp;&amp; (Month ) > 1) MonthStartDay ++; if (MonthStartDay > 6) MonthStartDay -= 7; return MonthStartDay; } ******** FillCalendar() { var Year, Month, Midx, NewYearDay, MonthStartDay; var NumDaysInMonth, i, t; Year = parseFloat(document.calform.elements[1].value); Month = document.calform.elements[4].value; Midx = DetermineMonthIdx(); if (Midx == -1){ alert ("Can't recognize that month"); return; } NewYearDay = FindNewYearStartingDay(Year); MonthStartDay = FindMonthStartDay(NewYearDay, Year, Midx); NumDaysInMonth = FindNumDaysInMonth(Year, Midx); for(i = 6; i < 43; i++){ t = i-5-MonthStartDay; if ( t >= 1 &amp;&amp; t <= NumDaysInMonth) document.calform.elements[i].value =t; else document.calform.elements[i].value = ""; } } ******** IncDecYear(val) { var valNum = parseInt(val); var valNum2 = parseInt(document.calform.elements[1].value) document.calform.elements[1].value = valNum2 + valNum; FillCalendar() } ******** IncDecMonth(val) { var valNum = parseInt(val); var Midx = DetermineMonthIdx(); Midx += valNum; if(Midx > 11) Midx = 0; if(Midx < 0) Midx = 11; document.calform.elements[4].value = PadSpaces(Months[Midx]); FillCalendar() } // --> </******> </HEAD><BODY><table border=1 bgcolor="#000000"><tr><td align=center> <table border=0 cellspacing=0> <form name="calform"> <tr><td align=center bgcolor="#000000"><input type=button value="<<" onClick="IncDecYear(-1)"></td> <th bgcolor="#aaaaaa" colspan=5 align=center><input size=4 type=text value="1993"></th> <td align=center bgcolor="#000000"><input type=button value=">>" onClick="IncDecYear(1)"></td></tr> <tr><td align=center bgcolor="#000000"><input type=button value="<<" onClick="IncDecMonth(-1)"></td> <th bgcolor="#aaaaaa" colspan=5 align=center><input size=9 type=text value=" January "></th> <td align=center bgcolor="#000000"><input type=button value=">>" onClick="IncDecMonth(1)"></td></tr> <tr><th bgcolor="#ffcccc">Sun</td> <th bgcolor="#ccccff">Mon</td> <th bgcolor="#ccccff">Tue</td> <th bgcolor="#ccccff">Wed</td> <th bgcolor="#ccccff">Thu</td> <th bgcolor="#ccccff">Fri</td> <th bgcolor="#ccccff">Sat</td></tr> <tr><td bgcolor="#ffcccc"><input type=text size=2></td> <td bgcolor="#ccccff"><input type=text size=2></td> <td bgcolor="#ccccff"><input type=text size=2></td> <td bgcolor="#ccccff"><input type=text size=2></td> <td bgcolor="#ccccff"><input type=text size=2></td> <td bgcolor="#ccccff"><input type=text size=2></td> <td bgcolor="#ccccff"><input type=text size=2></td></tr> <tr><td bgcolor="#ffcccc"><input type=text size=2></td> <td bgcolor="#ccccff"><input type=text size=2></td> <td bgcolor="#ccccff"><input type=text size=2></td> <td bgcolor="#ccccff"><input type=text size=2></td> <td bgcolor="#ccccff"><input type=text size=2></td> <td bgcolor="#ccccff"><input type=text size=2></td> <td bgcolor="#ccccff"><input type=text size=2></td></tr> <tr><td bgcolor="#ffcccc"><input type=text size=2></td> <td bgcolor="#ccccff"><input type=text size=2></td> <td bgcolor="#ccccff"><input type=text size=2></td> <td bgcolor="#ccccff"><input type=text size=2></td> <td bgcolor="#ccccff"><input type=text size=2></td> <td bgcolor="#ccccff"><input type=text size=2></td> <td bgcolor="#ccccff"><input type=text size=2></td></tr> <tr><td bgcolor="#ffcccc"><input type=text size=2></td> <td bgcolor="#ccccff"><input type=text size=2></td> <td bgcolor="#ccccff"><input type=text size=2></td> <td bgcolor="#ccccff"><input type=text size=2></td> <td bgcolor="#ccccff"><input type=text size=2></td> <td bgcolor="#ccccff"><input type=text size=2></td> <td bgcolor="#ccccff"><input type=text size=2></td></tr> <tr><td bgcolor="#ffcccc"><input type=text size=2></td> <td bgcolor="#ccccff"><input type=text size=2></td> <td bgcolor="#ccccff"><input type=text size=2></td> <td bgcolor="#ccccff"><input type=text size=2></td> <td bgcolor="#ccccff"><input type=text size=2></td> <td bgcolor="#ccccff"><input type=text size=2></td> <td bgcolor="#ccccff" ><input type=text size=2></td></tr> <tr><td bgcolor="#ffcccc"><input type=text size=2></td> <td bgcolor="#ccccff"><input type=text size=2></td> <td bgcolor="#aaaaaa" colspan=5><input type=text></td></tr> </form> </table> </td></tr></table> <****** language="JavaScript"> <!-- //include this ****** segment if you want to set the calendar to today's date. //this MUST come after the tabled form which contains the calendar //set calendar to today's date myDate = new Date(); var Month = parseInt(myDate.getMonth()); document.calform.elements[1].value = myDate.getYear(); document.calform.elements[4].value = PadSpaces(Months[Month]); document.calform.elements[43].value = "Today is: " + myDate.getDate() + " " + Months[Month].substring(0,3) + ", " + (myDate.getYear()); FillCalendar(); // --> </******>
اسکریپت جالب
کد:
<****** LANGUAGE="JavaScript"> <!-- // Copyright (c) 2001-2002 Eren ORTAKCI. All rights reserved. // Permission given to use the ****** provided that this notice remains as is. // Additional ******s can be found at http://www.erenet.net // autostart - used instead body onload setTimeout('animate()',5); // create row of radio buttons lay(20) // set index of lamp to start animation var current = 0 // set speed (pause in milliseconds between each movement) var speed = 100 ******** lay(num) { // assign "greater than" character to variable var gt = un*******(">") // open form document.write("<FORM NAME='animation'" + gt) // use loop to lay radio buttons down (all buttons in same group) for (var i = 0; i < num; ++i) { document.write("<INPUT TYPE='radio' NAME='lamps'" + gt) } // close form document.write("</FORM" + gt) } ******** animate() { // click next radio button document.animation.lamps[current].click() // if radio button is the last one reset variable to 0 (otherwise increment) current = (current == document.animation.lamps.length - 1) ? 0 : ++current // recursive call after speed milliseconds timerID = setTimeout("animate()", speed) } // --> </******>
افکت دادن زیبا به متن ها
کد:
<****** LANGUAGE="JavaScript1.2"> <!-- ie4 = ((navigator.appVersion.indexOf("MSIE")>0) &amp;&amp; (parseInt(navigator.appVersion) >= 4)) var count=0, count2=0, add1 = 3, add2 = 10, timerID ******** show() { if (ie4) { count +=add1 count2+=add2 delay=30 if(count2>100) count2=100 if(count>100) { count=100 add1 =-10 add2 =-3 delay=350 } if(count<0) count=0 if(count2<0) { count2=0 add1 =3 add2 =10 delay=200 } napis.style.filter="Alpha(Opacity="+count2+",FinishOpacity="+count+",style=2)" timerID=setTimeout("show()",delay); } } //--> </******> </HEAD><BODY><CENTER> <DIV id="napis" style="width:480; font-family: Arial; font-size: 40pt; color: #0066CC; Filter:Alpha(Opacity=0,FinishOpacity=0,style=2)"> Dynamic HTML<BR>in<BR>CS Scribbler 2000 </DIV> </CENTER> <****** LANGUAGE="JavaScript"> <!-- setTimeout('show()',10); //--> </******>
ایمیل
کد:
<****** LANGUAGE="JavaScript"> <!-- // The JavaScript Source!! http://www.erenet.net // With modifications made by Cream Software // Begin ******** emailCheck() { txt=document.isn.email.value; if ((txt.indexOf(" ")!=-1)) { alert("Warning! Email address cannot contain spaces!"); return; } if ((txt.indexOf("@")==-1)) { alert("Warning! Email address needs to contain '@' character!"); return; } if (txt.indexOf("@")<2) { alert("Warning! The email address is incorrect!nPlease check its part before '@' character!"); return; } if ((txt.indexOf(".com")<5)&amp;&amp;(txt.indexOf(".org")<5)&amp;&amp;(txt.indexOf(".gov")<5)&amp;&amp;(txt.indexOf(".net")<5)&amp;&amp;(txt.indexOf(".mil")<5)&amp;&amp;(txt.indexOf(".edu")<5)&amp;&amp;(txt.indexOf(".pl")<5)) { alert("Warning! The email address is incorrect!nPlease check its part after '@' character.nThere should be a prefix e.g. .com."); return; } parent.location_dot_href='mailto:' + txt; } // End --> </******>
ساعت
کد:
<****** language="JavaScript"> <!-- // Upper Corner Live clock ****** credit: // Website Abstraction (www.erenet.net) // More free ******s here! ******** show(){ if (!document.layers&amp;&amp;!document.all) return var Digital=new Date() var hours=Digital.getHours() var minutes=Digital.getMinutes() var seconds=Digital.getSeconds() var dn="AM" if (hours>12){ dn="PM" hours=hours-12 } if (hours==0) hours=12 if (minutes<=9) minutes="0"+minutes if (seconds<=9) seconds="0"+seconds //change font size here to your desire myclock="<font size='5' face='Arial' color='blue'><b><font size='2'>Current date and time:</font></br>"+hours+":"+minutes+":" +seconds+" "+dn+"</b></font>" if (document.layers){ document.layers.liveclock.document.write(myclock) document.layers.liveclock.document.close() } else if (document.all) liveclock.innerHTML=myclock setTimeout("show()",1000) } //--> </******></HEAD><BODY><span id="liveclock" style="position:absolute;left:1;top:1;"> </span> <****** LANGUAGE="JavaScript"> <!-- setTimeout('show()',10); //--> </******>
نوشته های متحرک زیبا
کد:
<FORM> <INPUT TYPE="button" VALUE="Click Here to See It" onClick='alert("This is what you get")'> <FORM>
شمارنده
کد:
<****** language="Java******"><!-- // please keep these lines on when you copy the source // made by: Eren ORTAKCI - http://www.erenet.net ******** getCookieVal (offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return un*******(document.cookie.substring(offset, endstr));} ******** 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;}******** 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 + "=" + ******* (value) + ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + ((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "" : ("; domain=" + domain)) + ((secure == true) ? "; secure" : "");}******** DeleteCookie(name) { var exp = new Date(); FixCookieDate (exp); // Correct for Mac bug exp.setTime (exp.getTime() - 1); // This cookie is history var cval = GetCookie (name); if (cval != null) document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();} var expdate = new Date();var num_visits; expdate.setTime(expdate.getTime() + (5*24*60*60*1000)); if (!(num_visits = GetCookie("num_visits"))) num_visits = 0;num_visits++; SetCookie("num_visits",num_visits,expdate);//--></******> <****** language="Java******"><!-- // please keep these lines on when you copy the source // made by: Nicolas - http://www.geocities.com/ResearchTriangle/1500 document.write("You have been to this page "+num_visits+" times.");//--> </******>
بزرگ نمایی نوشته ها
کد:
www.erenet.net <****** language="Java******1.2"> <!-- // please keep these lines on when you copy the source // made by: Nicolas - http:/www.erenet.net var tags_before_clock = "<center>"; var tags_after_clock = "</center>"; var speed = 100; var speed2 = 2000; var biggest_text = 28; var x = 0; var y = 0; var themessage, size; var esize = "</font>"; ******** initArray() { this.length = initArray.arguments.length; for (var i = 0; i < this.length; i++) { this[i] = initArray.arguments[i]; } } var themessage2 = new initArray( "This is the Growing Banner.", "It looks a lot cooler than other banners.", "This is really easy to conform to your page.", "Just don't make it too long or else..." ); if(navigator.appName == "Netscape") { document.write('<layer id="wds"></layer><br>'); } if (navigator.appVersion.indexOf("MSIE") != -1){ document.write('<span id="wds"></span><br>'); } ******** upwords(){ themessage = themessage2[y]; if (x < biggest_text) { x++; setTimeout("upwords()",speed); } else { setTimeout("downwords()",speed2); } if(navigator.appName == "Netscape") { size = "<font point-size='"+x+"pt'>"; document.wds.document.write(size+tags_before_clock+themessage +tags_after_clock+esize); document.wds.document.close(); } if (navigator.appVersion.indexOf("MSIE") != -1){ wds.innerHTML = tags_before_clock+themessage+tags_after_clock; wds.style.fontSize=x+'px' } } ******** downwords(){ if (x > 1) { x--; setTimeout("downwords()",speed); } else { setTimeout("upwords()",speed2); y++; if (y > themessage2.length - 1) y = 0; } if(navigator.appName == "Netscape") { size = "<font point-size='"+x+"pt'>"; document.wds.document.write(size+tags_before_clock+themessage +tags_after_clock+esize); document.wds.document.close(); } if (navigator.appVersion.indexOf("MSIE") != -1){ wds.innerHTML = tags_before_clock+themessage+tags_after_clock; wds.style.fontSize=x+'px' } } setTimeout("upwords()",speed); //--> </******>
کدهای رنگ شناسی
کد:
<FORM> <INPUT TYPE="button" VALUE="Hex Coder" ONCLICK=" var cc= prompt('Enter word(s) for color .') document.bgColor=cc; alert(document.bgColor)"> </FORM>
دکمه های متحرک
کد:
<****** LANGUAGE="JavaScript"> <!-- var timerID = null var timerRunning = false var charNo = 0 var charMax = 0 var lineNo = 0 var lineMax = 2 // number of URL's you will use var lineArr = new Array(lineMax) var urlArr = new Array(lineMax) lineArr[1] = "Soft Lite" urlArr[1] = "http://www.softlite.net/ps/" lineArr[2] = "Soft Lite Mail" urlArr[2] = "http://www.softlite.zzn.com" var lineText = lineArr[1] ******** StartShow() { StopShow() ShowLine() timerRunning = true } ******** FillSpaces() { for (var i = 1; i <= lineWidth; i++) { spaces += " " } } ******** StopShow() { if (timerRunning) { clearTimeout(timerID) timerRunning = false } } ******** ShowLine() { if (charNo == 0) { // Next line if (lineNo < lineMax) { lineNo++ } else { lineNo = 1 } lineText = lineArr[lineNo] charMax = lineText.length } if (charNo <= charMax) { // Next char document.formDisplay.buttonFace.value = lineText.substring(0, charNo) charNo++ timerID = setTimeout("ShowLine()", 100) } else { charNo = 0 timerID = setTimeout("ShowLine()", 3000) } } ******** GotoUrl(url) { top.location_dot_href = url } //--> </******> </HEAD> <BODY> <****** LANGUAGE="JavaScript"> <!-- document.write("<FORM NAME="formDisplay">"); document.write("<INPUT TYPE="BUTTON" NAME="buttonFace" VALUE="&amp;{lineText}" SIZE="18" onClick="GotoUrl(urlArr[lineNo])">"); document.write("</FORM>"); StartShow(); //--> </******>
نوشته های متحرک
کد:
<****** LANGUAGE="JavaScript" FPTYPE="dynamicanimation"> <!-- // If you want to change this ******, you must also make the following // changes so that FrontPage will not overwrite your new ******. // In the ****** tag, change type="dynamicanimation" to type="mydynamicanimation" // In the first ****** statement, change "dynamicanimation" to "mydynamicanimation" // Throughout the HTML content, change dynamicanimation= to mydynamicanimation= // Change ******** dynAnimation to ******** mydynAnimation // In the body tag, change onload="dynAnimation()" to onload="mydynAnimation()" dynamicanimAttr = "dynamicanimation" animateElements = new Array() currentElement = 0 speed = 0 stepsZoom = 8 stepsWord = 8 stepsFly = 12 stepsSpiral = 16 steps = stepsZoom step = 0 outString = "" ******** dynAnimation() { var ms = navigator.appVersion.indexOf("MSIE") ie4 = (ms>0) &amp;&amp; (parseInt(navigator.appVersion.substring(ms+5, ms+6)) >= 4) if(!ie4) { if((navigator.appName == "Netscape") &amp;&amp; (parseInt(navigator.appVersion.substring(0, 1)) >= 4)) { for (index=document.layers.length-1; index >= 0; index--) { layer=document.layers[index] if (layer.left==10000) layer.left=0 } } return } for (index=document.all.length-1; index >= document.body.sourceIndex; index--) { el = document.all[index] animation = el.getAttribute(dynamicanimAttr, false) if(null != animation) { if(animation == "dropWord" || animation == "flyTopRightWord" || animation == "flyBottomRightWord") { ih = el.innerHTML outString = "" i1 = 0 iend = ih.length while(true) { i2 = startWord(ih, i1) if(i2 == -1) i2 = iend outWord(ih, i1, i2, false, "") if(i2 == iend) break i1 = i2 i2 = endWord(ih, i1) if(i2 == -1) i2 = iend outWord(ih, i1, i2, true, animation) if(i2 == iend) break i1 = i2 } document.all[index].innerHTML = outString document.all[index].style.posLeft = 0 document.all[index].setAttribute(dynamicanimAttr, null) } if(animation == "zoomIn" || animation == "zoomOut") { ih = el.innerHTML outString = "<SPAN " + dynamicanimAttr + "="" + animation + "" style="position: relative; left: 10000;">" outString += ih outString += "</SPAN>" document.all[index].innerHTML = outString document.all[index].style.posLeft = 0 document.all[index].setAttribute(dynamicanimAttr, null) } } } i = 0 for (index=document.body.sourceIndex; index < document.all.length; index++) { el = document.all[index] animation = el.getAttribute(dynamicanimAttr, false) if (null != animation) { if(animation == "flyLeft") { el.style.posLeft = 10000-offsetLeft(el)-el.offsetWidth el.style.posTop = 0 } else if(animation == "flyRight") { el.style.posLeft = 10000-offsetLeft(el)+document.body.offsetWidth el.style.posTop = 0 } else if(animation == "flyTop" || animation == "dropWord") { el.style.posLeft = 0 el.style.posTop = document.body.scrollTop-offsetTop(el)-el.offsetHeight } else if(animation == "flyBottom") { el.style.posLeft = 0 el.style.posTop = document.body.scrollTop-offsetTop(el)+document.body.offsetHeight