kalenderen kommer 2 gange fordi jeg gemte DOM og ikke kildekode, og hvis du med feljmelding mener den alert
jeg glemte at fjerne så burde den kode rette de 2 fejl.
<script type="text/javascript">
function dateChanged(calendar) {
if (calendar.dateClicked) {
var y = calendar.date.getFullYear();
var m = calendar.date.getMonth()+1; // integer, 0..11
m = (m < 10) ? "0"+m.toString() : m.toString();
var d = calendar.date.getDate(); // integer, 1..31
d = (d < 10) ? "0"+d.toString() : d.toString();
obj='<object classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" height="320" width="376">'+
'<param name="url" value="http://www.buskelundtoften.dk/vejret/vejrdata/' + y + m + d + 'dayvideo.wmv">'+
'<param name="autostart" value="-1">'+
'<param name="rate" value="1">'+
'<param name="balance" value="0">'+
'<param name="currentPosition" value="0">'+
'<param name="playCount" value="1">'+
'<param name="currentMarker" value="0">'+
'<param name="invokeURLs" value="-1">'+
'<param name="volume" value="50">'+
'<param name="mute" value="0">'+
'<param name="uiMode" value="full">'+
'<param name="stretchToFit" value="0">'+
'<param name="windowlessVideo" value="0">'+
'<param name="enabled" value="-1">'+
'<param name="enableContextMenu" value="-1">'+
'<param name="fullScreen" value="0">'+
'<param name="enableErrorDialogs" value="0">'+
'<object type="video/x-ms-wmv" data="http://www.buskelundtoften.dk/vejret/vejrdata/' + y + m + d + 'dayvideo.wmv" height="320" width="376">'+
'<param name="src" value="http://www.buskelundtoften.dk/vejret/vejrdata/' + y + m + d + 'dayvideo.wmv">'+
'<param name="autostart" value="true">'+
'<param name="controller" value="true">'+
'</object>'+
'</object>';
document.getElementById("player").innerHTML=obj;
}
};
Calendar.setup(
{
flat : "calendar-container", // ID of the parent element
flatCallback : dateChanged // our callback function
}
);
</script></div>
</td>
<td>
<div id="player"><object classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" height="320" width="376">
<param name="url" value="http://www.buskelundtoften.dk/vejret/vejrdata/videolastday.wmv">
<param name="autostart" value="-1">
<param name="rate" value="1">
<param name="balance" value="0">
<param name="currentPosition" value="0">
<param name="playCount" value="1">
<param name="currentMarker" value="0">
<param name="invokeURLs" value="-1">
<param name="volume" value="50">
<param name="mute" value="0">
<param name="uiMode" value="full">
<param name="stretchToFit" value="0">
<param name="windowlessVideo" value="0">
<param name="enabled" value="-1">
<param name="enableContextMenu" value="-1">
<param name="fullScreen" value="0">
<param name="enableErrorDialogs" value="0">
<!--[if !IE]>-->
<object type="video/x-ms-wmv" data="http://www.buskelundtoften.dk/vejret/vejrdata/videolastday.wmv" height="320" width="376">
<param name="src" value="http://www.buskelundtoften.dk/vejret/vejrdata/videolastday.wmv">
<param name="autostart" value="true">
<param name="controller" value="true">
</object>
<!--<![endif]-->
</object></div>