Jump to content

Transparent Image as Link = weird mouseover problems... (pics inside)


Recommended Posts

Hi.  I wrote a php script for image protection.  It returns a table with the picture as the background of the table, and a transparent gif image that I use for the link.  (wrap the anchor tag around that clear gif).  When I mouse over, I get a weird white box thing.  It's hard to explain so here are two screenshots:

 

Normal:

normal.bmp

 

Mouse Over:

mouseover.bmp

 

I've tried border="0" and outline: none;.  They seem to be for another problem.  Any idea what's going on with my links?

Can we see the code that you are using? The little box thing that pops up is the alt tag, maybe that is causing the issue.

 

the popup box that says "home" isn't from that alt tag, it's actually from the title="" tag.  IE is bugged and it has title and alt switched, so in IE you would be correct.  but i'm using firefox...

 

here's the code:

 


<td background="PixelPipeline.php?id=5114ed460e353dffghomesac4e4dbfd6213cea" width="73">
    <a href="reflector.php?id=5f37a697b76ae16b745fe9c9011cdbfc363aec50">
       <img src="/pix/SusanStorm.gif" width="73" height="29" border="0" alt="Home" title="Home">
    </a>
</td>

well it turns out it was as stupid mistake, but I'm still not sure why only half the image showed up white

 

here's the problem code =)

 


a:hover {
color: #000000;
background: #ffffff;
}

 

is there any way to specify that for only text?  i'm way too lazy to add a class to all my text's anchor tags if i can do it some other way lol.  there like a "text" element?

 

like this?

 

a.text:hover{} ?

 

or something?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.