تبلیغات
مرکز کدهای جاوا و اچ تی ام ال - کد نمایش زمان آخرین بازدید به بازدید کننده

کد نمایش زمان آخرین بازدید به بازدید کننده

جمعه 16 مهر 1389 01:01 ق.ظ   نویسنده : محمد      




حتما مشابه این کد را در سایت ها دیده اید ، این بار ما کد نمایشگر آخرین بازدید بازدید کننده را برای شما قرار میدهیم

« نمونه کد »
خوش آمدید ، آخرین بازدید شما : دوشنبه,17 سپتامبر , 01:23:30 PM

www.ja


کد زیر را در هرکجای قالب که مایلید نمایش پیدا کند قرار دهید .

<center><font color="#FF0000" face="Tahoma" size="1"><script type = "text/javascript">/************************************************ Visit JavaScriptKit at http://javascriptkit.net/***********************************************/var days = 730;var lastvisit=new Object();var firstvisitmsg="این اولین بازدید شماست ، خوش آمدید."; lastvisit.subsequentvisitmsg="خوش آمدید ، آخرین بازدید شما : <b>[displaydate]</b>";lastvisit.getCookie=function(Name){ var re=new RegExp(Name+"=[^;]+", "i"); if (document.cookie.match(re)) return document.cookie.match(re)[0].split("=")[1];return''; }lastvisit.setCookie=function(name, value, days){ var expireDate = new Date();var expstring=expireDate.setDate(expireDate.getDate()+parseInt(days));document.cookie = name+"="+value+"; expires="+expireDate.toGMTString()+"; path=/";}lastvisit.showmessage = function() {var wh = new Date();if (lastvisit.getCookie("visitc") == "") { lastvisit.setCookie("visitc", wh, days); document.write(firstvisitmsg);}else {var lv = lastvisit.getCookie("visitc");var lvp = Date.parse(lv);var now = new Date();now.setTime(lvp);var day = new Array("یکشنبه", "دوشنبه", "سه شنبه", "چهارشنبه", "پنجشنبه", "جمعه", "شنبه");var month = new Array ("ژانویه", "فوریه", "مارس", "آوریل", "می", "ژوئن", "ژوئیه", "آگوست", "سپتامبر", "اکتبر", "نوامبر", "دسامبر");var dd = now.getDate();var dy = now.getDay();dy = day[dy];var mn = now.getMonth();mn = month[mn];var hh = now.getHours();var ampm = "Am";if (hh >= 12) {ampm = "PM"}if (hh >12){hh = hh - 12};if (hh == 0) {hh = 12}if (hh < 10) {hh = "0" + hh};var mins = now.getMinutes();if (mins < 10) {mins = "0"+ mins}var secs = now.getSeconds();if (secs < 10) {secs = "0" + secs}var dispDate = dy + ", " + dd + " " + mn + " , " + hh + ":" + mins + ":" + secs+ " " + ampm  document.write(lastvisit.subsequentvisitmsg.replace("\[displaydate\]", dispDate))}lastvisit.setCookie("visitc", wh, days);}lastvisit.showmessage();</script></center></font><p align="center"><span lang="en-us"><font style="font-size: 1pt"><a target="_blank" href="http://javascriptkit.net" style="text-decoration: none; font-weight:700">www.javascriptkit.net</a></font></span></p>

آخرین ویرایش: - -
دیدگاه ها ()
شنبه 25 شهریور 1396 04:50 ق.ظ
I don't even understand how I ended up here, however I thought this put up was once good.
I don't know who you're but certainly you are going to a famous
blogger when you aren't already. Cheers!
شنبه 4 شهریور 1396 06:19 ب.ظ
Hello to every body, it's my first go to see of this weblog; this blog includes amazing
and actually excellent information designed for visitors.
جمعه 3 شهریور 1396 03:44 ب.ظ
What's up mates, how is the whole thing, and what you want
to say concerning this post, in my view its in fact amazing in favor of me.
دوشنبه 16 مرداد 1396 05:44 ق.ظ
Hi there, just wanted to say, I enjoyed this blog post. It was
inspiring. Keep on posting!
یکشنبه 15 مرداد 1396 11:29 ب.ظ
excellent points altogether, you just received a logo new reader.
What might you recommend about your publish that you
just made some days in the past? Any certain?
شنبه 7 مرداد 1396 11:54 ق.ظ
Useful info. Fortunate me I discovered your web site accidentally, and I'm shocked why this coincidence did not took place earlier!
I bookmarked it.
دوشنبه 14 فروردین 1396 02:36 ب.ظ
Greetings! Quick question that's entirely off topic. Do you know how to make your site mobile friendly?
My blog looks weird when viewing from my iphone4.

I'm trying to find a theme or plugin that might be able to
fix this problem. If you have any recommendations, please share.

Thanks!
چهارشنبه 3 مهر 1392 11:06 ب.ظ
سلام من از وب شما استفاده کردم و خوشم اومد و شمارو لینک کردم
محمد
لطف کردی...
 
لبخندناراحتچشمک
نیشخندبغلسوال
قلبخجالتزبان
ماچتعجبعصبانی
عینکشیطانگریه
خندهقهقههخداحافظ
سبزقهرهورا
دستگلتفکر

درباره وبلاگ


نویسندگان

  • محمد (64)