I can get the slider to work perfectly outside of wordpress on other static html pages.
I have enqued jquery prior to the heading tag and called in the script I can see that the script is loading just fine, and I notice that every 4 seconds or so, the page seems to be trying to load something (the cursor processes for just 1 second) which I'm assuming is the script trying to switch the image.
Am I just missing something dumb here? Totally stumped lol.
Your jQuery plugin is loading before the jQuery library. Check out your source in Firebug.
How are you loading jQuery? Via functions.php with an enqueue script function? How are you loading the plugin? Make sure it is loaded after wphead in your header.php. Or, better yet, put it in your footer.
Hmm I wonder if you saw it while I was fooling around with it trying to get it to work
The place I normally call it is on the page itself (it's a custom page for the index page), so on the custom page I have:
<?php /* Template Name: Homepage */ ?>
<?php get_header(); ?>
<script type="text/javascript">
/*** Simple jQuery Slideshow Script Released by Jon Raasch (jonraasch.com) under FreeBSD license: free to use or modify, not responsible for anything, etc. Please link out to me if you like it :) ***/
function slideSwitch() { var $active = $('#slideshow IMG.active');
if ( $active.length == 0 ) $active = $('#slideshow IMG:last');
// use this to pull the images in the order they appear in the markup var $next = $active.next().length ? $active.next() : $('#slideshow IMG:first');
// uncomment the 3 lines below to pull the images in random order
// var $sibs = $active.siblings(); // var rndNum = Math.floor(Math.random() * $sibs.length ); // var $next = $( $sibs[ rndNum ] );
check out: http://www.delsolrealtytucson.com
I'm trying to use a basic image fader for some images on the homepage. The one that I've used in the past is Jon Raach's (http://jonraasch.com/blog/a-simple-jquery-slideshow).
I can get the slider to work perfectly outside of wordpress on other static html pages.
I have enqued jquery prior to the heading tag and called in the script I can see that the script is loading just fine, and I notice that every 4 seconds or so, the page seems to be trying to load something (the cursor processes for just 1 second) which I'm assuming is the script trying to switch the image.
Am I just missing something dumb here? Totally stumped lol.
How are you loading jQuery? Via functions.php with an enqueue script function? How are you loading the plugin? Make sure it is loaded after wphead in your header.php. Or, better yet, put it in your footer.
The place I normally call it is on the page itself (it's a custom page for the index page), so on the custom page I have:
And I'm calling in the jquery like this in the header.php:
hi doobie i have similar problem sometimes the images in slider not loading my website is www.retrify.com can you help me?