Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Javascript in header not showing up.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-12-2003, 08:22 PM
 
gerry gerry is offline
 

Newbie
  
Join Date: Oct 2003
Posts: 2
 

Default 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>
Reply With Quote
  #2  
Old 11-29-2003, 05:43 AM
 
concepts concepts is offline
 

Senior Member
  
Join Date: Nov 2003
Posts: 104
 

Default

insert the literal tags and it will work
Reply With Quote
  #3  
Old 11-29-2003, 10:32 AM
 
Kanyon71 Kanyon71 is offline
 

Senior Member
  
Join Date: Oct 2002
Location: Lutz, FL
Posts: 128
 

Default

Can you show the same code but with the literal tags inserted in it?
__________________
Kanyon71
http://www.web-wizards.com
For hosting solutions that fully support X-Cart!
Mention the forums for a discounted package!
Reply With Quote
  #4  
Old 11-29-2003, 01:23 PM
 
concepts concepts is offline
 

Senior Member
  
Join Date: Nov 2003
Posts: 104
 

Default

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}
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 05:51 AM.

   

 
X-Cart forums © 2001-2020