![]() |
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?
|
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:
|
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.
|
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.
|
Re: How do I add Javascript?
Quote:
Those need to be in the <head> |
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... |
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.
|
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... :(
|
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 |
Re: How do I add Javascript?
AHHH! home.tpl yes I see the head tags, will try it now...
|
All times are GMT -8. The time now is 01:04 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.