var toggleContent = {
cel : null,
doIt : function (el)
{
if (this.cel) {
$('#' + this.cel).slideUp('slow');
}
if (el != this.cel) {
this.cel = el;
var parent = this.cel;
$('#' + this.cel).slideDown('slow', function(/* Effect Speed,
slow ||
fast as string , callback */){
alert(parent.cel);
$('#h_' + parent.cel)[0].scrollTo(1500);
// or for older jQuery versions $('#h_' +
parent.cel).get(0).scrollTo(1500);
// I am assuming cel is a string.
});
} else {
this.cel = null;
}
return false;
}
}
hope that helps
--
View this message in context:
http://www.nabble.com/--help-with-scroll-function-tf2075351.html#a5718314
Sent from the JQuery forum at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/