![]() |
Make a background image clickable?
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.
|
also waiting the answer...
|
|
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. |
Nice one. I like that
|
you could do it with jquery using .click()
just create a div thats abs position at 0,0 $("#bgad").click( function() { // do stuff; }); |
Code:
<script type="text/javascript" src="jquery.min.js"></script> |
My test page is working so far. I'll try it on a working site later.
http://exxxpired.com/test.html |
Quote:
|
I was gonna give you rep for this thread but..
lol.. |
Quote:
|
nice trick, thanks
|
All times are GMT -7. The time now is 12:27 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc