Sorry about that. :)
How/where do I implement this?
Main Topics
Browse All TopicsI implemented a Javascript slideshow on a site: http://tinyurl.com/5rsofk
The JS for the slideshow is at: http://tinyurl.com/6hdptt
By default, the slideshow allows for images to be clickable and lead to user defined URLs.
Yet in order to give the slideshow a rounded look, which the client wanted, I had to use a transparent PNG image positioned over the slideshow. The image rounds off the corners, but is transparent in the middle to allow the slideshow images to show through.
This code was used:
<div id="slideshowwrap"><img src="images/slideshow-tran
This works fine, but the problem is that clicks on the images are registering as clicks on the transparent image, which doesn't lead anywhere. I'm wondering if there is a way to somehow make the image slideshow-trans.png a link, with the href tag being pulled directly from whatever image/URL is currently displaying in the slideshow.
In other words, something like this:
<div id="slideshowwrap">
<a href="{whatever-url-is-ass
<img src="images/slideshow-tran
</a>
</div>
if image1.jpg is showing, and that image is supposed to link to page1.html, then the href tag pulls its value from the Javascript.
Is this possible, and if not, what are some other workarounds?
I know I could create four separate images to round the corners, and position them top left, top right, bottom left, and bottom right, but I would prefer this technique as a last resort, since it would mean reducing the clickable area.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: sh0ePosted on 2008-12-08 at 16:58:51ID: 23125983
Wrong section by the way, you used MooTools not jQuery.
Select allOpen in new window