C
Christopher Nelson
I have a menu tree made up of anchors inside list items in a
multi-level list that includes HTML like:
<ul id='xx'>
<li><a href='conf.cgi' class='menu' target='main'
title='Configure stuff' onclick='remember("conf.cgi")'
onmouseover='handleOver("Configure stuff")'>Settings</a></li>
</ul>
with the JavaScript:
function remember(cgi) {
var exp = new Date();
exp.setTime(exp.getTime() + 30 * 24 * 60 * 60 * 1000);
setCookie('lastPage',cgi,exp);
}
function handleOver(text) {
window.status=text;
}
but when I mouse over this, the status bar shows the full path to the
cgi:
http://hostname/cgi-bin/conf.cgi
I've put an alert() into handleOver() so I know it's getting invoked
and my JavaScript console is clean. What am I doing wrong?
While I want a general solution, I'm doing my development and initial
testing on Mozilla 1.7.3.
Any pointers appreciated. Thanks.
Chris
multi-level list that includes HTML like:
<ul id='xx'>
<li><a href='conf.cgi' class='menu' target='main'
title='Configure stuff' onclick='remember("conf.cgi")'
onmouseover='handleOver("Configure stuff")'>Settings</a></li>
</ul>
with the JavaScript:
function remember(cgi) {
var exp = new Date();
exp.setTime(exp.getTime() + 30 * 24 * 60 * 60 * 1000);
setCookie('lastPage',cgi,exp);
}
function handleOver(text) {
window.status=text;
}
but when I mouse over this, the status bar shows the full path to the
cgi:
http://hostname/cgi-bin/conf.cgi
I've put an alert() into handleOver() so I know it's getting invoked
and my JavaScript console is clean. What am I doing wrong?
While I want a general solution, I'm doing my development and initial
testing on Mozilla 1.7.3.
Any pointers appreciated. Thanks.
Chris