| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Javascript dropdown menu | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Javascript dropdown menu
I'm trying to implement a Java script drop down menu in the Head.tpl. The only thing that I end up with is a blank where the menu should be. IБ─≥ve placed the call to the JS in between the {literal} {/literal} tags. Any ideas?
Thanks ahead of time! |
|||||||
#2
|
|||||||
|
|||||||
Quote:
Hi, when you say that you placed the call to the javaScript, I assume you mean something like this: {literal} <SCRIPT language=javascript1.2 src="http://www.your_website/file_name.js"></SCRIPT> {/literal} If so, have you entered the full URL to the .js file? Regards,
__________________
Syddos Nothing is impossible, We just don't know how to do it ........Yet! Xcart 4.1.X PRO (Testing Platform: winXP Pro) Perl 5.8.7 (win32) WINAMP 1.6.3 (win32 server package. Includes the following) - phpMyAdmin v2.8.03 - MySql 5.0.21 - Apache 2.0.55 (win32) - php 5.1.4 - SQLitemanager 1.2.0 |
|||||||
#3
|
|||||||
|
|||||||
That's it.
Yep! Thats what the call basically looks like... I do have the full path to the JS.
|
|||||||
#4
|
|||||||
|
|||||||
Hi,
it's diffcult to guess what's hapening without seeing or having detaild info, however you could try putting the javascript file into a template file e.g {* ID: my_javacsript_file_js.tpl, my menu file *} file name and description {literal} <script language=javascript1.2 type="text/javascript"> YOUR JS CODE </script> {/literal} then in the template file customer/home.tpl put: {include file="your_js_script.tpl"} in the HTML TABLE cell where you want the script to be placed. DON'T FORGET TO CHECK FILE PERMISSIONS ON THE JS FILE, this could also prevent the file from being read remotely (from a browser request) Regards,
__________________
Syddos Nothing is impossible, We just don't know how to do it ........Yet! Xcart 4.1.X PRO (Testing Platform: winXP Pro) Perl 5.8.7 (win32) WINAMP 1.6.3 (win32 server package. Includes the following) - phpMyAdmin v2.8.03 - MySql 5.0.21 - Apache 2.0.55 (win32) - php 5.1.4 - SQLitemanager 1.2.0 |
|||||||
|
|||
X-Cart forums © 2001-2020
|