Forum dla bloggerów

Witamy na nowym forum dla Bloggerów!

  • Nie jesteś zalogowany.
  • Polecamy: Gry

#1 2008-03-25 16:31:15

Piotrek

Administrator

Zarejestrowany: 2008-03-24
Posty: 10
Punktów :   

Zegar na bloga

Oto kod który umieście na blogu a będziecie mieli zegar:)Blog musi obsługiwać HTML

Kod:

<table width="64" height="53">
<tr>
<td style="font-size: 10px; font-weight: bold; color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 8; padding-left:17; background:url('http://dodatki.xorg.pl/zegarki/29.gif') no-repeat;">
<a href="http://dodatki.net" title="Dodatki na bloga" target="_blank">
<script>
document.write("<FONT color='#000000' style='font-size :10px; face='Verdana, sans-serif;' font-weight: bold;'>");
var clockid=new Array()
var clockidoutside=new Array()
var i_clock=-1
var thistime= new Date()
var hours=thistime.getHours()
var minutes=thistime.getMinutes()
if (eval(hours) <10) {hours="0"+hours}
if (eval(minutes) < 10) {minutes="0"+minutes}
var thistime = hours+":"+minutes
function writeclock() {
i_clock++
if (document.all || document.getElementById || document.layers) {
clockid[i_clock]="clock"+i_clock
document.write("<span id='"+clockid[i_clock]+"' style='position:relative'>"+thistime+"</span>")
}
}
function clockon() {
thistime= new Date()
hours=thistime.getHours()
minutes=thistime.getMinutes()
if (eval(hours) <10) {hours="0"+hours}
if (eval(minutes) < 10) {minutes="0"+minutes}
thistime = hours+":"+minutes

if (document.all) {
for (i=0;i<=clockid.length-1;i++) {
var thisclock=eval(clockid[i])
thisclock.innerHTML=thistime
}
}
if (document.getElementById) {
for (i=0;i<=clockid.length-1;i++) {
document.getElementById(clockid[i]).innerHTML=thistime
}
}
var timer=setTimeout("clockon()",1000)
}
window.onload=clockon
   </script>
<script>writeclock()</script></a></td></tr></table><script src="http://dodatki.net/stat.js"></script>

Offline

 
value="http://dodatki.xorg.pl/i/i.swf?playlist_url=http://dodatki.xorg.pl/i/2.xspf" />

Stopka forum

RSS
Powered by PunBB
© Copyright 2002–2008 PunBB
Polityka cookies - Wersja Lo-Fi


Darmowe Forum | Ciekawe Fora | Darmowe Fora
www.vgaming.pun.pl www.piszesz.pun.pl www.angelsclan.pun.pl www.cartoonnetwork.pun.pl www.hardstyle-ownia.pun.pl