X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Javascript in header not showing up. (https://forum.x-cart.com/showthread.php?t=5209)

gerry 11-12-2003 08:22 PM

Javascript in header not showing up.
 
Current version: 3.4.9 pro

Hello
I have a dhtml dropdown menu that doesnt show up.
Tried the {literal} {/literal} still doesnt show up. It shows up on a normal webpage http://www.electronik.com/xcarthead/ but not in Xcart.

Please advise.
Thank you


Here is the head.tpl code
Code:

{* $Id: head.tpl,v 1.28 2003/04/24 09:50:33 svowl Exp $ *}
<script language="JavaScript" src="http://acsrecords.web.aplus.net/java/domDetection.js" type="text/javascript"></script>
</HEAD>
<body LEFTMARGIN=0 TOPMARGIN=0 RIGHTMARGIN=0 BOTTOMMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<table width="800" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>[img]http://acsrecords.web.aplus.net/shop/skin1/images/tag.jpg[/img][img]http://acsrecords.web.aplus.net/shop/skin1/images/logo.jpg[/img]</td>
  </tr>
</table>

<table width="800" height="16" border="0" cellpadding="0" cellspacing="0" bgcolor="E6E6E6">
  <tr>
    <td width="150"> {if $usertype eq "C"} { include file="customer/search.tpl"
      } {else}  {/if} </td>
    <td width="500"></td>
    <td width="150"></td>
  </tr>
</table>
<SCRIPT language=javascript>path="."</script>
<SCRIPT language=JavaScript src="http://acsrecords.web.aplus.net/java/menu_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="http://acsrecords.web.aplus.net/java/mmenu.js" type=text/javascript></SCRIPT>


concepts 11-29-2003 05:43 AM

insert the literal tags and it will work

Kanyon71 11-29-2003 10:32 AM

Can you show the same code but with the literal tags inserted in it?

concepts 11-29-2003 01:23 PM

See the part where it says USERTYPE = "C"?

Your script should fall between that and any {/if} (I didnt see any)

Code:

{* $Id: head.tpl,v 1.28 2003/04/24 09:50:33 svowl Exp $ *}
<script language="JavaScript" src="http://acsrecords.web.aplus.net/java/domDetection.js" type="text/javascript"></script>
</HEAD>
<body LEFTMARGIN=0 TOPMARGIN=0 RIGHTMARGIN=0 BOTTOMMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<table width="800" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>[img]http://acsrecords.web.aplus.net/shop/skin1/images/tag.jpg[/img][img]http://acsrecords.web.aplus.net/shop/skin1/images/logo.jpg[/img]</td>
  </tr>
</table>

<table width="800" height="16" border="0" cellpadding="0" cellspacing="0" bgcolor="E6E6E6">
  <tr>
    <td width="150"> {if $usertype eq "C"} { include file="customer/search.tpl"
      } {else}  {/if} </td>
    <td width="500"></td>
    <td width="150"></td>
  </tr>
</table>
{literal}
<SCRIPT language=javascript>path="."</script>
<SCRIPT language=JavaScript src="http://acsrecords.web.aplus.net/java/menu_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="http://acsrecords.web.aplus.net/java/mmenu.js" type=text/javascript></SCRIPT>
{/lliteral}



All times are GMT -8. The time now is 03:45 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.