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: Jump_to
SimonC
Newbie

Posts: 1
Registered: 1/3/2006
Location: CT, USA
Member Is Offline
posted on 1/3/2006 at 01:29 PM Reply With Quote
Jump_to


I am a new Scroller Pro user.
I want to be able to jump to a particular item in my scroller list. But I don't seem to be able to get the tscroll(0).jump_to() object to work.

This simple code in one of my pages:

<SCRIPT LANGUAGE="JavaScript">
var myscroll = new TScroll_init (Tscr_LOOK, Tscr_BEHAVE, Tscr_ITEMS);
myscroll.jump_to(3);
</SCRIPT>

gives me this error:

"Object expected"

If I remove the 'jumpo_to' line, the ticker functions just fine with no errors and 6 items in the scroll list (0-5).

Please advise. I have looked at the examples but can't figure out why they are different to the above. I have reviewed the documentation, but that doesn't help me either. PErhaps I am calling the jump_to function wrong somehow?

Thanks, Simon.
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 1/3/2006 at 07:22 PM Reply With Quote

it takes some time for the scroller items to initialize after you call the constructor. jump_to(..) method should only be called from event handler after the page is completely loaded. If you want scroller to load with items in alternative order you can shuffle them in the items array before feeding it to the scroller. See http://www.softcomplex.com/forum/viewthread_3221/ for example.
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Vertical automatic scrolling
Horizontal manual scrolling
Product Documentation Documentation
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


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