Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having trouble adding links to images #13

Open
frontiercarlos opened this issue Apr 13, 2013 · 5 comments
Open

Having trouble adding links to images #13

frontiercarlos opened this issue Apr 13, 2013 · 5 comments

Comments

@frontiercarlos
Copy link

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,

@frontiercarlos
Copy link
Author

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

"

"

@frontiercarlos
Copy link
Author

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

@frontiercarlos
Copy link
Author

One more time:

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

@frontiercarlos
Copy link
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.

@frontiercarlos
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant