Solved

Jquery cycle gallery- Buttons with mouseover can't have href links

Posted on 2010-09-14
1
653 Views
Last Modified: 2012-05-10
I've got a jquery gallery. An image appears depending on what button is hovered on. If the same button is clicked on the href link doesn't work. The mouseover is stopping it from working. I'd like both the mouseover and the href click to work.

Below is the JS, navigation, and gallery images.
<script type="text/javascript">
$('#slideshow2').cycle({ 
    fx:     'fade', 
    speed:  'fast', 
    timeout: 0, 
    pager:  '.nav2', 
	pagerEvent: 'mouseover', 
    pagerAnchorBuilder: function(idx, slide) { 
        // return selector string for existing anchor 
        return '.nav2 li:eq(' + idx + ') a'; 
    }     
}); 
</script>






<div id="slideshow2">
                        <img src="<?php echo $img; ?>content/products/utility-mini.jpg" class="border" align="right" />
                        <img src="<?php echo $img; ?>content/products/utility-mini.jpg" class="border" align="right" />
                        <img src="<?php echo $img; ?>content/products/utility-mini.jpg" class="border" align="right" />
                    </div>



   <div class="product-list-1 nav2">
                        <ul>
                            <li><a href="<?php echo $path; ?>products/utility-mini/gp-buckets/">GP Bucket</a></li>
                            <li><a href="<?php echo $path; ?>products/utility-mini/slope-finishing/">Slope Finishing</a></li>
                            <li><a href="<?php echo $path; ?>products/utility-mini/tilting-batter-bucket/">Tilting Batter Bucket</a></li>
                        </ul>
                    </div>

Open in new window

0
Comment
Question by:George-TCC
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
George-TCC earned 0 total points
ID: 33678931
To get the rollover to change the image and also keep the href link line 702 & 703 were commented out in js/jquery.cycle.all.2.72.js
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question