Click to See Complete Forum and Search --> : status bar value confusion..help..


stunews
04-29-2005, 04:48 AM
Hi everyone, I'm doing what I thought was a simple script setting the status bar value.
I'm using a content management system and trying to hide the real url of a link by setting the status bar as so:

function setStatusText(szText)
{
window.status = szText;
return true;
}

I know its passing the value in by doing an alert, its also changing the status when I put a quoted value in as the argument, however no joy-
the strangest thing is that when I put an alert after the window.status as so:
alert(window.status)
I get the correct value and it displays the value in the status bar!!!!

Help please anyone because I've done everything I know to debug with no luck and its sending me mad...

cheers people

Fang
04-29-2005, 05:23 AM
Works in IE, but in FF the statusbar change option is switched off as default.

stunews
04-29-2005, 05:57 AM
oops, guess I should have put the link in..
http://www.sitewiz.co.uk/v2/sites/rotor/page6.htm

thanks fang-i guess something else in the page is interfering if that code is working in isolation..

stunews
04-29-2005, 08:26 AM
I can't seem to get this to work so would anyone know of a way I can get the status bar to simply not show anything on anchor tag rollovers?
thanks in advance...

Fang
04-29-2005, 11:18 AM
onmouseover="setStatusText('Page 1');return true;"