Quote:
Originally Posted by Boofo
What is the current query load for your portal?
And I like that clock? Care to share? 
|
How do you check the query load?
Here is the clock code below.
Code:
<table cellpadding="0" cellspacing="0" border="0" class="tborder" width="100%">
<tr>
<td>
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<thead>
<tr>
<td class="tcat" style="text-align: center">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('vbindex_customblock$box')"><img id="collapseimg_vbindex_customblock$box" src="$stylevar[imgdir_button]/collapse_tcat$collapseimg_vbindex_customblock.gif" alt="" border="0" /></a>
<strong>Clock</strong>
</td>
</tr>
</thead>
<tbody id="collapseobj_vbindex_customblock$box" style="$collapseobj_vbindex_customblock">
<tr>
<td class="alt1">
<div class="smallfont"><html>
<head>
<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
<!-- Hide script from old browsers
function showMilitaryTime() {
if (document.theForm.showMilitary[0].checked) {
return true
}
return false
}
function showTheHours(theHour) {
if (showMilitaryTime() || (theHour > 0 && theHour < 13)) {
return (theHour)
}
if (theHour == 0) {
return (12)
}
return (theHour-12)
}
function showZeroFilled(inValue) {
if (inValue > 9) {
return ":" + inValue
}
return ":0" + inValue
}
function showAmPm() {
if (showMilitaryTime()) {
return ("")
}
if (now.getHours() < 12) {
return (" am")
}
return (" pm")
}
function showTheTime() {
now = new Date
document.theForm.showTime.value = showTheHours(now.getHours()) + showZeroFilled(now.getMinutes()) + showZeroFilled(now.getSeconds()) + showAmPm()
setTimeout("showTheTime()",1000)
}
// End hiding script from old browsers -->
</SCRIPT>
</HEAD>
<BODY BGCOLOR="WHITE" onLoad="showTheTime()">
<DIV ALIGN="CENTER">
<FORM NAME="theForm">
<INPUT TYPE="TEXT" NAME="showTime" SIZE="15"><BR><BR>
Display Military Time
<INPUT TYPE="RADIO" NAME="showMilitary" CHECKED>Yes
<input type="radio" name="showMilitary">No
</form>
</div>
</body>
</html></div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
<br />