Hi there, firstly I want to disable this part of an epic script. I dont want anything to happen onclick.
function checkOnClick(e,n){
window.open('http://www.camosreptiles.com.au/','_self');
return ;
I tried making the bit at the end return false; but it had no effect.
If I cannot do that, I need to fix a z-index issue with IE
My gecko javascript remains stubbornly at the highest index level (above the body content)
see here http://www.camosreptiles.com.au/ Its below the body in chrome and firefox
Im not sure why since the same index coding applys here
http://www.camosreptiles.com.au/AskJacob.php
Where an image replacing the javascript has the correct z-index
Code Involved
<script>
function toggle_geckos(button) {
var buttonText = ['Release Geckos', 'Lock Up Geckos'];
var el = document.getElementById("geckos");
el.style.display = (button.value==buttonText[0]) ? 'inline' : 'none';
button.value = (button.value==buttonText[0]) ? buttonText[1] : buttonText[0];
}
</script>
<input type="button" name="type" value="Release Geckos" onclick="toggle_geckos(this);">
<p align="center"><div id="geckos" style="position: absolute;display:none;"z-index:-1;>
<div style="position: absolute; top: 0px; left: 0px; height: 100%; z-index: -1; background-color: transparent; width: 100%; opacity: 0.70; filter: alpha(opacity=70); -moz-opacity: 0.70; border: 0px solid #000040;"></div>
<div style="position: relative; z-index: -1; margin: 10px;">
<center><link rel="stylesheet" type="text/css"href="http://www.camosreptiles.com.au/aniMagiX[1].css">
<script src='http://www.camosreptiles.com.au/geckos.js'></script>
<script src='http://www.camosreptiles.com.au/aniMagiX.js'></script></center>
</div>
</div></p>
Maybe its because the Geckos div has been in the head of the page? Where should I place the Div?