Hi,
I'm writing a website for iPhone and I use jQuery for image resizing and to scroll to the top.
Both are working in the Firefox on Mac but not on the iPhone. I don't know why because it's the same document and jQuery should be cross plattform...
Any guesses?
Best regards, Sebastian
EDIT:
This is my Code:
var width_max = $('#stiMobiContent').width();
$('img').resize({maxWidth: width_max})
$('a[href=#top]').click(function(){
$('body').animate({scrollTop:0}, 'slow');
return false;
});
It although works in Safari on my Mac.