I would like to replace the category menu with a DHTML / Javascript menu I have. I edited categories.tpl, inserted there the following code:
Code:
<div id="vqp_comment1" style="position:absolute;visibility:hidden;">
</div>
<div id="vqp_about" style="position:absolute;visibility:hidden;">
****JavaScript based drop down DHTML menu generated by NavStudio. (OpenCube Inc. - http://www.opencube.com)****</div>
<script language="JavaScript1.2" vqptag="datafile" src="new_menu1.js"></script>
<script language="JavaScript1.2" vqptag="doc_level_settings" vqp_datafile0="new_menu1.js" vqp_uid0="311756">
//Document Level Menu Settings
cdd__codebase = ""
cdd__codebase311756 = ""
cdd__activate_onclick = false
cdd__showhide_delay = 100
cdd__url_target = "_self"
cdd__url_features = "resizable=1, scrollbars=1, titlebar=1, menubar=1, toolbar=1, location=1, status=1, directories=1, channelmode=0, fullscreen=0"
cdd__display_urls_in_status_bar = true
cdd__default_cursor = "hand"
</script><script language="JavaScript" vqptag="loader">
//NavStudio Code (Warning: Do Not Alter!)
if (window.showHelp){b_type = "ie"; if (!window.attachEvent) b_type += "mac";}if (document.createElementNS) b_type = "dom";if (navigator.userAgent.indexOf("afari")>-1) b_type = "safari";if (window.opera) b_type = "opera"; qmap1 = "\<\script language=\"JavaScript1.2\" vqptag='loader_sub' src=\""; qmap2 = ".js\">\<\/script\>";;function iesf(){};;function vqp_error(val){alert(val)}
if (b_type){document.write(qmap1+cdd__codebase+"pbrowser_"+b_type+qmap2);document.close();}
</script><div id="vqp_sfl" style="position:absolute; visibility:hidden;">
Books Internet Software CD - DVD - Video CD Audio DVD Video Computer hardware Keyboards Motherboards Personal Assistants (PDA) Portable computers Printers Electronics Amplifiers Audio Auto-radio Cellular phones Digital cameras MD players TV sets Walkman Games and toys Board games Dolls PC games Puzzles Household Cookers Furnaces Ustensils Vacuum cleaners Washing machines Men Clothes Shirts T-Shirts Software Sport </div>
<div id="vqp_comment2" style="position:absolute;visibility:hidden;">
</div>
<script vqptag="placement" vqp_menuid="311756" language="javascript1.2">create_menu(311756)</script>
And got this error:
Fatal error: Smarty error: [in customer/categories.tpl line 31]: syntax error: unrecognized tag 'b_type' (Smarty_Compiler.class.php, line 564) in /www/docs/mysite.com/public_html/x-cart/Smarty-2.6.3/Smarty.class.php on line 1082
Any ideas? Is it possible to insert javascript there?