Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

coolMenu ... or similar


pynchon

Recommended Posts

Posted

At present my Categories are hard-coded through an info_box I made myself ... it is an array of images with the necessary links to view products in that category.

 

We have recently added stock and I'm wanting to introduce a new menu system ... one that functions like coolMenu, but not dynamically generated. I was hoping that I would be able to introduce the necessary javascript call into the info_box code ... but this seems to fail.

 

the current code for this box is :

 

<?php

?>
<!-- cat images //-->
         <tr>
           <td>
               <?php
 $info_box_contents = array();
 $info_box_contents[] = array('text' => BOX_HEADING_CAT_IMAGES);

 new infoBoxHeading($info_box_contents, false, false);

 $info_box_contents = array();
 $info_box_contents[] = array('text' => '<a href="index.php?cPath=34"><img src="images/metsuki/man.gif" border="0" alt="jai kudo men"></a><a href="jaikudo.php"><img src="images/metsuki/jaikudo.gif" border="0" alt="jai kudo"></a><a href="index.php?cPath=34"><img src="images/metsuki/woman.gif" border="0" alt="jai kudo women"></a><br><br>' .
 										 '<a href="index.php?cPath=29"><img src="images/metsuki/man.gif" border="0"></a><a href="gant.php"><img src="images/metsuki/gant.gif" border="0"></a><a href="index.php?cPath=30"><img src="images/metsuki/woman.gif" border="0"></a><br><br>' .
									 '<a href="index.php?cPath=24"><img src="images/metsuki/hackett_man.gif" border="0"></a><a href="hackett.php"><img src="images/metsuki/hackett.gif" border="0"></a><br><br>' .
									 '<a href="index.php?cPath=32"><img src="images/metsuki/man.gif" border="0"></a><a href="guess.php"><img src="images/metsuki/guess.gif" border="0"></a><a href="index.php?cPath=32"><img src="images/metsuki/woman.gif" border="0"></a><br><br>' .
									 '<a href="index.php?cPath=38"><img src="images/metsuki/man.gif" border="0"></a><a href="police.php"><img src="images/metsuki/police.gif" border="0"></a><a href="index.php?cPath=38"><img src="images/metsuki/woman.gif" border="0"></a><br><br>' .
									 '<a href="index.php?cPath=36"><img src="images/metsuki/man.gif" border="0"></a><a href="tommy_hilfiger.php"><img src="images/metsuki/tommy.gif" border="0"></a><a href="index.php?cPath=36"><img src="images/metsuki/woman.gif" border="0"></a><br><br>' .
									 '<a href="index.php?cPath=26"><img src="images/metsuki/givenchy.gif" border="0"></a><a href="index.php?cPath=26"><img src="images/metsuki/givenchy_girl.gif" border="0"></a><br><br>' .
									 '<a href="lulu.php"><img src="images/metsuki/luluguinness.gif" border="0"></a><a href="index.php?cPath=25"><img src="images/metsuki/lulu_girl.gif" border="0"></a><br><br>' .
									 '<a href="candies.php"><img src="images/metsuki/candies.gif" border="0"></a><a href="index.php?cPath=21"><img src="images/metsuki/candies_girl.gif" border="0"></a><br>');


 new infoBox($info_box_contents);
?>
             </td>
</tr>
<!-- cat images_eof //-->

 

 

 

and the javascript I need to replace the array of images is :

 

 

<script type="text/Javascript" language="JavaScript">
                   <!--
                   var current_menu    = 'PHP Scripts';
                   var current_item    = 'Random Image';

                   write_menu();
                   //-->
                   </script>

 

 

hope someone can help ... or suggest a solution so I can use a text based menu that isn't generated by oSC

 

cheers

 

John K

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...