bei document.write Farbe ändern ? Hilfe !!!
Ronny
- javascript
0 Kolja Engelmann0 Ronny
Zur späten Stunde...
Ich habe diese Scriptzeile auf meiner Homepage:
document.write("Your IP address is " + ip);
Wie kann man Font und Farbe ändern?
So sollte es doch funktionieren, oder ? ( klappt aber nicht )
document.write("<font color="#FFFFFF">");
document.write("Your IP address is " + ip);
document.write("</font>");
Viele Grüße, Ronny
So sollte es doch funktionieren, oder ? ( klappt aber nicht )
document.write("<font color="#FFFFFF">");
document.write("Your IP address is " + ip);
document.write("</font>");
Nö, kann ja auch nicht, du darfst das color attribut nicht mit " abgrenzen, sonst beendest Du bei javascript den String. Benutze ' und es geht...
document.write("<font color='#FFFFFF'>");
document.write("Your IP address is " + ip);
document.write("</font>");
Danke, Danke !
Und Gute Nacht !
Ronny