Forum Moderators: open
<script language="Javascript">
<!--
function toggleDiv(id,flagit) {
if (flagit=="1"){
if (document.layers) document.layers[''+id+''].display = "show"
else if (document.all) document.all[''+id+''].style.display = "block"
else if (document.getElementById) document.getElementById(''+id+'').style.display = "block"
}
else
if (flagit=="0"){
if (document.layers) document.layers[''+id+''].display = "hide"
else if (document.all) document.all[''+id+''].style.display = "none"
else if (document.getElementById) document.getElementById(''+id+'').style.display = "none"
}
}
//-->
</script>
and here is the Flash actionscript for the button:
on (release) {
getURL("support.html", "box");
getURL("javascript:toggleDiv('titlebanner',1)" );
getURL("javascript:toggleDiv('rightgear',1)" );
getURL("javascript:toggleDiv('wordsright',1)" );
getURL("javascript:toggleDiv('rightart',0)" );
}
like i said. works like a charm in Firefox.
Ps. that "support, box thing opens up content in an iframe, which is one of the elements i am "toggling" with the javascript. (which worked fine in both browsers, so that can't be it.)
any help would be appreciated.
[eroder.com...]