I have an image swap that calls a Javascript file and has some javascript on the page. I tried uploading the the include file through media then linking to in the header but that doesn't seem to work. Can someone point me in the right direction of getting this to work? The image swap is just for one given page on the site.
I'd just like to add that if you have FTP access to the site or some kind of other access to the disk on the server you can just copy your script into the scripts directory and then make sure your're referencing your script in the correct template.
But if you don't have this kind of access Michael is spot on :)
Javascript Image Swap
I have an image swap that calls a Javascript file and has some javascript on the page. I tried uploading the the include file through media then linking to in the header but that doesn't seem to work. Can someone point me in the right direction of getting this to work? The image swap is just for one given page on the site.
Hi Elvia,
Javascript files should be created in the Settingssection, under "scripts". You can then refer to them in your header using /scripts/myFile.js links.
Hope this helps.
Cheers,
Michael.
Hi Elvia
I'd just like to add that if you have FTP access to the site or some kind of other access to the disk on the server you can just copy your script into the scripts directory and then make sure your're referencing your script in the correct template.
But if you don't have this kind of access Michael is spot on :)
/Jan
Thanks you both for your responses. I managed to link it fine doing it Michaels way. I'm still working local, trying to figure the system out.
I pull up the source code and everything is there but there is no effect.
Hi Elvia,
What do you mean by "there is no effect"? Is it still not working? Can you maybe then post some code, this might help in identifying the problem.
Cheers,
Michael.
is working on a reply...