Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Tscroll_path_to_files
jay
Member

Posts: 10
Registered: 11/5/2003
Member Is Offline
posted on 1/29/2004 at 09:59 AM Reply With Quote
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
View User's Profile View All Posts By User U2U Member
rock
Moderator

Posts: 687
Registered: 4/15/2003
Member Is Offline
posted on 1/29/2004 at 11:48 AM Reply With Quote

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>
View User's Profile View All Posts By User U2U Member
jay
Member

Posts: 10
Registered: 11/5/2003
Member Is Offline
posted on 1/29/2004 at 02:43 PM Reply With Quote
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
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos:
Multiple vertical scrolling
Horizontal scrolling
Free Download Free Download
Product Documentation Documentation:
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
   

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004