Hi everyone, nice forum.
I’ll launch straight into my questions. I’ve written some Javascript to do a text rollover. But the quotes in the HTML string are causing problems. This is what I have:-
[CODE]
function highlight(pg,onoff) {//highlight button text
var txt=”test”;
if (onoff) txt=”<font color="”+document.labelon+”">”+document.label[pg]+”</font>”;
else txt=”<font color="”+document.labeloff+”">”+document.label[pg]+”</font>”;
if (navigator.appName==’Netscape’) with (find(“label”+pg).document) {write(txt); close()}
else find(“label”+pg).innerHTML = txt;
}
Labelon and labeloff contain strings of the form “#FF0000” (red). The label array contains text.
How do I get round my quote problem?
Question 2: Is it possible to remove buttons and borders, scrollbars etc. from a window after it’s been opened?
Thanks