Malsup Cycle Plugin - unable to get it started
Hi,
I'm sort-of new to jquery, although I have had experience with java in the past. I've recently been building a new site on Wordpress, but as my PHP isn't up to scratch I've been modifying an existing (paid for) theme.
I'm trying to use the Malsup Cycle plugin to get a cycling image banner at the top of my page, but no matter what I try I can't seem to get it to work
here's a link to the site (work in progress)
and here's the relevant code from the header.php part of my site
- <?php if ( is_single() ) wp_enqueue_script( 'comment-reply' ); ?>
- <?php wp_enqueue_script("jquery"); ?>
- <?php wp_head(); ?>
- <script type="text/javascript">
- // loopedSlider for image gallery
- jQuery(window).load(function(){
- jQuery("#loopedSlider").loopedSlider({
- <?php
- $autoStart = 0;
- $slidespeed = 600;
- $containerClick = "false";
-
- if ( get_option("woo_slider_auto") == "true" )
- $autoStart = get_option("woo_slider_interval") * 1000;
- else
- $autoStart = 0;
-
- if ( get_option("woo_slider_speed") <> "" )
- $slidespeed = get_option("woo_slider_speed") * 1000;
- if ( get_option("woo_slider_click") == "true" )
- $containerClick = "true";
- ?>
- autoStart: <?php echo $autoStart; ?>,
- slidespeed: <?php echo $slidespeed; ?>,
- containerClick: <?php echo $containerClick; ?>,
- autoHeight: true
- });
- });
- </script>
- <script type="text/javascript" src="<?php bloginfo("template_directory"); ?>/includes/js/jquery.cycle.lite.js"></script>
- <script type="text/javascript">
- $(document).ready(function() {
- $('#slideshow').cycle({
-
- });
- });
- </script>
- </head>
- <body>
- <div id="wrap">
- <div id="top" class="content">
-
- <div id="header">
- <!-- Logo -->
- <div id="slideshow">
- <img src="http://www.picturesmusic.co.uk/wordpress/wp-content/themes/object/bannerimg/ban01.jpg" class="first"/>
- <img src="http://www.picturesmusic.co.uk/wordpress/wp-content/themes/object/bannerimg/ban02.jpg"/>
- </div>
Is anyone able to point me in the right direction?
Thanks