Forum Replies Created

Viewing 7 replies - 46 through 52 (of 52 total)
  • Thread Starter amitstreak

    (@amitstreak)

    Thanks again.

    Same results but now I see a code line in the head of the website.

    header.php now looks like this:

    <?php wp_head(); ?>
    
    <div class="fadehover">
    	<img src="https://localhost/nextGen/wp-content/themes/glossyblue-1-4/images/cbavota.jpg" alt="" class="a" />
    	<img src="https://localhost/nextGen/wp-content/themes/glossyblue-1-4/images/cbavota-bw.jpg" alt="" class="b" />
    </div>

    functions.php:

    function my_init() {
    	if (!is_admin()) {
    		wp_enqueue_script("jquery");
    		wp_enqueue_script('fader', '/wp-content/themes/glossyblue-1-4/js/fader.js', array('jquery'));
    	}
    }
    add_action('init', 'my_init');

    Thread Starter amitstreak

    (@amitstreak)

    Thanks, esmi.

    Partial success – the two images still appear separately in two corners but now the one on the right fades away when mouse hovers over it.
    They’re supposed to be located at the same spot and fade between one to the other.

    What am I still doing wrong?

    header.php code now is:

    <?php wp_enqueue_script("jquery"); ?>
    <?php wp_enqueue_script('fader', '/wp-content/themes/glossyblue-1-4/js/fader.js', array('jquery')); ?>
    <?php wp_head(); ?>
    
    <script type='text/javascript'>
    jQuery(document).ready(function(){
    jQuery("img.a").hover(
    function() {
    jQuery(this).stop().animate({"opacity": "0"}, "slow");
    },
    function() {
    jQuery(this).stop().animate({"opacity": "1"}, "slow");
    });
    
    });
    </script>	
    
    <div class="fadehover">
    	<img src="https://localhost/nextGen/wp-content/themes/glossyblue-1-4/images/cbavota.jpg" alt="" class="a" />
    	<img src="https://localhost/nextGen/wp-content/themes/glossyblue-1-4/images/cbavota-bw.jpg" alt="" class="b" />
    </div>

    Thread Starter amitstreak

    (@amitstreak)

    Solved it.

    My bad.

    I’m using the plugin “Page Links To” which enables me to replace the link of a page, and I accidentally typed /// instead of // in the url.
    For some reason FireFox knows to drop the third / and since I’m using it at home I haven’t noticed any problem until someone using IE mentioned it.

    So I guess sometimes using the better product may not be in your favor ??

    Anyway, thanks James.

    Thread Starter amitstreak

    (@amitstreak)

    Okay,
    I know what the problem is now but still looking for a solution.

    In the main site when going with the mouse over the link of the sub-directory site (the middle link at the top of the page), in FireFox, which I’m using at home, everything is fine but with IE, which was used outside, the link contains /// instead of // after http.

    How can this be?

    Thread Starter amitstreak

    (@amitstreak)

    Sure, and thanks for the quick reply.

    The main site is .
    The sub-directory site is .

    The site is not in English so the text will probably look invalid.

    Thread Starter amitstreak

    (@amitstreak)

    Great.
    Thanks!

    Thread Starter amitstreak

    (@amitstreak)

    Hi Andrea,
    Thanks for the quick reply.

    Which method is preferred if my priority is the website’s speed?

    Is there a detailed guide for this on codex?
    I couldn’t find one on the “Create A Network” page.

Viewing 7 replies - 46 through 52 (of 52 total)