jQuery probléma
Sziasztok,
Van nekem egy kicsi jquery slideshow-m, ami nem mukodik firefoxban, minden masban megy.
Ezaz:Latja valaki mi a hiba? Legyszi segitsetek, koszi!!!
■ Van nekem egy kicsi jquery slideshow-m, ami nem mukodik firefoxban, minden masban megy.
Ezaz:
- $(document).ready(function() {
- var imgWrapper = $('.slideshow > img');
- // only show the first image, hide the rest
- imgWrapper.hide().filter(':first').show();
- $('ul.recentlist li a').click(function () {
- // check if this item doesn't have class "current"
- // if it has class "current" it must not execute the script again
- if (this.className.indexOf('current') == -1){
- imgWrapper.hide();
- imgWrapper.filter(this.hash).fadeIn(500);
- $('ul.recentlist li a').removeClass('current');
- $(this).addClass('current');
- }
- return false;
- });
- });
link
Mi az hogy nem megy?
Ha js hiba van, azt a js konzol/firebug kiírja.
jQuery
Egyedi id-t kéne használni.
koszi