Board Logo

 Username:    Password:    Stay logged in: Welcome Guest. Please Login or Register.  Jun 27th, 2017, 05:32am


Board Hacks
Important News
Please read the notes posted with any codes carefully, as they will usually tell you where they need to go.
Welcome to the Conforums Hacks Board!

All codes here have been tested but we accept no responsibility if these codes do not work on your board, or have an adverse effect when used in combination with other codes.

This board is read only. Any queries or requests for codes should be made on the Coding Forum

Helpful sites
Google
Dynamic Drive

The Staff
Roger
Dave
GIzzy



« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Add Time To Info center  (Read 2206 times)
Dave
I've always wanted one of these wink
Conforums Administrator


member is offline

Avatar

Mr Fixit...


Homepage PM

Gender: Male
Posts: 17636
xx Add Time To Info center
« Thread started on: Feb 5th, 2004, 3:44pm »

Code submitted by Killian


hey, one of my first code, some help from Luke Dyson but mostly my own,

Code:
<script>
/*
Created by Killian Bartlett

This code cannot be posted (independently or with other scripts) at anywhere other than Killlian's World, without express permission from its creator.
This header must stay intact at all times.


*/
<!--
tds = document.getElementsByTagName('td')
for(f=0;f<tds.length;f++) {
if(tds[f].innerHTML.indexOf('View the') != -1 && tds[f].innerHTML.indexOf('this forum') != -1 && tds[f].width == '60%' ) {
tds[f].innerHTML+= '<font size=1><br\>The Time Is: <span id=tick2></font>'
}
}
//--></script> 

<script>
<!--
// Time
// Written by Killian Bartlett with help from Luke Dyson
// http://www.killiansworld.tk
function show2(){
if (!document.all&&!document.getElementById)
return
thelement=document.getElementById? document.getElementById("tick2"): document.all.tick2
var Digital=new Date()
var hours=Digital.getHours()
var minutes=Digital.getMinutes()
var seconds=Digital.getSeconds()
var dn="PM"
if (hours<12)
dn="AM"
if (hours>12)
hours=hours-12
if (hours==0)
hours=12
if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds
var ctime=hours+":"+minutes+":"+seconds+" "+dn
thelement.innerHTML=" <style='font-size:11;color:black;'>"+ctime+""
setTimeout("show2()",1000)
}
window.onload=show2
//-->
</script>  
 
 


Main Footer

Killian :)

Note: This code will not work with the news fader enabled

If you'd like to see a preview of this code's effects click here.
« Last Edit: Jul 5th, 2006, 7:47pm by Garet » User IP Logged

Have you read the FAQ or checked the Hacks board before posting?
No?
Then please do so...
Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Back To Top
Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls