Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9271981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:45:31+00:00 2026-06-18T15:45:31+00:00

I’m using Aaron Vanderzwan’s slideshow maximage based on Jquery Cycle, but I am having

  • 0

I’m using Aaron Vanderzwan’s slideshow maximage based on Jquery Cycle, but I am having some trouble adding an onclick event to the slides. while researching a solution on stack exchange I came across a solution for “clicking through” a z-index positioned div, and added the pointer-events:none CSS attribute to my set up. this jsfiddle: http://jsfiddle.net/HDRCREATIVE/cj9sh/ is an example of the slideshow I’m working on. my issue is i’m having trouble adding the following jquery to the page. Any guidance at all is appreciated. Thank you in advance!

//The following was taken from the maximage forum's.

var $maximage = $('#maximage');

// Trigger Maximage
$maximage.maximage();

// Capture click on maximage's children
$maximage.children().on('click', function(){
// Retrive our URL (set in data-href attribute on img tags)
var url = $(this).data('href');

// If our URL is set, open a new window with that URL
//    You can certainly use window.location here too
if(url.length > 0){
    window.open(
        url, // <- This is what we set with the data-href attribute
        '_blank' // <- This is what makes it open in a new window.
    );
}
});

UPDATED – WORKING CODE (Thanks to Gulty)
See JsFiddle http://jsfiddle.net/cj9sh/10/
For maximage to produce the full image responsive effect I need for this project, I had to keep the cssBackgroundSize: false, property.
Gulty’s answer led me to understand that my href was being attached to my containing div. That was no good because I’m using this in a CMS scenario and need to be able to attach different links as per the user on the fly.
So To keep the href on my <img> I Enclosed them within a <div> and simplified the click function I was trying to use above.
Preliminary test’s working so far, will update if I come across any new issues.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T15:45:31+00:00Added an answer on June 18, 2026 at 3:45 pm

    If you check your fiddle with the inspector you can see that after the JS is initiated there is no data-attr anymore on the image. The problem is all the background stuff you are doing. Not sure how maximage works but it seems that

    background-size(or if you dont use that doesnt matter) converts the image to a background image inside a .mc-image div. data-href is added to the div as well (which allows you to click it).
    if you now use

    cssBackgroundSize: false, // We don't want to use background-size:cover for our custom size
    

    the background image div is converted to an image again and the data-attr is removed.

    So either dont use cssBackgroundSize:false and make the div .mc-image clickable (by just removing the children on the data-href call) or take another way around

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
We're building an app, our first using Rails 3, and we're having to build
I'm having trouble keeping the paragraph square between the quote marks. In firefox the
I'm using an ASP request returning a XML file containing some latin characters. By
I am reading a book about Javascript and jQuery and using one of the
I am using JSon response to parse title,date content and thumbnail images and place
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
I am trying to find ID3V2 tags from MP3 file using jid3lib in Java.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.