|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 | ||
|
Banned
|
Ok, I can't post the entire script because I'm designing a site for a local business, but I can post the parts that I think are the areas of interest. That said, here's the problem:
I have your basic html website, tables, pictures, bla bla bla. The menu uses a javascript onMouseOver type of script for an image flip: Located in the HEAD tag Quote:
Quote:
I'm not sure what is going on here, I've never seen this kind of problem before. If anyone can help me, please let me know. Thank you. |
||
|
|
|
|
|
#2 |
|
It can never be too quiet
Join Date: May 2004
Location: Burlington, Ontario
Posts: 1,090
|
Hi mysterio,
You wouldn't happen to have the page you're working on available on the web would you? It would be MUCH easier to anylize the issue it we could see everything at once. You could even copy what you have to notepad and attach it to the thread. Thanks, Stryker
__________________
Athlon XP 2800+ • Asus A7N8X (nVidia Nforce2) • Radeon 9600 Pro 256MB • 2x512MB KVR DDR PC3200 Dual Channel • 120GB Seagate 7200RPM 8MB • 160GB WD 7200RPM 8MB • Liteon DVD±RW DL • AOpen DVD±RW DL • Vantec Ion2 350W PSUSend me your picture for the Member Photo Gallery |
|
|
|
|
|
#3 |
|
Moderator
Staff
Premium Member
Join Date: Aug 2003
Location: Richmond, VA
Posts: 7,835
|
I'm not entirely sure I get what you're trying to say. You have a menu, which consists of the image rollovers that you have the scripts written for above. When you define the images without any JavaScript, it comes out perfectly, but when you do have the onMouseOver commands, the "bottom" table is pushed down 5 pixels. What do you mean by the bottom?
And as well, have you tried the rollovers without defining the height and width parameters? Does it work in any browser - in other words, are you testing them in MSIE? And a minor script comment - I believe you need "return true;" in its own line. kram
__________________
"For today, goodbye. For tomorrow, good luck. And forever, Go Blue!"
University of Michigan President Mary Sue Coleman |
|
|
|
|
|
#4 |
|
Banned
|
Ok, I've attached a .txt with the code, I hope it helps
|
|
|
|
|
|
#5 |
|
Banned
|
i just tested in Firefox and Netscape...the problem doesn't exist there. It seems to be only in IE.
|
|
|
|
|
|
#6 |
|
It can never be too quiet
Join Date: May 2004
Location: Burlington, Ontario
Posts: 1,090
|
Thanks mysterio,
Ok first thing to try. I notice that before and after your images there are spaces inside the table cell (starts at line 117/118). You have the "href" and the "img" tags on two seperate lines with a space at the end of each. Try changing from this: HTML Code:
<td colspan="3"> <A HREF="index.html" onMouseOver="IndexOver()" onMouseOut="IndexOff()"> <IMG NAME="index" SRC="images/index_08.jpg" WIDTH=86 HEIGHT=20 BORDER=0></A> </td> HTML Code:
<td colspan="3"><A HREF="index.html" onMouseOver="IndexOver()" onMouseOut="IndexOff()"><IMG NAME="index" SRC="images/index_08.jpg" WIDTH=86 HEIGHT=20 BORDER=0></A></td> |
|
|
|
|
|
#7 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
|
I can't tell exactly what's going on, but this may be related:
http://developer-test.mozilla.org/en...ysterious_Gaps
__________________
There are two secrets to staying young, being happy, and achieving success. You have to laugh and find humor every day, and you have to have a dream.
|
|
|
|
|
|
#8 |
|
Banned
|
Guess what Stryker? You win. lol. Just fixing the spaces in the code worked perfect. Thanks a million man! Problem solved
|
|
|
|
|
|
#9 |
|
It can never be too quiet
Join Date: May 2004
Location: Burlington, Ontario
Posts: 1,090
|
Wow, first try! That doesn't happen too often.
![]() Glad it worked. |
|
|
|
|
|
#10 |
|
Banned
|
yeah, I was kind of surprised that just putting the code on one line fixed it...I guess I learned a leason...keep your code clean, unlike your room
Thanks again Stryker. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|