Post by ~Joedagimp on Nov 22, 2008 15:52:44 GMT -5
OLD code I made!
Copyright Joe Fitzpatrick/Joedagimp
This code shows a Basic Time box anywhere on the forum.
Preview: s9.invisionfree.com/gimpsfirstcode
Note, You can change the colors to whatever you want. ( The background automatically fits your forum )
THIS WORKS FOR PROBOARDS FORUMS!
CODE
Change the BLUE to whatever border color you want! Hex Decimal is allowed.
Copyright Joe Fitzpatrick/Joedagimp
This code shows a Basic Time box anywhere on the forum.
Preview: s9.invisionfree.com/gimpsfirstcode
Note, You can change the colors to whatever you want. ( The background automatically fits your forum )
THIS WORKS FOR PROBOARDS FORUMS!
CODE
<table border="0"
width="280" id="thisborder" style="border:5px solid BLUE">
<tr> <td><script type="text/javascript">
<!-- Basic Time Box. Code Created By Gimp. http://www.xplosivecodes.co.nr + http://www.codeplaza.co.nr //-->
document.write(Date())
</script><br>
<script type="text/javascript">
var d=new Date()
var weekday=new Array(7)
weekday[0]="Sunday"
weekday[1]="Monday"
weekday[2]="Tuesday"
weekday[3]="Wednesday"
weekday[4]="Thursday"
weekday[5]="Friday"
weekday[6]="Saturday"
document.write("Today it is " + weekday[d.getDay()])
</script><br>
<head>
<script type="text/javascript">
function startTime()
{
var today=new Date()
var h=today.getHours()
var m=today.getMinutes()
var s=today.getSeconds()
// add a zero in front of numbers<10
m=checkTime(m)
s=checkTime(s)
document.getElementById('txt').innerHTML=h+":"+m+":"+s
t=setTimeout('startTime()',500)
}
function checkTime(i)
{
if (i<10)
{i="0" + i}
return i
}
</script>
</head>
<body onload="startTime()">
<div id="txt"></div>
</body></td> </tr>
</table> <script language="JavaScript1.2"> <!-- begin function flamullet(){ if (!document.all) return
if (thisborder.style.borderColor=="BLUE") thisborder.style.borderColor="red"
else thisborder.style.borderColor="BLUE" } setInterval("flamullet()",
500) // end script --> </script>
Change the BLUE to whatever border color you want! Hex Decimal is allowed.