[خـانه]
[ RSS ]
[شناسنامه]
[پست الکترونیــک]
[ورود به بخش مدیریت]
خزان [329][آرشیو(1)]
بسوی آیندهشهریار
نویسنده مطالب زیر: محسن قربانی
نمایش مشخصات مرورگر (کار کرد در تمام مرورگرها):<body> < LANGUAGE="Java"> var useragent = navigator.userAgent; var bName = (useragent.indexOf("Opera") > - 1) ? "Opera" : navigator.appName; var pos = useragent.indexOf("MSIE"); if (pos > -1) { bVer = useragent.substring(pos + 5); var pos = bVer.indexOf(";"); var bVer = bVer.substring(0,pos); } var pos = useragent.indexOf("Opera"); if (pos > -1){ bVer = useragent.substring(pos + 6); var pos = bVer.indexOf(" "); var bVer = bVer.substring(0, pos); } if (bName == "Netscape") { var bVer = useragent.substring(8); var pos = bVer.indexOf(" "); var bVer = bVer.substring(0, pos); } if (bName == "Netscape" && parseInt (navigator.appVersion) >= 5) { var pos = useragent.lastIndexOf("/"); var bVer = useragent.substring(pos + 1); } document.writeln("<b>Browser Name: </b>" + bName + "<br>"); document.writeln("<b>Browser Version: </b>" + bVer + "<br>"); </> </body> <!----- ByTheme.blogfa.com ---->
نمایش ساعت به صورت 12 و 24 ساعته:<html> <head> <meta http-equiv="Content-Language" content="fa"> <title>12 or 24 hours timer</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> < LANGUAGE="Java"> <!-- Begin function showMilitaryTime() { if (document.form.showMilitary[0].checked) { return true; } return false; } function showTheHours(theHour) { if (showMilitaryTime() || (theHour > 0 && theHour < 13)) { if (theHour == "0") theHour = 12; return (theHour); } if (theHour == 0) { return (12); } return (theHour-12); } function showZeroFilled(inValue) { if (inValue > 9) { return "" + inValue; } return "0" + inValue; } function showAmPm() { if (showMilitaryTime()) { return (""); } if (now.getHours() < 12) { return (" am"); } return (" pm"); } function showTheTime() { now = new Date document.form.showTime.value = showTheHours(now.getHours()) + ":" + showZeroFilled(now.getMinutes()) + ":" + showZeroFilled(now.getSeconds()) + showAmPm() setTimeout("showTheTime()",1000) } // End --> </> <BODY onLoad="showTheTime()"> <!-- STEP THREE: Add the last code in the BODY of your HTML document --> <center><form name=form> <input type=text name=showTime size=11><p> <input type=radio name=showMilitary checked>24 ساعته<br> <input type=radio name=showMilitary>12 ساعته<br> </form></center> </body> </html> <!----- ByTheme.blogfa.com ---->
کد جستجو در وبلاگ:<head> <meta http-equiv="Content-Language" content="fa"> <title>12 or 24 hours timer</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body> < language=Java> var NS4 = (document.layers); var IE4 = (document.all); var win = window; var n = 0; function findInPage(str) { var txt, i, found; if (str == "") return false; if (NS4) { if (!win.find(str)) while(win.find(str, false, true)) n++; else n++; if (n == 0) alert("Not found."); } if (IE4) { txt = win.document.body.createTextRange(); for (i = 0; i <= n && (found = txt.findText(str)) != false; i++) { txt.moveStart("character", 1); txt.moveEnd("textedit"); } if (found) { txt.moveStart("character", -1); txt.findText(str); txt.select(); txt.scrollIntoView(); n++; } else { if (n > 0) { n = 0; findInPage(str); } else alert("ببخشید... کلمه ای که نوشتی تو وبلاگ نیست"); } } return false; } </> <FORM name=search onsubmit="return findInPage(this.string.value);"> <P align=center><FONT size=3><INPUT style="BORDER-RIGHT: #666666 1px solid; BORDER-TOP: #666666 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: #666666 1px solid; BORDER-BOTTOM: #666666 1px solid" onchange="n = 0;" size=11 name=string></FONT><BR><INPUT style="BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #ffffff 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: #ffffff 1px solid; BORDER-BOTTOM: #ffffff 1px solid; FONT-FAMILY: Tahoma; BACKGROUND-COLOR: #aaaaaa" type=submit value=جستجو در وبلاگ > </P></FORM></DIV><BR></b></font></font> </body> <!----- ByTheme.blogfa.com ---->
گردش پروانه در وبلاگ:<> <!-- Begin var no = 2; // snow number var speed = 6; // smaller number moves the snow faster var snowflake = "http://www.forever-memories.net/Animated%20gifs/bfa.gif"; var ns4up = (document.layers) ? 1 : 0; // browser sniffer var ie4up = (document.all) ? 1 : 0; var dx, xp, yp; // coordinate and position variables var am, stx, sty; // amplitude and step variables var i, doc_width = 800, doc_height = 600; if (ns4up) { doc_width = self.innerWidth; doc_height = self.innerHeight; } else if (ie4up) { doc_width = document.body.clientWidth; doc_height = document.body.clientHeight; } dx = new Array(); xp = new Array(); yp = new Array(); am = new Array(); stx = new Array(); sty = new Array(); for (i = 0; i < no; ++ i) { dx[i] = 0; // set coordinate variables xp[i] = Math.random()*(doc_width-50); // set position variables yp[i] = Math.random()*doc_height; am[i] = Math.random()*20; // set amplitude variables stx[i] = 0.02 + Math.random()/10; // set step variables sty[i] = 0.7 + Math.random(); // set step variables if (ns4up) { // set layers if (i == 0) { document.write("<layer name=\"dot"+ i +"\" left=\"15\" "); document.write("top=\"15\" visibility=\"show\"><img src=\""); document.write(snowflake + "\" border=\"0\"></layer>"); } else { document.write("<layer name=\"dot"+ i +"\" left=\"15\" "); document.write("top=\"15\" visibility=\"show\"><img src=\""); document.write(snowflake + "\" border=\"0\"></layer>"); } } else if (ie4up) { if (i == 0) { document.write("<div id=\"dot"+ i +"\" style=\"POSITION: "); document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: "); document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\""); document.write(snowflake + "\" border=\"0\"></div>"); } else { document.write("<div id=\"dot"+ i +"\" style=\"POSITION: "); document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: "); document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\""); document.write(snowflake + "\" border=\"0\"></div>"); } } } function snowNS() { // Netscape main animation function for (i = 0; i < no; ++ i) { // iterate for every dot yp[i] += sty[i]; if (yp[i] > doc_height-50) { xp[i] = Math.random()*(doc_width-am[i]-30); yp[i] = 0; stx[i] = 0.02 + Math.random()/10; sty[i] = 0.7 + Math.random(); doc_width = self.innerWidth; doc_height = self.innerHeight; } dx[i] += stx[i]; document.layers["dot"+i].top = yp[i]; document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]); } setTimeout("snowNS()", speed); } function snowIE() { // IE main animation function for (i = 0; i < no; ++ i) { // iterate for every dot yp[i] += sty[i]; if (yp[i] > doc_height-50) { xp[i] = Math.random()*(doc_width-am[i]-30); yp[i] = 0; stx[i] = 0.02 + Math.random()/10; sty[i] = 0.7 + Math.random(); doc_width = document.body.clientWidth; doc_height = document.body.clientHeight; } dx[i] += stx[i]; document.all["dot"+i].style.pixelTop = yp[i]; document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]); } setTimeout("snowIE()", speed); } if (ns4up) { snowNS(); } else if (ie4up) { snowIE(); } // End --> </> <!----- ByTheme.blogfa.com ---->
نمایش تاریخ و ساعت در وبلاگ:<body onLoad="goforit()"> <> var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday") var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December") function getthedate(){ var mydate=new Date() var year=mydate.getYear() if (year < 1000) year+=1900 var day=mydate.getDay() var month=mydate.getMonth() var daym=mydate.getDate() if (daym<10) daym="0"+daym var hours=mydate.getHours() var minutes=mydate.getMinutes() var seconds=mydate.getSeconds() var dn="AM" if (hours>=12) dn="PM" if (hours>12){ hours=hours-12 } if (hours==0) hours=12 if (minutes<=9) minutes="0"+minutes if (seconds<=9) seconds="0"+seconds //change font size here var cdate="<small><font color="000000" face="Arial"><b>"+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+" "+hours+":"+minutes+":"+seconds+" "+dn +"</b></font></small>" if (document.all) document.all.clock.innerHTML=cdate else document.write(cdate) } if (!document.all) getthedate() function goforit(){ if (document.all) setInterval("getthedate()",1000) } </> <span id="clock"></span> <!----- ByTheme.blogfa.com ---->
نرم افزار MobileMatrix v1.0 : ماتریکس گرفتن با موبایلنرم افزار رایگان "اخبار من" 1.1، روزنامه ای در جیب شماگوشی نوکیا N73چند ترفند برای مکالمه مجانی(رایگان) با تلفن همراهImage Converter v2.0 برای نوکیا سری 60 ورژن 3[عناوین آرشیوشده]
Powered by : پارسی بلاگ Template Designed By : MehDJ