时间: 2021-07-31 作者:daque
===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>' + "<br>" + '<font size="1">' + element.appointments + '</font>'; } // --> </script> </head>