Mssmar: Javascript und Doctype

Beitrag lesen

Sorry, ich habe da was vergessen:

Also noch Mal:

JavaScript-Code:

<script>
<!--
ns4 = (document.layers) ? true:false
ie = (document.styleSheets && document.all) ? true:false
ns6 = document.getElementById && !document.all;
opera= (document.all && !document.styleSheets) ? true:false;

top_position = 20;

function move_banner() {
if (ie) document.all.stickyad.style.top = document.body.scrollTop + top_position;
if (ns6||opera) document.getElementById("stickyad").style.top = pageYOffset + top_position;
if (ns4) document.stickyad.top = pageYOffset + top_position;
setTimeout("move_sticky()",200);
}
move_banner();

//-->
</script>

Html-Code:

  
<div id="stickyad" style="position:absolute;left:478px;width:120px;padding:0px;top=top_position">  
 <img src="sky_120x600.gif" width="120" height="600" border="0" alt="Hier klicken!">  
</div>