/    Sign up×
Community /Pin to ProfileBookmark

Does anyone know how to make the image a hyperlink to specific urls rather than the image in its own page in the contenflow.js?

I’ve found that if you comment out this line:
window.location.href=A
You will successfully delete the hyperlinks that link to the full size image.

However, I’d like to have a click on each image take you to individual specific pages.

Any and all help/suggestions welcome.

PS> I’m a designer not a javascript coder — so detailed explanations are needed.

Documentation: [url]http://www.jacksasylum.eu/ContentFlow/features.php[/url]

Thank you,
Kelly

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@DanInMAApr 22.2011 — if you read the documentation it tells you how -

[U]To utilize an item as a link just add an href attribute to the item or the content tag like this:[/U]


<div class="ContentFlow">
<div class="flow">
<div class="item" href="YOUR_URL"><img class="content" src="someImageFile.jpg"/></div>
</div>
</div>


or even

<div class="ContentFlow">
<div class="flow">
<img class="item" href="YOUR_URL" src="someImageFile.jpg"/>
</div>
</div>
Copy linkTweet thisAlerts:
@visualizer03authorApr 22.2011 — Awesome. Thank you. That worked. I appreciate it.

*Sometimes two sets of eyes are better than one.
Copy linkTweet thisAlerts:
@DanInMAApr 22.2011 — no problem. oh also a side note adding the href= line to the img element, technically makes it "invalid html" , so if you run your code through a service like the w3c validation page it may show as invalid code, but in this case it's actually okay.
Copy linkTweet thisAlerts:
@toufic_skrAug 17.2013 — Hi , i am using contentFlow.js in my application , sometimes the items switch very fast before getting the final position , or will be shown in disordered on the same line and same size , does anyone faced this issue ?

your help is very appreciated

thanks
×

Success!

Help @visualizer03 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...