+ Antworten
Ergebnis 1 bis 1 von 1

Thema: Jquery Funktion abändern

  1. #1
    TP-Junior epicurean macht alles soweit korrekt
    Registriert seit
    Nov 2008
    Ort
    Berlin
    Beiträge
    21

    Jquery Funktion abändern

    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

    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;
    Ich werde leider gar nicht schlau draus wo ich ansetzen oder einsetzen muss. Kann mir bitte jemand weiterhelfen und nen Tipp geben?

    Vielen Dank

    Gruß

    Alex
    Geändert von epicurean (15.06.2011 um 14:40 Uhr)

+ Antworten

Ähnliche Themen

  1. Blog Navigation Abändern
    Von johnny x im Forum Webdesign allgemein
    Antworten: 0
    Letzter Beitrag: 22.06.2009, 04:30
  2. video skin abändern
    Von katee im Forum Flash & Multimedia
    Antworten: 3
    Letzter Beitrag: 18.06.2009, 09:29
  3. Formmailer abändern
    Von Arts im Forum Webdesign allgemein
    Antworten: 7
    Letzter Beitrag: 31.12.2006, 15:43
  4. Websheet von PS Elements 3.0 abändern!
    Von Asurella im Forum Photoshop
    Antworten: 6
    Letzter Beitrag: 16.01.2006, 22:49
  5. schrift abändern
    Von toerag im Forum Typographie
    Antworten: 2
    Letzter Beitrag: 29.04.2004, 16:50

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

     

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51