El_Heso Posted December 19, 2010 Share Posted December 19, 2010 Hi! I have a problem with STS, i have this code i header in index.php.html: <script language='javascript' type='text/javascript'> function showDiv(pass) { var divs = document.getElementsByTagName('div'); for(i=0;i<divs.length;i++){ if(divs.id.match(pass)){//if they are 'see' divs if (document.getElementById) // DOM3 = IE5, NS6 divs.style.visibility="visible";// show/hide else if (document.layers) // Netscape 4 document.layers[divs].display = 'visible'; else // IE 4 document.all.divs.visibility = 'visible'; } else { if (document.getElementById) divs.style.visibility="hidden"; else if (document.layers) // Netscape 4 document.divs.visibility = 'hidden'; else // IE 4 document.all.divs.visibility = 'hidden'; } } } </script> then this under the body tag: <?php if (HOLIDAY_SETTINGS == 'on') { ?> <div id="F512" > <a href="javascript:showDiv('F256')"><img src="info.png" border="0"></a> </div> <div id="F256" style="position: absolute; left:250px; top:0px; visibility: hidden"> " here is the ordinary code for the page " </div> and my problem is that in the case i click the image the "normal" page shows ( that´s the point ) but every sts tag ex. $categorybox$ don´t show at all it´s blank in the space there it should be a category menu Any idea how to make this work? Regards Tony Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.