ny tekst-farve?
HepJeg har to spørgsmål og de handler egentlig om det samme. Håber I kan hjælpe - på forhånd tak.
spørgsmål 1:
Hvordan ændre man farven i teksten "Din skærmopløsning er sat til:" fra sort til hvid på teksten i dette java-script???
Her er scriptet:
<div style="font-family: Verdana; font-size: 11px">
<div align="center">
<script type="text/javascript">
if (document.all) {
browserwidth = document.body.clientWidth;
browserheight = document.body.clientHeight;
} else {
browserwidth = window.innerWidth;
browserheight = window.innerHeight;
}
screenheight = screen.height
screenwidth = screen.width
document.write ('<p>Din skærmopløsning er sat til: ' + screenwidth + ' x ' + screenheight + '</p>')
</script>
</div>
</div>
spørgsmål 2:
Hvordan ændre man farven i teksten: "NIELSEN78.DK" fra sort til hvid i dette java-script???
Jeg har selv prøvet med linien: windowTIT = "<font face=verdana size=1><font color="#FFFFFF"> NIELSEN78.DK</font>"
Men så virker scriptet pludselig ikke :-(
Her er scriptet:
<head>
<script language="javaScript" type="text/javascript" SRC="js/pz_chromeless_2.1.js"></SCRIPT>
<script>
function openIT() {
theURL="forside.htm"
wname ="CHROMELESSWIN"
W=800;
H=551;
windowCERRARa = "img/close_a.gif"
windowCERRARd = "img/close_d.gif"
windowCERRARo = "img/close_o.gif"
windowNONEgrf = "img/none.gif"
windowCLOCK = "img/clock.gif"
windowREALtit = "Window"
windowTIT = "<font face=verdana size=1> NIELSEN78.DK</font>"
windowBORDERCOLOR = "#FFFFFF"
windowBORDERCOLORsel = "#FFFFFF"
windowTITBGCOLOR = "#82826E"
windowTITBGCOLORsel = "#6A6A5A"
openchromeless(theURL, wname, W, H, windowCERRARa, windowCERRARd, windowCERRARo, windowNONEgrf, windowCLOCK, windowTIT, windowREALtit , windowBORDERCOLOR, windowBORDERCOLORsel, windowTITBGCOLOR, windowTITBGCOLORsel)
}</script>
</head>
<body>
<div align="center"> <a href="java script:openIT();"> <img src="grafik/pic/logo.gif" width="379" height="75"> </a></div>
</body>
