Advertisement
C_Volume2 Math/ Dates #72718

Smooth Clock

This is another example of animating an analog clock. This sample demonstrates a smooth motion of the hands giving a more realistic clock appearance. Also shows how to use the Polygon API

AI

ملخص الذكاء الاصطناعي: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

كود المصدر
original-source
Upload
<html>
<head>
<title>Table Drop</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
			
<!-- CSS Styles -->
<style type="text/css">
.tblContracted {
	cursor			: hand; 
}
.tblExpanded {
	cursor			: hand; 
}
.DescContracted {
	display			: none;
}
.DescExpanded {
	color			: #FFFFFF;
}
</style>
				
<!-- create the function to expand and contract the table -->
<script langauge="JavaScript">
<!--hide incase the browser doesnt support javascript
function tblExpand(objItem,objDesc) {
//check the current status of the table
	if (objItem.className == "tblContracted") {
	//then expand it
		objItem.className = "tblExpanded"
		objDesc.className = "DescExpanded"
		}
	else {
	//or contract it
		objItem.className = "tblContracted"
		objDesc.className = "DescContracted"
		}
	}
//-->
</script>
<!--e n d  s c r i p t -->
</head>
<body bgcolor="#FFFFFF" text="#000000">
<TABLE ID="BorderMain" width="16%" border="0" cellspacing="1" cellpadding="0" bgcolor="#65B1FF">
 <TR>
  <TD>
   <TABLE ID="Main" width="100%" border="0" cellspacing="0" cellpadding="0" height="0" bgcolor="#D5EAFF" class="tblContracted" onClick="tblExpand(this,tblDesc)">
    <TR> 
     <TD height="21" valign="middle" align="center" onMouseOver="Main.style.backgroundColor='#EAF5FF'; BorderMain.style.backgroundColor='#0066FF';" onMouseOut="Main.style.backgroundColor=''; BorderMain.style.backgroundColor='#65B1FF';"> 
      <font face="Verdana" size="2" color="#0B84FF">Click here</font>
     </TD>
    </TR>
    <TR> 
     <TD ID="tblDesc" valign="top" align="left" class="DescContracted" style="background-color:#FFFFFF; border-top:#65B1FF solid 1px;" onMouseOver="Main.style.backgroundColor='#EAF5FF'; BorderMain.style.backgroundColor='#0066FF';" onMouseOut="Main.style.backgroundColor=''; BorderMain.style.backgroundColor='#65B1FF';"> 
<font face="Verdana" size="1" color="#0B84FF">Your text goes here.font>
     </TD>
    </TR>
   </TABLE>
  </TD>
 </TR>
</TABLE>
</body>
</html>
التعليقات الأصلية (3)
مسترجع من Wayback Machine