We could make an entire div tag clickable by redirecting the click to a page and by changing the cursor sytle to a pointer. This is good if you want your logo or your banner to be clickable, specially if the logo is embedded together with the banner. Making the entire banner clickable would be very beneficial to your site.
Making the entire div clickable
Posted by tildemark on Wednesday, November 15, 2006 at 10:31 AM | 0 TrackBacks
Filed in Javascript
15 Comments
Leave a comment
Gallery
Dragonball Evolution Movie
Life the Universe and Everything
The Restaurant at the End of the Universe
the-ultimate-hitchhikers-guide-to-the-galaxy.jpg
Angels And Demons
StarCraft: Brood War
Linksys Compact Wireless G USB
We Sing, We Dance, We Steal Things
About Me
Alfredo Sanchez is an internet professional focusing on the study search engines behavior in particular. Supports Free Open Source Software and currently develops applications with it using XAMPP.
Recent Entries
-
Blocking or Redirecting Spammers by IP Address Using HTAccess
Image by Za3tOoOr! via FlickrAfter several months of fighting with manual comment spam, I have decided to block all the traffic coming from India. All they do...
-
Fix No Internet Access in Windows 7
I have just upgraded my PC to Windows 7 and since I never tried Windows Vista before; this new operating system is alien to me....
-
Increase activeCollab upload limit using htaccess
Probably the most easiest way to increase the upload limit not just on activeCollab but almost to all PHP applications is by configuring the...
-
Answers to The Lost Symbol Quest
SPOILER WARNING! If you are looking for hints, then this is not the site. I have finally completed the Lost Symbol Quest from the...
-
Adding YM online status icons to websites using PHP and HTML scripts
Adding Yahoo Messenger status icons to websites is fairly easy and straightforward, it doesn't even need any programming language to customize them. By this time,...
this was extremely useful for me, thank you very much =)
Thank you! helped me a lot!
great tip, thanks!
Really Good....Thx buddyy...its working
very good code !
thanks a lot
sir... naa kay solo picture ni maam tin2x?...
sir ... naa kay solo picture ni maam tin2x?
you can find pictures of her on facebook. who are you by the way?
Me ha venido muy bien ...Thank you Tildemark
This worked for me, but I had to do some playing around.. here's the code I used:
Thanks!
{div onclick="location.href='http://www.YourUrlHere.com/';" style="cursor: pointer;"} {div id="logo"}
{/div}{/div} --> replace brackets with >
Thanks! Just what we needed!!
Unfortunately, this link wont be picked up for seo purposes.
it also doesnt change the status bar onmouseover - the user cant tell where they will be directed to.
Thanks, easy solution :)