coconimo
01-06-2009, 07:13 PM
1) Script Title: Featured Content Glider
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/featuredcontentglider.htm
3) Describe problem: a mistake in my script
hi,
i've adjusted this script for an oscommerce's module :
link to my contribution (http://addons.oscommerce.com/info/6172)
link to my website to see it (http://ouistiti.ke0.eu/catalog/index.php?cPath=36)
i'd like to add an option, my need :
when i click on a button (next/previous/number), the animation comes to a stop.
I would like the animation take a break, and then restarts where it was.
Here are the changes I made :
in featuredcontentglider.js :
config.$togglerdiv.click(function(){
featuredcontentglider.cancelautorotate(config.togglerid)
})
with :
config.$togglerdiv.click(function(){
if (config.autorotateafterclick==true)
featuredcontentglider.autorotate(config.togglerid)
else
featuredcontentglider.cancelautorotate(config.togglerid)
})
and in featuredcontentglider.init, i've added this line :
autorotateafterclick : true,
so, my script works with the following browsers : FF,opera,safari & chrome, but not with IE 6/7/8, i have this error :
Error : 'autorotateconfig.0' is Null or is not an object.
so, where is my mistake? i've need your lights ;)
Best regards and thanks for your help
coco
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/featuredcontentglider.htm
3) Describe problem: a mistake in my script
hi,
i've adjusted this script for an oscommerce's module :
link to my contribution (http://addons.oscommerce.com/info/6172)
link to my website to see it (http://ouistiti.ke0.eu/catalog/index.php?cPath=36)
i'd like to add an option, my need :
when i click on a button (next/previous/number), the animation comes to a stop.
I would like the animation take a break, and then restarts where it was.
Here are the changes I made :
in featuredcontentglider.js :
config.$togglerdiv.click(function(){
featuredcontentglider.cancelautorotate(config.togglerid)
})
with :
config.$togglerdiv.click(function(){
if (config.autorotateafterclick==true)
featuredcontentglider.autorotate(config.togglerid)
else
featuredcontentglider.cancelautorotate(config.togglerid)
})
and in featuredcontentglider.init, i've added this line :
autorotateafterclick : true,
so, my script works with the following browsers : FF,opera,safari & chrome, but not with IE 6/7/8, i have this error :
Error : 'autorotateconfig.0' is Null or is not an object.
so, where is my mistake? i've need your lights ;)
Best regards and thanks for your help
coco