[jQuery] trouble with passing parameters to a callback function

2008-10-18 Thread GTakacs1976
This is my code: var ClassName = {}; ClassName.CallBackFunction = function(index,i) { alert($(index).attr('src') + ' ' + i); } function() { for (var i = 0; i < img_list.length;i++){ $(new Image()).load(function () { ClassName.CallBackFunction.apply(this,[$(this),i]); }

[jQuery] Jquery hide and fadeout are not the same

2008-10-18 Thread GTakacs1976
I have these two lines of code: $("#imagestrip ul li a img").hide(); $("#imagestrip ul li a img").fadeOut(1); While Hide not only hides the img element it also hides the li element. fadeOut only hides the img element. Is this a bug or a feature? I want to be able to hide only the img element but