Skip to content

Having trouble adding links to images #13

Open

Description

@frontiercarlos

I've implemented your demo "index5" using the horizontal "Advertise Here" slider. I would like to add links to the images but nothing seems to work. Do you have a solution?

My image divs look like this:

I've tried adding href to both an "a" and "div" tag. I styled the a tag with "display:block", etc. Nothing seems to work. I'm wondering if there is something I'm missing with respect to html5.

It's probably something simple I'm overlooking. Let me know.

Thanks,

Activity

  1. frontiercarlos commented on Apr 13, 2013

    @frontiercarlos
    Author

    I noticed the comments system stripped out my div tag. I'll try to leave it again.

    "

    "

  2. frontiercarlos commented on Apr 13, 2013

    @frontiercarlos
    Author

    Still won't let me leave the snippet of code. Well hopefully you can help me without it.

  3. frontiercarlos commented on Apr 13, 2013

    @frontiercarlos
    Author

    One more time:

    data-iview:image=".../images/ad3.jpg"

  4. frontiercarlos commented on Apr 13, 2013

    @frontiercarlos
    Author

    Since the image is not being called with an image tag I'm confused about how to make it a link. Since I want to use the slider for banner ads, I need the images to have links back to the advertising client paying for the ad.

  5. frontiercarlos commented on Apr 13, 2013

    @frontiercarlos
    Author

    I found a jquery script solution that I inserted into the data-view div that works. However, this is not an ideal solution as not all browsers have jQuery enabled. Most do, but a a meaningful percentage don't. An html solution would be better. Not sure why I can't get it to work in html with an a href solution. The image comes up but then quickly disappears, leaving a dark background which is clickable but the image is gone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions