2008-07-01 02:11:02

malm_steen14
» FTalkFreak
FTalk Level: zero
1811
0
1969-12-31

Re: [align=justify][b]bagi member yang ingin bertanya seputar tweaking FS, silahkan bertanya dan posting disini, tapi jangan lupa,,sebelum itu tolong [url=http://theftalk.com/t2744-%5BImportant%5D-

[quote=maskedrider]gmn tu caranya??[/quote] coba pake kode js ini...:thumbsdown::thumbsdown: <">taro d bagian B km dibawah onload handler...:thumbsup::thumbsup: :arrow: Ortodhox coba liat kode sourcenya.... [spoiler]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Page_Counter</title> <script language="JavaScript"> function counter (x) { var arg = x + "="; 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 cek (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } function set (x, y) { var argv = set.arguments; var argc = set.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 = x + "=" + escape (y) + ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + ((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "" : ("; domain=" + domain)) + ((secure == true) ? "; secure" : ""); } function del (x) { var exp = new Date(); exp.setTime (exp.getTime() - 1); var cval = counter (x); document.cookie = x + "=" + cval + "; expires=" + exp.toGMTString(); } var expDays = 30; var exp = new Date(); exp.setTime(exp.getTime() + (expDays*24*60*60*1000)); function tampil(){ var count = counter('count') if(count == null) { set('count','1') return 1 } else { var newcount = parseInt(count) + 1; del('count') set('count',newcount,exp) return count } } function cek(z) { var lst = document.cookie.indexOf (";", z); if (lst == -1) lst = document.cookie.length; return unescape(document.cookie.substring(z,lst)); } </script> <link href="page_counter.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="header" align="center"> <script language="JavaScript"> document.write("<h1>Page.counter.com</h1><h2><marquee direction=up>Selamat Datang<br>Anda Pengunjung ke "+tampil()+"</h2></marquee>"); </script> </div> <div style="clear: both;">&nbsp;</div> <div id="content"> <div id="menu1"> <ul> <li id="menu-01"><a href="#">Home</a></li> <li id="menu-02"><a href="#">Produk</a></li> <li id="menu-03"><a href="#">Beli</a></li> <li id="menu-04"><a href="#">About</a></li> </ul> </div> </div> </body> </html> [/spoiler] smg bermanfaat...:thumbsdown::thumbsdown:

Last edited by malm_steen14 (2008-07-01 02:13:51)

Board footer

© 2024 F Talk

Current time is 07:22

[ 13 queries - 0.932 second ]
Privacy Policy