jay
Member
Posts: 10
Registered: 11/5/2003
Member Is Offline
|
| posted on 1/29/2004 at 09:59 AM |
|
|
Tscroll_path_to_files
Hi
My problem is that I need to put a singular scroll feature on multiple pages. Is this possible? I have used the code in the index.html file as an
include that can be called in multiple files. The issue is that it cannot find the Tscroll_init function as this path is hardcoded in scroll.js. How
can I set a site relative path in scroll.js for this function so that the index.html code can be put anywhere on the site and still be able to locate
this function?.
Appreciate your help as this is a great product and the only inefficient immediate solution is to duplicate ts_files folder to cover all places where
the include will be used.
Kind Regards
Jay
|
|
|
rock
Moderator
Posts: 687
Registered: 4/15/2003
Member Is Offline
|
| posted on 1/29/2004 at 11:48 AM |
|
|
You could extract path_to_files definition from scroll.js and definitine it before including scroll.js. for each page independently. Eg.:
<script language="javascript">
var Tscroll_path_to_files = 'ts_files/';
</script>
<script language="javascript" src="ts_files/scroll.js"></script>
|
|
|
jay
Member
Posts: 10
Registered: 11/5/2003
Member Is Offline
|
| posted on 1/29/2004 at 02:43 PM |
|
|
function path
Hi Rock
Thanks for the response it has done the trick. Hopefully will be able to later on dynamically generate this path.
Apprceiate the help!
Jay
|
|
|