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
Solved

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

Posted on 2010-09-14
1
652 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
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Add or delete table rows 10 54
REST endpoint query with a parameter 1 18
How can I make the first part identical to the second ? 1 26
message Alert on an empty search 10 22
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

828 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