HTML - Making Transparent Portion Of Element Clickable?
Is there a way to change the way IE handles transparent portions of an element - like a 200x200 pixel div with borders but no background? Firefox will consider "onmouseover" for the entire div, but IE seems only to react to the thin border.
So, I can make a simple drag-and-drop div in Firefox, but in IE you have to pick the 1 pixel border to drag it around :-( Putting a transparent image in the div does not help, since this will make the browser itself grab that image, ignoring my script. How can you make the div become selectable in IE too? All the best Robert Similar TutorialsHello everyone I'm usually good at figuring stuff out, but this time I hit a doozy and can't seem to figure it out, hopefully someone here can help me. I have a gallery blog which is using this theme: http://www.elegantthemes.com/preview/eGallery/ my question is how can I make it so that users can click the thumbnail and go to the post rather than clicking the arrow on the bottom right. I've narrowed it down to <div class="thumbnail-div" style="background-image: url(<?php bloginfo('stylesheet_directory'); ?>/scripts/timthumb.php?src=<?php echo $thumb; ?>&h=159&w=190&zc=0);"> but I don't now how to make them link to the post, any help would be great thank you. Hello, I'm using this tutorial on creating an ipod-esque "cover flow" photo album for a presentation I'm putting together: http://www.elated.com/articles/cover...ss-and-jquery/ What I'm trying to figure out is how do I make each image a clickable link that will open a url in a new window. I know the code is Code: <a href="URL" target="_blank"</a> but I have no idea where to begin and end the tags. I either need it where I can click on each picture, or the text under each picture so that each one has a separate URL that opens in a new window. thanks Okay a simplified version of my problem is this: I have a small table of 2x2, with the right two cells merged. I have content in the right cell in the form of text. The cell has the following formatting: overflow: hidden; and the text has the following formatting: position: relative; left: -91px; vertical-align: top; text-align: justify; The left cells are 182px wide, so the text looks like it is centered with respect to the entire table, with the overflow into the left two cells being cut off. The problem now is, I only want the text covered by the top left cell to be cut, and I want the text in the bottom left cell to still be visible. I tried using the 'clip:' property, but you cannot specify a non-rectangular area so it's of no help to me. There is an image in the top left cell, and nothing in the bottom left cell, so the other way to fix my problem would be to find some way of having the overflow appear BEHIND the other elements, so that the image would cover the text, and the empty cell would not. Is it possible to draw only a certain portion of an image using img? I want to take this radar and only have it draw a rectangle around where I live instead of the whole image. Is there a way to specify what coordinates to draw using img? Hello! Just a quick question really... Have you ever visited a website, clicked a link within the site, and noticed after doing so that only a portion of the page has changed? The diagram attached will hopefully help explain I am trying to achieve. i basically want a page consisting of two columns. The left column (nav) will be my navigation panel and contain links that when clicked by the user, the content beside it in the 'right' column (content) changes. Please can anyone suggest how i can achieve this? I have experimented with frames and floating frames (iframes) and it does work, yet I understand that frames are not supported by all browsers? this worries me! Can this be achieved through css? Are there any of you that know of any tutorials that can help me? Please, any help will be much appreciated! It seems, at least on my computer, that when I choose the blog page on my "site in progress"... that the page sort of zooms in. I thought at first it was because the page used a scrollbar and the other page didn't, but then I created another page with a scrollbar, separate from the blog, and it did NOT do the zoom effect. You can see the site in question he http://www.pzfantasyfootball.com As you can see, most noticeably in the navigation, the font looks fine, not blurry, not too big, just right. When you click on the blog page, the font becomes blurred and slightly bigger. I'm running the latest Firefox on a 1440x900 monitor. Any advice would be greatly appreciated. Thanks i'm trying to put a transparent png img on a colored background, in IE6 the transparent part of the img appears as a color instead of transparent how can i fix that??? the attached imgs shows how it's appearing in IE6 and FF Hi, I'm pretty sure there is a simple way of doing this but I have tried and cannot get great results. I want to be able to have the lower right logo on this page be clickable to a webpage. Thanks! Does anyone have any easy javascript code for making clickable banners? Hi all, first of all i`m new here and my HTML experience is limited although I do work in the IT industry. Iv been asked to look at a piece of software called Proxy Pick which enables users to choose proxy information on thier laptops according to where they are i.e. at home or at work. Proxy Pick allows you to design your own custom inferface using HTML which im in the process of doing I`d like the options to be displayed as clickable images, and when clicked it enters the correct proxy details for you. at present I have the images which just link to a random website. I also have radio buttons which do enter the proxy information correctly when used, but obviously I want to have these radio button options as pictures. Can anyone help? Thanks Strange I'm going nuts trying to figure out what is causing this. On this page I have 4 links at the top (courses, reiki, etc) http://gocreatesocialmedia.com/fb/He...age/index.html two of them actually Link....and 2 don't. I have the links formatted exactly the same for all. Any suggestions on how to correct this ? HI 1) Is there a way to make a div with a logo and text clickable? 3) I read it was bad for seo? 2) Is there a way to make the background image change on hover? This is css or javascript ? Thanks for reading Hi everyone, I'm trying to make tables clickable, simple right? Well I've tried all the solutions I could find on the net and none of them seem to work. If you look at my site (Bottleweb.org), I want to make the two tables (green and blue ones) on the main window clickable. I'd also like to change the background color and font color on mouseover. I'm already using java based rollovers to do the buttons. If you know how to do this please include all the java scripts I'll need too. Thanks Hey folks, I'm having an issue with an image map, on some pages the areas I've mapped are not able to be clicked. It has something to do with the code above the image map, but I'm not sure exactly what is causing the issue. Here's the full page code: <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns="urn:schemas-microsoft-comfficeffice" xmlns="http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>DIVINEDESIGNJEWELRY.COM</title> </head> <body> <p align="center"> <img id="Image-Maps_1201007190938159" src="DD_Logo.jpg" usemap="#Image-Maps_1201007190938159" border="0" width="725" height="235" alt="" /> <map id="_Image-Maps_1201007190938159" name="Image-Maps_1201007190938159"> <area shape="rect" coords="6,179,105,215" href="http://www.divinedesignsjewelry.com/philosophy.htm" alt="" title="" /> <area shape="rect" coords="118,180,217,216" href="http://www.divinedesignsjewelry.com/givingback.htm" alt="" title="" /> <area shape="rect" coords="226,179,325,215" href="http://www.divinedesignsjewelry.com/collections.htm" alt="" title="" /> <area shape="rect" coords="331,180,416,216" href="http://www.divinedesignsjewelry.com/artisans.htm" alt="" title="" /> <area shape="rect" coords="420,180,500,216" href="http://www.divinedesignsjewelry.com/events.htm" alt="" title="" /> <area shape="rect" coords="506,180,586,216" href="http://www.divinedesignsjewelry.com/boutique.htm" alt="" title="" /> <area shape="rect" coords="602,179,700,215" href="http://www.divinedesignsjewelry.com/mailinglist.htm" alt="" title="" /> </map> </p> <div align="center"> <table border="1" width="57%" cellspacing="0" bordercolor="#DADADA"> <td> <p class="MsoNormal"><font color="#808080" face="Verdana"><b><u>EVENTS</u></b></font></p> <p class="MsoNormal"><font face="Verdana"><font color="#808080">Visit Divine Designs in Louisville, KY, September 12<sup>th</sup>-18th at </font> <a style="color: #808080; text-decoration: underline; text-underline: single" href="http://www.natqc.org/"> www.natqc.org</a></font></td> </table> <div> <p align=center> <img id="Image-Maps_1201007190938159" src="bottommenu.jpg" usemap="#Image-Maps_1201007190938159" border="0" width="710" height="46" alt="" /> <map id="_Image-Maps_1201007190938159" name="Image-Maps_1201007190938159"> <area shape="rect" coords="503,2,569,41" href="http://www.divinedesignsjewelry.com/press.htm" alt="" title="" /> <area shape="rect" coords="584,2,670,41" href="http://www.divinedesignsjewelry.com/contactus.htm" alt="" title="" /> </map></p></div> </body> </html> Any help would be greatly appreciated. The image map on the top works fine, the one on the bottom is the one that is not working at all. Thank you! I want to turn a 1024x768 image into a 600x800 image on my webpage, but when it's clicked upon it would show the original size, being 1024x768 -- I presume there is a simple way to do this? I tried googling up the results, hard to find. I have only meagre HTML skills and am trying to develop a fantasy-book fans website, will appreciate the replies. Trying to modify a template.. http://www.varaxon.com/ On the right, below the login box are 3 seperate boxes - I've been trying to make these completely clickable - I just can't seem to figure it out. I tried doing unordered lists, etc. Color me stupid - I'm just a lowly PHP Developer with minimal design/html coding experience. -G http://www.grannysoycandles.com The menu links on the left side are working in IE but not in FF. Its only when they are in the "buttons" div. I put one in the "body" div and it worked fine. Any ideas why? Internet Explorer works fine Firefox does not weird...usually its the other way around... Quote: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Granny Soy Candles</title> <link rel="stylesheet" href="style.css" type="text/css" charset="utf-8" /> <style type="text/css"> :active, :focus{ outline:none; } </style> </head> <body bgcolor=#E0E0E0> <div id="div1"> <div id="banner"> <img src="http://www.grannysoycandles.com/images/banner.jpg"> </div> </div> <div id="div2"> <div id="body"> <center><b><h3>Welcome To Granny Soy Candles</h3></b></center> Welcome to the new home of Granny Soy Candles. Please be patient while the site is updated and created. We will be up and running within the next few weeks. Very soon we will be providing you with quality soy candles that are better for your home and your family. Please come back and visit us soon! <br> </div> <div id="buttons"> <a href="http://www.grannysoycandles.com/"><img src="http://www.grannysoycandles.com/images/home1.jpg" border="0"></a> <br> <a href="http://www.grannysoycandles.com/candles.html"><img src="http://www.grannysoycandles.com/images/candles0.jpg" border="0"></a> <br> <img src="http://www.grannysoycandles.com/images/button0.jpg" border="0"> <br> <img src="http://www.grannysoycandles.com/images/button0.jpg" border="0"> <br> <img src="http://www.grannysoycandles.com/images/button0.jpg" border="0"> <br> </div> <div id="div3"> </div> </body> </html> Quote: #div1 { background: url(images/bgheader.jpg) repeat-x; float: left; width: 915px; height: 165px; } #div2 { background: url(images/bgmiddle.jpg); background-repeat: repeat; float: left; width: 915px; } #div3 { background: url(images/bgfooter.jpg) repeat-x; float: left; width: 915px; height: 51px; } #banner { padding-top: 30px; padding-left: 1px; } #buttons { padding-top: 30px; } #body { position: absolute; width: 675px; padding-left: 220px; padding-top: 15px; } Hi everyone, hope everyones well. I am desigining and coding an advanced myspace (the link to the space is: www.myspace.com/3face) and have ran into a problem, basically, The navbar on the page is set up using strategically placed divs for each button (i was trying to use tables but to hide the rest of the myspace content which I didnt want, the code used hide my table as well, so i couldn't use tables for it) So i am using DIV's for it now the problem I have is that some of the divs and parts of some of the divs arent clickable. I would change the z-index of them and it would fix it for that particular div but then would mess up on others, right now the divs which aren't/partially clickable a * Film * Favourites * Myspace TV the code for the navbar links is as follows: <div class="Home-navbar"> <div style="position: absolute; width:168px; left:153px; z-index:2; overflow auto; top: 1892px; height:42px; visibility: visible; background-color:transparent;"> <A href=http://home.myspace.com/index.cfm?fuseaction=user> <img src="http://i25.photobucket.com/albums/c99/3face/Home-navbar.jpg" style="border-style: none"/> </div> <div class="Browse-navbar"> <div style="position: absolute; width:168px; left:227px; z-index:2; overflow auto; top: 1894px; height:42px; visibility: visible; background-color:transparent;"> <A href="http://browseusers.myspace.com/Browse/Browse.aspx?z=1"> <img src="http://i25.photobucket.com/albums/c99/3face/Browse-navbar.jpg" style="border-style: none"/> </div> <div class="search-navbar"> <div style="position: absolute; width:168px; left:319px; z-index:2; overflow auto; top: 1895px; height:42px; visibility: visible; background-color:transparent;"> <A href="http://search.myspace.com/index.cfm?fuseaction=find"> <img src="http://i25.photobucket.com/albums/c99/3face/search-navbar.jpg" style="border-style: none"/> </div> <div class="favourites-navbar"> <div style="position: absolute; width:168px; left:676px; z-index:2; overflow auto; top: 1893px; height:42px; visibility: visible; background-color:transparent;"> <A href="http://favorites.myspace.com/index.cfm?fuseaction=user.favorites"> <img src="http://i25.photobucket.com/albums/c99/3face/Favourites-navbar.jpg" style="border-style: none"/> </div> <div class="film-navbar"> <div style="position: absolute; width:168px; left:471px; z-index:2; overflow auto; top: 1891px; height:42px; visibility: visible; background-color:transparent;"> <A href="http://film.myspace.com/"> <img src="http://i25.photobucket.com/albums/c99/3face/Film-Navbar2.jpg" style="border-style: none"/> </div> <div class="mail-navbar"> <div style="position: absolute; width:168px; left:538px; z-index:2; overflow auto; top: 1894px; height:42px; visibility: visible; background-color:transparent;"> <A href="http://messaging.myspace.com/index.cfm?fuseaction=mail.inbox"> <img src="http://i25.photobucket.com/albums/c99/3face/Mail-navbar.jpg" style="border-style: none"/> </div> <div class="blog-navbar"> <div style="position: absolute; width:168px; left:600px; z-index:2; overflow auto; top: 1893px; height:42px; visibility: visible; background-color:transparent;"> <A href="http://blog.myspace.com/index.cfm?fuseaction=blog.controlcenter"> <img src="http://i25.photobucket.com/albums/c99/3face/Blogs-navbar.jpg" style="border-style: none"/> </div> <div class="groups-navbar"> <div style="position: absolute; width:168px; left:217px; z-index:2; overflow auto; top: 1919px; height:42px; visibility: visible; background-color:transparent;"> <A href="http://groups.myspace.com/"> <img src="http://i25.photobucket.com/albums/c99/3face/Groups-navbar.jpg"style="border-style: none"/> </div> <div class="invite-navbar"> <div style="position: absolute; width:168px; left:403px; z-index:2; overflow auto; top: 1894px; height:42px; visibility: visible; background-color:transparent;"> <A href="http://invites.myspace.com/index.cfm?fuseaction=invite"> <img src="http://i25.photobucket.com/albums/c99/3face/invite-navbar.jpg" style="border-style: none"/> </div> <div class="myspacetv-navbar"> <div style="position: absolute; left:401px; z-index:2; overflow auto; top: 1919px; visibility: visible; background-color:transparent;"> <A href="http://vids.myspace.com/"> <img src="http://i25.photobucket.com/albums/c99/3face/MyspaceTV-navbar.jpg" style="border-style: none"/> </div> <div class="music-navbar"> <div style="position: absolute; width:168px; left:530px; z-index:2; overflow auto; top: 1920px; height:42px; visibility: visible; background-color:transparent;"> <A href="http://music.myspace.com/"> <img src="http://i25.photobucket.com/albums/c99/3face/Music-navbar.jpg" style="border-style: none"/> </div> <div class="comedy-navbar"> <div style="position: absolute; width:168px; left:615px; z-index:2; overflow auto; top: 1920px; height:42px; visibility: visible; background-color:transparent;"> <A href="http://comedy.myspace.com/"> <img src="http://i25.photobucket.com/albums/c99/3face/Comedy-navbar.jpg" style="border-style: none"/> </div> <div class="classified-navbar"> <div style="position: absolute; width:168px; left:710px; z-index:2; overflow auto; top: 1920px; height:42px; visibility: visible; background-color:transparent;"> <A href="http://classifieds.myspace.com/"> <img src="http://i25.photobucket.com/albums/c99/3face/Classified-navbar.jpg" style="border-style: none"/> </div> <div class="forum-navbar"> <div style="position: absolute; width:168px; left:788px; z-index:2; overflow auto; top: 1894px; height:42px; visibility: visible; background-color:transparent;"> <A href="http://forum.myspace.com/"> <img src="http://i25.photobucket.com/albums/c99/3face/Forum-navbar.jpg" style="border-style: none"/> </div> <div class="events-navbar"> <div style="position: absolute; width:168px; left:315px; z-index:2; overflow auto; top: 1918px; height:42px; visibility: visible; background-color:transparent;"> <A href="http://events.myspace.com/"> <img src="http://i25.photobucket.com/albums/c99/3face/Events-navbar.jpg" style="border-style: none"/> </div> If someone can help me and explain why it happens like this (im gonna be doing a computer science degree next year so I want as much knowledge as poss.) I would really appreciate it! Thanks Hey, i want to make an iframe Object invisible but still clickable. Is that possible, and if yes, how? Im using Dreamweaver CS5 greetings Phil |