Problem med at få det til at køre i HTML koden
Jeg er nybegynder og vil derfor meget gerne have hjælp til at få mit script til at køre.koden:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
day = new Date()
hr = day.getHours()
if ((hr == 6) || (hr == 7) || (hr == 8) || (hr == 9.29))
document.write('<embed src="top0600-0930.swf" quality="high" bgcolor="#444444" width="748" height="93" name="top0600-0930" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />')
if ((hr == 9.30) || (hr == 10) || (hr == 11) || (hr == 11.59))
document.write('<embed src="top0930-1200.swf" quality="high" bgcolor="#444444" width="748" height="93" name="top0930-1200" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />')
if ((hr == 12) || (hr == 13) || (hr == 14) || (hr == 15) || (hr == 15.59))
document.write('<embed src="top1200-1600.swf" quality="high" bgcolor="#444444" width="748" height="93" name="top1200-1600" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />')
if ((hr == 16) || (hr == 17) || (hr == 18) || (hr == 18.59))
document.write('<embed src="top1600-1900.swf" quality="high" bgcolor="#444444" width="748" height="93" name="top1600-1900" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />')
if ((hr == 19) || (hr == 20) || (hr == 21) || (hr == 22) || (hr == 23) || (hr == 0) || (hr == 1) || (hr == 2) || (hr == 3) || (hr == 4) || (hr == 5))
document.write('<embed src="top0930-1200.swf" quality="high" bgcolor="#444444" width="748" height="93" name="top0600-0930" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />')
// End -->
</SCRIPT>
</head>
<body>
<div style="margin-left:800px; margin-top:400px;">SKAL KØRES HER!!!!</div>
</body>
</html>
Det jeg gerne vil have det til at gøre er at billederne skal køres i min <div style="margin-left:800px; margin-top:400px;">SKAL KØRES HER!!!!</div>
På forhold tak!
//roedz