Image Display on Mouseover not Working in IE7

This is a discussion on "Image Display on Mouseover not Working in IE7" within the JavaScript Forum section. This forum, and the thread "Image Display on Mouseover not Working in IE7 are both part of the Program Your Website category.



 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1  
Old Jan 16th, 2007, 17:43
New Member
Join Date: Jan 2007
Location: Alabama
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Image Display on Mouseover not Working in IE7

Please help with this frustrating problem. I apologize for not knowing for sure, but I think this is javascript that I'm working with. If it is not javascript that I am using, please let me know and I will post this problem in the correct forum. I am by no means an expert and with this problem, I don't even know where to begin to fix it!

On my website, I have a page that displays images when you mouse over a text link. I also have it as a clickable link. The address is http://www.paigebrennan.com/reviews.htm

I did not do this with the mouseover attribute in Dreamweaver. I used some javascript coding from a website (I think).

In lower versions of IE, as well as FF and Netscape, when you mouse over a link, my image pops up where specified (see code below) and stays there until you move on to the next link.

However, in IE7, it displays only half of the image. I have included an example of one of my links below. It is the link for "Capitol Inn" on my page. Can anyone suggest why IE7 is only displaying half of the linked image?

Thanks for your help!

<td><div align="left" class="style15"><span class="style11"><a href="reviews/capitolinn.jpg?AID=/20060330/GO02/603300310/1025" target="_blank"><a href="reviews/capitolinn.jpg" onmouseover="this.T_FIX = [600, 200]; this.T_STICKY=true; return escape('<img src=\'reviews/capitolinn.jpg\' width=\'600\'>')">Capitol Inn </a></span></div></td>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jan 17th, 2007, 08:43
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,668
Blog Entries: 1
Thanks: 1
Thanked 4 Times in 4 Posts
Re: Image Display on Mouseover not Working in IE7

Code: Select all
<div style="position: absolute; z-index: 1010; left: 400px; top: 200px; width: 300px; visibility: visible; opacity: 1;" id="tOoLtIp014">
 <table width="300" cellspacing="0" cellpadding="0" border="0" bgcolor="#003399" style="background: rgb(0, 51, 153) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">
  <tbody>
   <tr>
    <td>
     <table width="100%" cellspacing="1" cellpadding="3" border="0">
      <tbody>
       <tr>
        <td bgcolor="#e6ecff" align="left" style="padding: 3px; text-align: left;">
         <font face="arial,helvetica,sans-serif" color="#000066" style="color: rgb(0, 0, 102); font-family: arial,helvetica,sans-serif; font-size: 11px; font-weight: normal;">
          <img width="800" src="reviews/bestof2006.jpg"/>
         </font>
        </td>
       </tr>
      </tbody>
     </table>
    </td>
   </tr>
  </tbody>
 </table>
</div>
It's your fault matey. That's the perfect recipe for disaster. You have:
div 300px width;
> table 300px width;
> > table 100% width;
> > > img 800px width;

Something's gotta give in that situation, either the tables get strectched to accomodate the large image or the image isn't displayed properly. My opinion is to remove the layers and apply the effect to the image alone. IE.: show/hide and position the image itself, rather than the layers containing the image.

On another note, I have a standard screen resolution and your site is too wide for it. I am assuming you have a large monitor but when it comes to making websites, you must make it accessible to the bulk of web users.
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)

Last edited by spinal007; Jan 17th, 2007 at 08:45.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jan 18th, 2007, 14:52
New Member
Join Date: Jan 2007
Location: Alabama
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Re: Image Display on Mouseover not Working in IE7

Thank you so much for taking the time to help me figure this out. I am baffled, however. I checked my page and can find the code you mentioned (below) nowhere! I simply couldn't find where it said width 300 or 100%.

Code: Select all
<div style="position: absolute; z-index: 1010; left: 400px; top: 200px; width: 300px; visibility: visible; opacity: 1;" id="tOoLtIp014">

<table width="300" cellspacing="0" cellpadding="0" border="0" bgcolor="#003399" style="background: rgb(0, 51, 153) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">

<tbody>

<tr>

<td>

<table width="100%" cellspacing="1" cellpadding="3" border="0">
Oddly, I never found any of the -moz lines anywhere, either.

What you said made sense. So, I did a screenshot of my problem page and trimmed it to just the truncated picture. And the picture is exactly 300px wide. I checked my original page file, looking for the problem code you found, and I checked the page source in all browsers (especially FF, since that's what you used to look at it).

I apologize for my ignorance, but could you tell me where you found this code on my page? I'd love to fix the problem.

Also, your suggestion of how to fix it (My opinion is to remove the layers and apply the effect to the image alone. IE.: show/hide and position the image itself, rather than the layers containing the image.) was a little above my head. I am not familiar with what you mean by "layers" or positioning the image itself. Could you dumb it down a little or give me an example of what that code would look like?

Thank you so much for your time and help!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jan 18th, 2007, 16:05
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,668
Blog Entries: 1
Thanks: 1
Thanked 4 Times in 4 Posts
Re: Image Display on Mouseover not Working in IE7

Hi,
That html is being generated by a script file called "wz_tooltip.js".
That's why you couldn't find it on the page. It is 'put there' by the scrpit when the page loads.

Here's the documentation for ws_tooltip.js:
http://www.walterzorn.com/tooltip/tooltip_e.htm
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jan 18th, 2007, 19:42
New Member
Join Date: Jan 2007
Location: Alabama
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Smile Re: Image Display on Mouseover not Working in IE7

Thank you! Thank you! Thank you!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Jan 22nd, 2007, 09:51
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,668
Blog Entries: 1
Thanks: 1
Thanked 4 Times in 4 Posts
Re: Image Display on Mouseover not Working in IE7

You're welcome! You're welcome! You're welcome!
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
ie7, internet explorer 7, javascript, mouseover

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
image/text move on mouseover aprilpgb22 JavaScript Forum 1 Jun 18th, 2008 22:08
help..image wont display shotokan99 PHP Forum 0 Jun 27th, 2007 03:41
Display Image Problem Matc JavaScript Forum 1 Jun 17th, 2007 23:32
Image link mouseover QUIRK fuzzee Web Page Design 3 Jun 14th, 2007 15:08
MouseOver for Form Submit Button image? masonbarge JavaScript Forum 4 Oct 31st, 2006 11:58


All times are GMT. The time now is 14:40.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42