Jump to content
Sign in to follow this  
El_Heso

STS problem

Recommended Posts

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×