|
Status Bar Clock
|
|
Jul. 28, 2011, 08:57 PM
Post: #4
|
|||
|
|||
|
This seems to work better. It does away with the <body="ONLOAD"> tag and just calls the function from inside the script.
[Patterns] Name = "The Proxomitron Clock (Proxology_2011-07-28)" Active = TRUE Bounds = "</html>" Limit = 128 Match = "</html>" Replace = "<!-- BEGIN Proxomitron Clock -->" "<script language="JavaScript">" "function timefunct() {" "daynow = new Date();" "hours = daynow.getHours();" "minutes = daynow.getMinutes();" "seconds = daynow.getSeconds();" "var secfinal;" "var minfinal;" "var hourfinal;" "if (seconds <= 9) {" "secfinal = "0" + seconds;" "} else {" "secfinal = seconds;" "}" "if (minutes <= 9) {" "minfinal = "0" + minutes;" "} else {" "minfinal = minutes;" "}" "if (hours >= 13) {" "hourfinal = hours-12;" "} else {" "hourfinal = hours;" "}" "var time = hourfinal + ":" + minfinal + ":" + secfinal;" "setTimeout('timefunct()', 1000);" "self.status = time;" "}" "timefunct()" "</script>" "<!-- END Proxomitron Clock -->" "</html>" Thanks.... |
|||
|
« Next Oldest | Next Newest »
|
| Messages In This Thread |
|
Status Bar Clock - Proxology - Jul. 25, 2011, 11:11 PM
RE: Status Bar Clock - ProxRocks - Jul. 26, 2011, 01:18 AM
RE: Status Bar Clock - Proxology - Jul. 26, 2011, 05:02 AM
RE: Status Bar Clock - Proxology - Jul. 28, 2011 08:57 PM
|

Search
Member List
Calendar
Help




![[-]](images/ONi/collapse.gif)