>> [-Stash-] schreef:
>>
>>
>>> Code snippet:
>>> ----------------------------------------------
>>> $('[EMAIL PROTECTED]"#"]').each(function(i){
>>> $(this).click(function(){
>>> $(this.href).ScrollTo(2000);
>>> return false;
>>> });
>>> });
>>> ----------------------------------------------
>>> http://techfoolery.com/archives/2006/08/11/2021/?PHPSESSID=784f3aa2dd287a7ce685852ff5d7ff9a#comment-4
>>>
>>>
i think you have to do
$('[EMAIL PROTECTED]"#"]').each(function(i){
$(this).click(function(){
if($(this).next('[EMAIL PROTECTED]"#"]').size() == 1){ // check if there is a
innerlink further on the page
$(this).next().ScrollTo(2000);
return false;
}else{
$('[EMAIL PROTECTED]"#"]')[0].ScrollTo(2000); // go to the first innerlink
return false;
}
});
});
i don't know if it works but it can be a step in the right direction
--
David Duymelinck
________________
[EMAIL PROTECTED]
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/