Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

STS problem


El_Heso

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...