The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Clock move with forum

2 posters

Go down

Solved Clock move with forum

Post by cyberking January 15th 2011, 4:04 pm

https://help.forumotion.com/t80302-clock-move-with-forum

I saw this topic .. but i dont know how i use..is it html script?. can any1 tell me how i use this??????????

avatar
cyberking
New Member

Male Posts : 18
Reputation : 0
Language : english

Back to top Go down

Solved Re: Clock move with forum

Post by Tilum January 15th 2011, 11:57 pm

Well that HTML could be placed in a portal. gang said that you needed to replace a certain section to make it work properly...

And here's the completed code...

Spoiler:

~ Tilum
Tilum
Tilum
Active Poster

Male Posts : 1759
Reputation : 62
Location : England.

Back to top Go down

Solved Re: Clock move with forum

Post by cyberking January 17th 2011, 3:28 pm

[code]<span id="liveclock" style="position:fixed;left:0;top:0;">
</span>

<script language="JavaScript">
<!--

/*
Upper Left Corner Live Clock Script- ©️ Dynamic Drive (www.dynamicdrive.com)
For full source code, 100's more DHTML scripts, and TOS,
visit http://www.dynamicdrive.com
*/

function show5(){
if (!document.layers&&!document.all&&!document.getElementById)
return
var Digital=new Date()
var hours=Digital.getHours()
var minutes=Digital.getMinutes()
var seconds=Digital.getSeconds()
var dn="AM"
if (hours>12){
dn="PM"
hours=hours-12
}
if (hours==0)
hours=12
if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
//change font size here to your desire
myclock="<font size='5' face='Arial' ><b><font size='1'>Current Time:</font></br>"+hours+":"+minutes+":"
+seconds+" "+dn+"</b></font>"
if (document.layers){
document.layers.liveclock.document.write(myclock)
document.layers.liveclock.document.close()
}
else if (document.all)
liveclock.innerHTML=myclock
else if (document.getElementById)
document.getElementById("liveclock").innerHTML=myclock
setTimeout("show5()",1000)
}

//-->
</script> [code]

tnx 4 this code Cool
avatar
cyberking
New Member

Male Posts : 18
Reputation : 0
Language : english

Back to top Go down

Solved Re: Clock move with forum

Post by Guest January 17th 2011, 5:40 pm

Solved + Locked
avatar
Guest
Guest


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum