Thursday, June 13, 2013

Your last visit on site script

  1. Your last visit on site script js script:
  2.  
  3. demo : http://adf.ly/Q5aax
  4.  
  5. visit this site  http://adf.ly/Q5aax  and copy this code:
  6.  
  7. <script type="text/javascript">
  8. function getCookie(c_name)
  9. {
  10. if(document.cookie.length>0)
  11. {
  12. c_start=document.cookie.indexOf(c_name + "=" );
  13. if (c_start!=-1)
  14. {
  15. c_start=c_start + c_name.length+1;
  16. c_end=document.cookie.indexOf(";",c_start);
  17. if (c_end==-1) c_end=document.cookie.length;
  18. return unescape(document.cookie.substring(c_start,c_end));
  19. }


  20. }
  21. return "";
  22. }
  23. function setCookie(c_name,value,expiredays)
  24. {
  25. var exdate=new Date();
  26. exdate.setDate(exdate.getDate()+expiredays);
  27. document.cookie=c_name+ "=" +escape(value)+
  28. ((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
  29. var x = document.cookie(username);
  30. alert("sfs" );
  31. document.write(x);
  32. }
  33. function showmessage ()
  34. {
  35. var days=421;
  36. nextvisitmsg="Hi Welcome back ! Your last visit was on [displaydate]";
  37. var dat=new Date();
  38. if(getCookie("visit" )=="" ){
  39. setCookie("visit", dat, days);
  40. document.write("you are visting this website for the first time " );
  41. }
  42. else
  43. {
  44. var p=getCookie("visit" );
  45. var pp=Date.parse(p);
  46. var now = new Date();
  47. now.setTime(pp);
  48. var day = new Array("Sun", "Mon", "Tues", "Wed", "Thur", "Fri", "Sat" );
  49. var month = new Array ("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" );
  50. var nd = now.getDate();
  51. var ny = now.getDay();
  52. ny = day[ny];
  53. var nm = now.getMonth();
  54. nm = month[nm];
  55. yy = now.getFullYear();
  56. var hh = now.getHours();
  57. var ampm = "AM";
  58. if(hh >= 12) {ampm = "PM"}
  59. var mins = now.getMinutes();
  60. var secs = now.getSeconds();
  61. var dispDate = ny + ", " + nm + " " + nd + ", " + yy + " " + hh + ":" + mins + ":" + secs + " " + ampm;
  62. document.write(nextvisitmsg.replace("\[displaydate\]", dispDate))
  63. }
  64. setCookie("visit", dat, days);
  65. }
  66. function ctck()
  67. {
  68. var sds = document.getElementById("dum" );
  69. if(sds == null){
  70. alert("You are using a free package.\n You are not allowed to remove the tag.\n" );
  71. }
  72. var sdss = document.getElementById("dumdiv" );
  73. if(sdss == null){
  74. alert("You are using a free package.\n You are not allowed to remove the tag.\n" );
  75. }
  76. }
  77. document.onload="ctck()";
  78. showmessage ();
  79. </script>
  80.  
  81.  
  82. demo : http://adf.ly/Q5aax

No comments:

Post a Comment