jquery adds a class to an image. Doesn't work in chrome
http://steph.net23.net/work.php here is开发者_StackOverflow中文版 my test link. This page has a jquery script in it that adds a class to the first image. This works in all browsers except Chrome. It's like it adds it and then the image disappears. Anybody know why?
Might have something to do with the Galleria script you are using. It uses browser detection that specifies Safari (jQuery.browser.safari) when it should be jQuery.browser.webkit (which both Safari and Chrome use). What's more Firebug gives the following message:
The jQuery team recommends against using jQuery.browser, please try to use feature detection instead (see jQuery.support).
That script looks to predate Chrome so it probably isn't properly handling it in a number of ways. Unless you know how to fix it I'd recommend looking elsewhere for a more up to date plugin.
I eventually found the answer here. It was hard to find resources b/c when you google the galleria plugin the url is broken for the galleria home.
精彩评论