Solved

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

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
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 …

752 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