logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > Javascript and JS frameworks
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 09-11-2012, 04:03 PM   #1
johnMoss
johnMoss's Avatar
 
Join Date: Dec 2010
Location: Dallas
Posts: 867
Default Hyperlink Images inside JQuery Carousel

I found some info on this but they didn't get specific on the whole procedure.

Objective: Click on a picture to visit an external link.

http://www.johnmossdesigns.com/websi...s-designs.html

Wrapping the image in an href tag is ineffective as a stand-alone.
I get the impression 'permission' has to be granted to Objects inside the carousel for this to work. I found code for that but they didn't stipulate the complete procedure.

Anyone?
__________________
LinkedIn: jM
johnMoss is offline   Reply With Quote
Old 09-11-2012, 04:54 PM   #2
gentleone
gentleone's Avatar
 
Join Date: Nov 2009
Location: Rhodes, Greece
Posts: 2,837
Default

the images are not clickable, cause the the slider plugin converts the images somehow to background images and those background images is what you see in the slider... not the images in your HTML.

If you take a look with 'inspect element' to the HTML you see that the plugin adds a div with the class 'pic' to the DOM and there you see the images as background images changing through a cycle.

It's working like that otherwise it can't make those transitions of the images (I guess).
__________________
www.gentlemedia.nl
gentleone is offline   Reply With Quote
Old 09-11-2012, 05:02 PM   #3
johnMoss
johnMoss's Avatar
 
Join Date: Dec 2010
Location: Dallas
Posts: 867
Default

Interesting... well then once again here comes the game. The individual pictures are independent objects. So the question is now definitively how to add permissions to these objects. Let the fun begin
__________________
LinkedIn: jM
johnMoss is offline   Reply With Quote
Old 09-11-2012, 05:14 PM   #4
gentleone
gentleone's Avatar
 
Join Date: Nov 2009
Location: Rhodes, Greece
Posts: 2,837
Default

Quote:
Originally Posted by johnMoss View Post
Interesting... well then once again here comes the game. The individual pictures are independent objects. So the question is now definitively how to add permissions to these objects. Let the fun begin
You can't. Well at least not with these type of sliders. The images you see are not the images in your HTML. It became CSS background images injected by the jQuery plugin into the DOM.
__________________
www.gentlemedia.nl
gentleone is offline   Reply With Quote
Old 09-11-2012, 05:33 PM   #5
domedia
Administrator
domedia's Avatar
 
Join Date: Dec 2003
Posts: 9,730
Default

It's not a 'permission' thing John. (you just made it up )=

You cannot add links to background images.
domedia is offline   Reply With Quote
Old 09-11-2012, 05:48 PM   #6
johnMoss
johnMoss's Avatar
 
Join Date: Dec 2010
Location: Dallas
Posts: 867
Default

Do you recall that witch-doctor in "The Heart of Darkness"... Standing over the outboard's diesel engine, shaking his rattle, spewing incantations and trying to make it start?
Well he was serious d___ and so am I .

Permissions is the wrong word, attribute is the correct one. I've read into some stack-overflow threads and they're doing it on some scripts, but perhaps not this type. I may just come along & add some click images below the gallery, but I'm thinking this is somehow do-able...
Rattle in hand ergo...
__________________
LinkedIn: jM
johnMoss is offline   Reply With Quote
Old 09-11-2012, 06:20 PM   #7
gentleone
gentleone's Avatar
 
Join Date: Nov 2009
Location: Rhodes, Greece
Posts: 2,837
Default

It's probably doable if you change/add some functions in the jQuery script of the plugin. You can wrap div 'pic' in an anchor tag and add href attributes dynamically with some jQuery trickery.
__________________
www.gentlemedia.nl
gentleone is offline   Reply With Quote
Old 09-12-2012, 02:30 AM   #8
johnMoss
johnMoss's Avatar
 
Join Date: Dec 2010
Location: Dallas
Posts: 867
Default

Precisely... I played with that a bit but had to move on to tasks at hand...
i'll give it anther go in a couple days.
__________________
LinkedIn: jM
johnMoss is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:27 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com