Hi all,
I have been trying to use a show / hide script on my web site but when
I click on the "hide" button there occurs an error with explorer 7.
The web site starts to go down =) and there happens a blank on the top
of the page. the problem occurs when I use the codes more than one
content and when I add new contents with the codes below, the blanks
is getting greater =)
* I built my web sites on "joomla" open source content management
software.
<b>The codes I have tried between head tags are </b>
<script type=”text/javascript”>
function shToggle(conten t) {
if (document.getEl ementById(conte nt).style.displ ay == “none”)
document.getEle mentById(conten t).style.displa y = “block”
else
document.getEle mentById(conten t).style.displa y = “none”
}
</script>
<b>and I used that one in my each content </b>
<span>What’s the name of Calgary’s NHL Team?</span>
<a href=”javascrip t:void(0);” onclick=”shTogg le(’calgary’); return
false;”>show/hide answer</a>
<div id=”calgary” style=”display: none;”>The Calgary Flames</div>
You can check the images of the web site here :
http://forum.joomla.org/viewtopic.php?f=32&t=341625 I have also post
the problem on joomla forum but I think it's about coding.