| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
How do I add Javascript? | ||||
|
|
Thread Tools | Search this Thread |
#11
|
|||||||||
|
|||||||||
Re: How do I add Javascript?
OK, so I tried to place it, but it breaks the code somewhere. I took out all extra spaces, and extra hard returns, but still won't display. It actually wipes out everything below that point. any suggestions?
__________________
X Cart Ver: 4.0.14 MySQL4 4.1.22 phpMyAdmin 2.6.0 Pearl 5.6.0 PHP 5.2.1 Python 2.2.2 Server: Apache/2.0.52 (Red Hat) OS: Linux www.cleanlinesurf.com 1. Customer Rewards Points 2. One Page Checkout (altercart) 3. Free shipping orders over $50 as Real Time Shipping 4. Gift Certificates ----------------------------------------------- Graphic Design | Boomobile Design, LLC www.boomobile.com |
|||||||||
#12
|
|||||||||
|
|||||||||
Re: How do I add Javascript?
Ok, so I placed the js file in my "scripts" folder with the other js. Copied page code directly from dynamic drive and placed it in the correct area that I want the marquee to display, but it breaks the code somewhere and everything after the code is blank.
Quote:
__________________
X Cart Ver: 4.0.14 MySQL4 4.1.22 phpMyAdmin 2.6.0 Pearl 5.6.0 PHP 5.2.1 Python 2.2.2 Server: Apache/2.0.52 (Red Hat) OS: Linux www.cleanlinesurf.com 1. Customer Rewards Points 2. One Page Checkout (altercart) 3. Free shipping orders over $50 as Real Time Shipping 4. Gift Certificates ----------------------------------------------- Graphic Design | Boomobile Design, LLC www.boomobile.com |
|||||||||
#13
|
|||||||
|
|||||||
Re: How do I add Javascript?
Um, I think you may have this put in the wrong place? If that code is all within the <head> tags then you shouldn't have a <div> in there. If you have this in the <body> tags then you will need to move it before the </head> tag.
__________________
Brad Thompson Group Imaging X-Cart Gold Version 4.1.8 |
|||||||
#14
|
|||||||||
|
|||||||||
Re: How do I add Javascript?
This is not in the head, this is the code for the actual marquee scroller. I can get it working just fine alone, but when I place it in the homepage.tpl it breaks the rest of the page.
__________________
X Cart Ver: 4.0.14 MySQL4 4.1.22 phpMyAdmin 2.6.0 Pearl 5.6.0 PHP 5.2.1 Python 2.2.2 Server: Apache/2.0.52 (Red Hat) OS: Linux www.cleanlinesurf.com 1. Customer Rewards Points 2. One Page Checkout (altercart) 3. Free shipping orders over $50 as Real Time Shipping 4. Gift Certificates ----------------------------------------------- Graphic Design | Boomobile Design, LLC www.boomobile.com |
|||||||||
#15
|
|||||||
|
|||||||
Re: How do I add Javascript?
Quote:
Those need to be in the <head>
__________________
Brad Thompson Group Imaging X-Cart Gold Version 4.1.8 |
|||||||
#16
|
|||||||||
|
|||||||||
Re: How do I add Javascript?
hmmm, I don't have any other refrences to java in my head.tpl , any other suggestions?
What about my common_js.tpl ? would I copy the js files I have into this? There's got to be a way to refrence it...
__________________
X Cart Ver: 4.0.14 MySQL4 4.1.22 phpMyAdmin 2.6.0 Pearl 5.6.0 PHP 5.2.1 Python 2.2.2 Server: Apache/2.0.52 (Red Hat) OS: Linux www.cleanlinesurf.com 1. Customer Rewards Points 2. One Page Checkout (altercart) 3. Free shipping orders over $50 as Real Time Shipping 4. Gift Certificates ----------------------------------------------- Graphic Design | Boomobile Design, LLC www.boomobile.com |
|||||||||
#17
|
|||||||
|
|||||||
Re: How do I add Javascript?
Sorry, it wouldn't be in head.tpl it would be in customer/home.tpl the head tags in there.
__________________
Brad Thompson Group Imaging X-Cart Gold Version 4.1.8 |
|||||||
#18
|
|||||||||
|
|||||||||
Re: How do I add Javascript?
there aren't any head tags in any of my tpl files. I didn't create this shop, so I have no idea how things were modified. The person who did is of no help, he can't remember that far back...
__________________
X Cart Ver: 4.0.14 MySQL4 4.1.22 phpMyAdmin 2.6.0 Pearl 5.6.0 PHP 5.2.1 Python 2.2.2 Server: Apache/2.0.52 (Red Hat) OS: Linux www.cleanlinesurf.com 1. Customer Rewards Points 2. One Page Checkout (altercart) 3. Free shipping orders over $50 as Real Time Shipping 4. Gift Certificates ----------------------------------------------- Graphic Design | Boomobile Design, LLC www.boomobile.com |
|||||||||
#19
|
|||||||
|
|||||||
Re: How do I add Javascript?
Code from skin1_original/customer/home.tpl:
Quote:
That's how the original is so you can try using that if there's not too much of a difference in what they have in there now. All you should really need is the top part that I separated out. I purposely included a bunch of extra line breaks in the code so you could where I'm talking about easily. But all of that said, you should just be able to include those 2 lines of js reference right above the </head> tag even if you just created your own <head></head> tags. If you still aren't sure maybe you could post the code from customer/home.tpl
__________________
Brad Thompson Group Imaging X-Cart Gold Version 4.1.8 |
|||||||
#20
|
|||||||||
|
|||||||||
Re: How do I add Javascript?
AHHH! home.tpl yes I see the head tags, will try it now...
__________________
X Cart Ver: 4.0.14 MySQL4 4.1.22 phpMyAdmin 2.6.0 Pearl 5.6.0 PHP 5.2.1 Python 2.2.2 Server: Apache/2.0.52 (Red Hat) OS: Linux www.cleanlinesurf.com 1. Customer Rewards Points 2. One Page Checkout (altercart) 3. Free shipping orders over $50 as Real Time Shipping 4. Gift Certificates ----------------------------------------------- Graphic Design | Boomobile Design, LLC www.boomobile.com |
|||||||||
|
|||
X-Cart forums © 2001-2020
|