<PROPERTY NAME="value"></PROPERTY>
<ATTACH EVENT="oncontentready" ONEVENT="fnInit">

HTML组件(HTML COMPONENTS)之八

80酷酷网    80kuku.com

  

===TODAY HTC===

 
<HEAD>
<PUBLIC:COMPONENT tagName="DAY">
<PROPERTY NAME="value"></PROPERTY>
<ATTACH EVENT="oncontentready" ONEVENT="fnInit()"></ATTACH>
</PUBLIC:COMPONENT>

<STYLE>
.clsDay {
width:50;
height:50;
background-color: pink;
align:center;
text-align:right;
}
</STYLE>

<SCRIPT LANGUAGE="javascript">
<!--
function fnInit()
{
document.body.innerHTML = '<FONT COLOR="blue">' + element.value + '</FONT>';
document.body.className = "clsDay";
defaults.viewLink = document;
element.appointments = "";
element.date = element.value;
}

function fnShowAppts()
{
newAppointments = prompt("Add your appointment:", element.appointments);
if (newAppointments != null) element.appointments = newAppointments;
document.body.innerHTML = '<FONT COLOR="blue">' + element.date + '</FONT>' + "
" + '<FONT SIZE="1">' + element.appointments + '</FONT>';
}
// -->
</SCRIPT>
</HEAD>



分享到
  • 微信分享
  • 新浪微博
  • QQ好友
  • QQ空间
点击: