CSS in Javascript
Pasque
- javascript
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 ??
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>
»» ");
....
vermutlich:
<IMG SRC="logo.gif" BORDER=0 ALT="LOGO"></DIV>");
das muss so heißen:
<IMG SRC="logo.gif" BORDER=0 ALT="LOGO"></DIV>");
MfG Florian Auer