Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter dvwb

    (@dvwb)

    I fixed it. Thanks for all your help.
    I noticed that when I pressed the spacebar I went to the next image in the gallery. I simply turned this off in the script. Stupid that I hadn’t seen this before. And not being able to use the keyboard navigation isn’t that big of a deal.

    Anyway, thanks for your help.

    RJ

    Thread Starter dvwb

    (@dvwb)

    I excluded the jQuery-1.3.2.js script from my header.php but it won’t help. If I also delete this line $scripts->add( 'jquery', '/wp-includes/js/jquery/jquery.js', false, '1.3.2'); from my script-loader.php file in wp-includes. It does work but then my gallery is messed up again.

    Thread Starter dvwb

    (@dvwb)

    I tested it already. It did do the trick like I said in my previous post. But when I disable that script my gallery won’t work properly. So maybe anyone knows what’s wrong with the code?

    Thanks.

    Thread Starter dvwb

    (@dvwb)

    Disabling that script did do the trick. But when I disable that. my entire gallery won’t work properly.
    This is the code of the script:

    /**
     * jQuery Opacity Rollover plugin
     *
     * Copyright (c) 2009 Trent Foley (https://trentacular.com)
     * Licensed under the MIT License:
     *   https://www.opensource.org/licenses/mit-license.php
     */
    ;(function($) {
    	var defaults = {
    		mouseOutOpacity:   0.67,
    		mouseOverOpacity:  1.0,
    		fadeSpeed:         'fast',
    		exemptionSelector: '.selected'
    	};
    
    	$.fn.opacityrollover = function(settings) {
    		// Initialize the effect
    		$.extend(this, defaults, settings);
    
    		var config = this;
    
    		function fadeTo(element, opacity) {
    			var $target = $(element);
    
    			if (config.exemptionSelector)
    				$target = $target.not(config.exemptionSelector);	
    
    			$target.fadeTo(config.fadeSpeed, opacity);
    		}
    
    		this.css('opacity', this.mouseOutOpacity)
    			.hover(
    				function () {
    					fadeTo(this, config.mouseOverOpacity);
    				},
    				function () {
    					fadeTo(this, config.mouseOutOpacity);
    				});
    
    		return this;
    	};
    })(jQuery);

    Does anyone know what’s wrong here?

    Thread Starter dvwb

    (@dvwb)

    Thanks for your replies. I’ll have a look at it. the cforms contact form as well.
    I’ll post the results.

    Thread Starter dvwb

    (@dvwb)

    I’m using Contact form 7.
    this is the page the form is on: https://tinyurl.com/y9ya2ws

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)