Jump to content

Recommended Posts

Below is a snippet of html where i'm trying to display a div with a transparent background image that overlays over the web page. On top of this div is a table with images which i want to act as links, but apparently any link inside the div does not work in IE 6 or 7. this does work in firefox though. any Event handlers attached to the any div's or tables in side the containing div will not work eithe. can anyone please help me  in making the links/ event handlers work inside this div? Thanks

 

 

<div class='text' id='itemTooltip' style='position: absolute; background-image: url(http://www.something.png); z-index:100; width:100%; height: 100%; text-align: center; display:none' >

    <center>

           

                <table style='background-color:#FFFFFF;' class="text" border="0" cellpadding="0" cellspacing="0" width="606" id='toolTipTable'>

                    <tr>

                    <td background='http://www.something.png' style=' width: 7px; height: 39px;'></td>

                   

                        <td background='http://www.something.png' style='background-repeat:no-repeat;' width='237' align='center'></td>

                        <td background='http://www.something.png' style=' background-repeat:repeat-x;' width='300' align='left'></td>

                        <td background='http://www.something.png' width='20' align='center' style='background-repeat:no-repeat;' onClick="hideTooltip('itemTooltip')"></td>

                        <td background='http://www.something.png' align='right' style=' background-repeat:no-repeat;' width='20'></td>

                       

                    </tr>

                </table>

               

                    <table style='background-color:#FFFFFF;' class="text" border="0" cellpadding="0" cellspacing="0" width="606">

                    <tr height="31">

                            <td background='http://www.something.png' style=' background-repeat:repeat-y;' width="13"></td>

                            <td background='http://www.something.jpg' width='553'><div style='display:inline;' id='overviewDiv'><a  onClick="showTab('overviewImg');" href="BLOCKED SCRIPTvoid 0;"><img id='overviewImg' src="http://www.something.jpg" border="0"></a></div><div style='display:inline;' id='galleryDiv'><a onClick="showTab('galleryImg');" href="BLOCKED SCRIPTvoid 0;"><img id='galleryImg' src="http://www.something.jpg" border="0"></a></div><div style='display:inline;' id='virtualDiv'><a onClick="showTab('virtualImg');" href="BLOCKED SCRIPTvoid 0;"><img id='virtualImg' src="http://www.something.jpg" border="0"></a></div></td>

                           

                            <td background='http://www.something.png' style=' background-repeat:repeat-y;' align='right' width="14"></td>

 

                    </tr>

                    <tr>

                            <td background='http://www.something.png' width="13"></td>

                            <td bgcolor="#c5c5c5" width="1"></td>

                    </tr>   

                </table>

                   

    </center>

</div>

Link to comment
https://forums.phpfreaks.com/topic/39493-links-inside-div-not-working-in-ie/
Share on other sites

At first glimps I must say i agree with fenway. Try playing with you z-index'es, I see your container-div has a index of 100, but none of your other layers has been assigned an index.

 

On the other hand, I suspect you have done some trickery to get your transparent png background working in iE. Maybe :

 

_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale src='http://www.something.png');

 

Is this the case or have you used some other magic, like a js-hack to get it working? If so your problem is a familiar one with several solutions, but I wont get into them unless it's the actual case here.

 

Just try to remove your transparent png background anyways, and report back if it changes anything.

 

 

 

 

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.