Blockster update: controlling it with navigation
Of all my scripts, Blockster has probably got the best response. I've had a lot of e-mails about that one, and one from Andreas Rasmussen recently asked if it could be controlled by navigation rather than just auto-rotate.
This is something I've been meaning to build into it for some time, and now I have. This has meant a slight change in how you call it into your page. The new syntax is:
1blocksterInstance = new Blockster({
2 holder: '#featureRotator_1',
3 rows: 4,
4 cols: 6,
5 random: true
6});
Then, to force it to go to a particular slide and interrupt the auto-rotate, you'd call:
1blocksterInstance.jump(0); //go to slide 1
2blocksterInstance.jump(3); //go to slide 4, etc
Head over here to download, get usage info or view a demo.
You might recognise from the above that Blockster has gone all trendy and become object-orientated, hence it's instantiated with new and assigned to a variable.
So it started life as a rotator, now it can be used as a carousel (though don't forget I just built a proper carousel!).
Enjoy.
Comments (11)
Okoweb, at 17/09/'10 09:58, said:
Mitya, at 17/09/'10 10:03, said:
Okoweb, at 17/09/'10 11:00, said:
Jk, at 4/11/'10 13:14, said:
Mitya, at 4/11/'10 14:34, said:
Jk, at 4/11/'10 22:35, said:
Jk, at 4/11/'10 22:37, said:
Jk, at 7/11/'10 11:22, said:
Mitya, at 7/11/'10 12:57, said:
Jk, at 7/11/'10 13:08, said:
JC, at 22/09/'11 00:27, said: