Pasque: CSS in Javascript

Beitrag lesen

also ich möchte in einem JavaScript Tag ein Bildr mit CSS postionieren
mein Versuch :
...
        if(screen.width>701 && screen.width<801)
document.write("
<div style="position:relative; top:-8px; LEFT:376px;">
<IMG SRC="logo.gif" BORDER=0 ALT="LOGO"></DIV>
");
....

was mache ich falsch   ??