<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>
//Personal Counter- by Jaafar Bin Yusof, Singapore (jaafar66@yahoo.com)
//Modified by Website Abstraction (http://wsabstract.com
-- הפמ חוקל טפירקסה )
//Visit http://wsabstract.com for this 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>
|