Jump to content

i used localscroll jquery and don't work! how i load the js file that i downloaded?


Recommended Posts

dear all

 

http://flesler.blogs...lscroll-10.html

i used the plugin above and not work in my theme?

who can help me? it seems that prestashop couldn't load the function from js file.

 

i want to ask

 

i have downloaded the js file from internet and i put it into prestashop/js folder

 

 

and i have added the code in header.tpl

<script type="text/javascript" src="js/flesler-plugins.googlecode.com/files/jquery.localscroll-1.2.7-min.js"></script>

 

it can' t load the js file...what 's wrong? what the place shall i put the js file in or what the code i need to insert?

 

also i have tried this

<script type="text/javascript" src="{$base_dir}js/jquery.scrollTo-1.4.2-min.js"></script>

 

it didn't work too!

 

 

thank you!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Edited by ak314 (see edit history)
Link to comment
Share on other sites

Yes, i have enabled .

if i changed to <script type="text/javascript" src="http://flesler-plugins.googlecode.com/files/jquery.localscroll-1.2.7-min.js"></script>

 

it seems to be work fine.

 

but if i use

 

<script type="text/javascript" src="js/flesler-plugins.googlecode.com/files/jquery.localscroll-1.2.7-min.js"></script>

 

or

 

<script type="text/javascript" src="{$base_dir}js/jquery.scrollTo-1.4.2-min.js"></script>

it would be fail....could you tell me the reason??

 

thank you!

Link to comment
Share on other sites

Have you tried putting the .js file in the theme's js dir? And is it a cms page you want this scrolling to appear? Had a similar problem not long ago, and I experienced that instead of putting the script call(s) in the header.tpl, I put it in the cms.tpl, and everything worked fine. So if you give this a go:

 

<script type="text/javascript" src="{$js_dir}jquery.scrollTo-1.4.2-min.js"></script>

 

in either header.tpl, or cms.tpl if it's a cms page.

 

(if it's the header.tpl make sure you insert the script below the {$HOOK_HEADER} around line 60.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...