jpw21683
Joined: 07 Jan 2008
Posts: 7
|
Posted: Mon May 05, 2008 8:20 pm Post subject: Another JavaScript question |
|
|
I've got a menu item that, when clicked, toggles the display of a banner/bubble named tbs_ticker.
Here's my JavaScript that's invoked when the menu item is clicked. Works fine in IE, what do I need to modify for the Firefox version?
Thanks,
Josh
| Code: | function Launch(tool) // executes when clicking the show/hide ticker button
{
if (tool.GetPropertyByID("tbs_ticker","visibility")=="1") {
HideTicker(tool);
} else {
ShowTicker(tool);
}
}
function HideTicker(tool) {
tool.SetPropertyById("tbs_ticker","visibility","0");
tool.Reload();
}
function ShowTicker(tool) {
tool.SetPropertyById("tbs_ticker","visibility","1");
// following two lines refresh the ticker
varUrl=tool.GetPropertyByID("tbs_ticker","url");
tool.SetPropertyById("tbs_ticker","url",varUrl);
tool.Reload();
} |
|
|