|
Post by Wormopolis on Aug 28, 2009 0:13:57 GMT -8
[clock-7]
|
|
|
Post by Wormopolis on Aug 28, 2009 0:39:13 GMT -8
<div id="clockthing" style="display:none"> <embed src="http://www.clocklink.com/clocks/5005-blue.swf?TimeZone=GMT-0300&" width="120" height="40" wmode="transparent" type="application/x-shockwave-flash"> </div>
<script type="text/javascript"> <!-- // clock embed in posts // By Wormopolis - request by burra
// use [*clock] in post to show (no asterisk) // must have div "clockthing" with embed code above script
for (tds=document.getElementsByTagName('td'), i=0; i<tds.length; i++) { if (tds.width=="80%" && tds.className.match(/windowbg/) && tds.vAlign=="top" && tds.innerHTML.match(/\[clock\]/i)) { postCell=tds.getElementsByTagName('table')[0].rows[1].cells[0]; clockstuff=document.getElementById('clockthing').innerHTML; postCell.innerHTML=postCell.innerHTML.replace(/\[clock\]/gi,clockstuff); } }
//--> </script>
[norunubbc]
|
|
|
Post by Wormopolis on Aug 29, 2009 19:15:42 GMT -8
guess I should put something in there that lets you adjust the timezone...
|
|
Matt
Junior Member
Yep, I like making websites. Websites made: 5
Posts: 61
Matt said 0 great things
|
Post by Matt on Sept 5, 2009 23:01:47 GMT -8
I know how to make an adjustable time zone:
<div id="clockthing" style="display:none"> <embed src="http://www.clocklink.com/clocks/5005-blue.swf?TimeZone=GMT-0300&" width="120" height="40" wmode="transparent" type="application/x-shockwave-flash"> </div>
<script type="text/javascript"> <!-- // clock embed in posts // By Wormopolis - request by burra
// use [*clock] in post to show (no asterisk) // must have div "clockthing" with embed code above script
for (tds=document.getElementsByTagName('td'), i=0; i<tds.length; i++) { if (tds.width=="80%" && tds.className.match(/windowbg/) && tds.vAlign=="top" && tds.innerHTML.match(/\[clock\]/i)) { postCell=tds.getElementsByTagName('table')[0].rows[1].cells[0]; clockstuff=document.getElementById('clockthing').innerHTML; postCell.innerHTML=postCell.innerHTML.replace(/\[clock\]/gi,clockstuff); } }
//--> </script>
Change that to your Timezone when you add the code.
[norunubbc]
|
|
|
Post by Wormopolis on Sept 5, 2009 23:07:14 GMT -8
heh heh.. I happen to be messing with that right now actually.. I meant I wanted to make it part of the UBBC tag
|
|
|
Post by Wormopolis on Sept 5, 2009 23:26:13 GMT -8
<div id="clockthing" style="display:none"> <embed src="http://www.clocklink.com/clocks/5005-blue.swf?TimeZone=GMT-0800&" width="120" height="40" wmode="transparent" type="application/x-shockwave-flash"> </div>
<script type="text/javascript"> <!-- // clock embed in posts // By Wormopolis - request by burra
// use [clock] in post to show // adjust time by adding or subtracting whole numbers: [clock-6] [clock+2] // must have div "clockthing" with embed code above script
for (tds=document.getElementsByTagName('td'), i=0; i<tds.length; i++) { if (tds.width=="80%" && tds.className.match(/windowbg/) && tds.vAlign=="top" && tds.innerHTML.match(/\[clock(.*?)\]/i) && !tds.innerHTML.match(/\[norunubbc\]/)) { timeadj=RegExp.$1; timp=parseInt(timeadj); if (timp) { timp=(timp<0 ? "-" : "+")+(Math.abs(timp)<10 ? "0" : "")+(Math.abs(timp))+"00"; } else { timp="-0000"; } timp="GMT"+timp; postCell=tds.getElementsByTagName('table')[0].rows[1].cells[0]; clockstuff=document.getElementById('clockthing').innerHTML.replace(/GMT-0800/,timp); postCell.innerHTML=postCell.innerHTML.replace(/\[clock(.*?)\]/gi,clockstuff); } }
--> </script>
[norunubbc]
|
|
Matt
Junior Member
Yep, I like making websites. Websites made: 5
Posts: 61
Matt said 0 great things
|
Post by Matt on Sept 7, 2009 2:50:10 GMT -8
Oh ok, Didn't know that. But still if people want a set Timezone they can use that.
Matt
|
|
|
Post by Wormopolis on Sept 7, 2009 5:04:28 GMT -8
I seen you found some other colors as well.. I think I will make that part of the UBBC somehow too..
|
|
Matt
Junior Member
Yep, I like making websites. Websites made: 5
Posts: 61
Matt said 0 great things
|
Post by Matt on Sept 7, 2009 21:23:38 GMT -8
Yer, Well... ;D
|
|
|
Post by Wormopolis on Mar 13, 2012 1:39:17 GMT -8
[clock-6]7:00 PM[/clock]
|
|