Can you make a background image clickable? I've tried a few different ways without much success yet. One method worked mostly, but since the page has a jquery slider there was a conflict. Everytime the slider changed, it would trigger the onclick and open the new window repeatedly.
Make a background image clickable?
Collapse
X
-
Make a background image clickable?
- Free Premium Domain Lists and Tools at Clickmojo.com
- For Sale: Obscenity.com
Tags: None -
-
In my example, it's the body background image I want to make clickable. It's for skinning a site, or cobranding it.
I created a div#wrapper around everything that contains the background image. I added an onclick event with a location.href to redirect to the other site. It works, but triggers the redirect with each slider movement.- Free Premium Domain Lists and Tools at Clickmojo.com
- For Sale: Obscenity.com
Comment
-
Nice one. I like thatPornGuy skype me pornguy_epic
AmateurDough The Hottes Shemales online!
TChicks.com | Angeles Cid | Mariana Cordoba | MAILERS WELCOME!Comment
-
maybe you can mess around with itCode:<script type="text/javascript" src="jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $("div[href]").click(function () { window.location = $(this).attr("href"); }); }); </script> <div href="http://www.google.com"> My Div Link </div>Comment
-
My test page is working so far. I'll try it on a working site later.
http://exxxpired.com/test.html- Free Premium Domain Lists and Tools at Clickmojo.com
- For Sale: Obscenity.com
Comment
-
thanksssssssssssssssssComment
-
I was gonna give you rep for this thread but..
lol..
Adult Biz Consultant A tech head since 1995
Affiliate Support: Chaturbate | CCBill Live
Comment
-
nice trick, thanksWebmaster Coupons Coupons and discounts for hosting, domains, SSL Certs, and more!
AmeriNOC Coupons | Certified Hosting Coupons | Hosting Coupons | Domain Name Coupons
Comment




Comment