The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Clock move with forum

View previous topic View next topic Go down

Solved Clock move with forum

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

http://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??????????


cyberking
New Member

Male Posts : 18
Reputation : 0
Language : english

Back to top Go down

Solved Re: Clock move with forum

Post by Tilum on 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:
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>

~ 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 on 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

cyberking
New Member

Male Posts : 18
Reputation : 0
Language : english

Back to top Go down

Solved Re: Clock move with forum

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

Solved + Locked

Guest
Guest


Back to top Go down

View previous topic View next topic Back to top


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