Hallo liebe Community Mitglieder,
aus gegebenen Anlass habe ich meine Herrangehensweise geaendert. (fuer alle die sich wundern warum der Thread jetzt anders heisst)
Mein Ziel generell ist es die Slideshow erst bei Klick auf eines der Thumbnails zu aktivieren.
Die Slideshow selbst ist in Jquery Routinen geschrieben.
Leider werden bereits die Parameter display:none und block fuer die Bildwechsel Funktion gewechselt.
Es geht um diese Seite
Nochmals zur genauen Erklaerung nun startet die grosse Slideshow auf der linken seite von Anfang an. Dies will ich unterbinden indem ich ein Stop einbinde. Dass es solange wartet bis auf das Thumbnail div geklickt wurde.
fuer meine begriffe muss es sich um diese js Ausschnitt handeln
Ich werde leider gar nicht schlau draus wo ich ansetzen oder einsetzen muss. Kann mir bitte jemand weiterhelfen und nen Tipp geben?Code:return this.each(function() { //Hide the unstyled UL until we've created the gallery $(this).css('visibility','hidden'); // Wrap UL in DIV and transfer ID to container DIV $(this).wrap("<div></div>"); j_gallery = $(this).parent(); // Adjusted classname to not conflict with themes and WordPress defaults j_gallery.css('visibility','hidden').attr('id',$(this).attr('id')).addClass('galleryview'); // Assign filmstrip class to UL $(this).removeAttr('id').addClass('filmstrip'); // If the transition or pause timers exist for any reason, stop them now. $(document).stopTime("transition"); $(document).stopTime("animation_pause"); // Save the id of the UL passed to the plugin id = j_gallery.attr('id'); // If the UL does not contain any <div class="panel-content"> elements, we will scale the UL images to fill the panels scale_panel_images = $('.panel-content',j_gallery).length==0; // Define dimensions of pointer <div> pointer_height = opts.pointer_size; pointer_width = opts.pointer_size*2; // Determine filmstrip orientation (vertical or horizontal) // Do not show captions on vertical filmstrips (override user set option) filmstrip_orientation = (opts.filmstrip_position=='top'||opts.filmstrip_position=='bottom'?'horizontal':'vertical'); if(filmstrip_orientation=='vertical') { opts.show_captions = false; } // Determine path between current page and plugin images // Scan script tags and look for path to GalleryView plugin $('script').each(function(i){ var s = $(this); if(s.attr('src') && s.attr('src').match(/jquery\.galleryview/)){ loader_path = s.attr('src').split('jquery.galleryview')[0]; // Modified Below for use with WordPress NextGen GalleryView Plugin by John Brien theme_path = s.attr('src').split('jquery.galleryview')[0]+'../images/themes/'; } }); // Assign elements to variables to minimize calls to jQuery j_filmstrip = $('.filmstrip',j_gallery); j_frames = $('li',j_filmstrip); j_frames.addClass('frame'); // If the user wants panels, generate them using the filmstrip images if(opts.show_panels) { for(i=j_frames.length-1;i>=0;i--) { if(j_frames.eq(i).find('.panel-content').length>0) { j_frames.eq(i).find('.panel-content').remove().prependTo(j_gallery).addClass('panel'); } else { p = $('<div>'); p.addClass('panel'); im = $('<img />'); im.attr('src',j_frames.eq(i).find('img').eq(0).attr('src')).appendTo(p); p.prependTo(j_gallery); j_frames.eq(i).find('.panel-overlay').remove().appendTo(p); } } } else { $('.panel-overlay',j_frames).remove(); $('.panel-content',j_frames).remove(); } // If the user doesn't want a filmstrip, delete it if(!opts.show_filmstrip) { j_filmstrip.remove(); } else { // Wrap the frame images (and links, if applicable) in container divs // These divs will handle cropping and zooming of the images j_frames.each(function(i){ if($(this).find('a').length>0) { $(this).find('a').wrap('<div class="img_wrap"></div>'); } else { $(this).find('img').wrap('<div class="img_wrap"></div>'); } }); j_frame_img_wrappers = $('.img_wrap',j_frames); } j_panels = $('.panel',j_gallery); if(!opts.show_panels) { opts.panel_height = 0; opts.panel_width = 0; } // Determine final frame dimensions, accounting for user-added padding and border f_frame_width = opts.frame_width+extraWidth(j_frame_img_wrappers); f_frame_height = opts.frame_height+extraHeight(j_frame_img_wrappers); // Number of frames in filmstrip item_count = opts.show_panels?j_panels.length:j_frames.length;
Vielen Dank
Gruß
Alex
Geändert von epicurean (15.06.2011 um 14:40 Uhr)
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)