HTML Components: Listings of ANYDAY's HTC | WebReference

HTML Components: Listings of ANYDAY's HTC


HTML Components

Listings of ANYDAY's HTC

<HTML XMLNS:ANYDAY>
<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:lightyellow;
    align:center;
    text-align:right;
  }
</STYLE>
<SCRIPT LANGUAGE="JavaScript">
<!--
function fnInit() {
  document.body.innerHTML = '<FONT COLOR="red">' + 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="red">' + element.date + '</FONT>'  + "<BR>" + '<FONT SIZE="1">' + element.appointments + '</FONT>';
}
// -->
</SCRIPT>
</HEAD>
<BODY onclick="fnShowAppts()">
</BODY>
</HTML>

Next: Listings of TODAY's HTC

https://www.internet.com

Produced by Yehuda Shiran and Tomer Shiran

Created: July 3, 2000
Revised: July 3, 2000

URL: https://www.webreference.com/js/column64/11.html