HighDots Forums  

Swap image mess

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Swap image mess in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
sauerwein
 
Posts: n/a

Default Swap image mess - 12-06-2007 , 11:39 AM






I have a problem on some (not all) pages of the site I am working on:
http://www.tour-a-tour.org/

The navigation bar at the top of the page, and the other one at the bottom are
really behaving strangely.
On this particular page, for instance:
http://www.tour-a-tour.org/pages/cuisines_d.html

If you rollover the links at the bottom of the page, on the red horizontal bar
(album, agenda etc.) the links start dancing around. As it shows in the status
bar, they seem to be hesitating between two URLs. It was worse when I had
alternate text for each of these links. When I rolled the mouse over them, the
alternate text would pop-up and shalke the whole navigation bar up. A real
mess. I removed the alternate text, but it is still behaving strangely.

I'm sure I've done something wrong. But what?


Reply With Quote
  #2  
Old   
Gary White
 
Posts: n/a

Default Re: Swap image mess - 12-06-2007 , 12:25 PM






On Thu, 6 Dec 2007 16:39:08 +0000 (UTC), "sauerwein"
<webforumsuser (AT) macromedia (DOT) com> wrote:

Quote:
http://www.tour-a-tour.org/pages/cuisines_d.html

If you rollover the links at the bottom of the page, on the red horizontal bar
(album, agenda etc.) the links start dancing around.
The problem is because the path to the rollover images is wrong. An
example in your code is this:

<a href="#" onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('discute','','images/discute-over_12.jpg',1)"><img
src="../images/discute-out_12.jpg" name="discute" width="171"
height="25" border="0" id="discute" /></a>

Note that the onmouseover is looking in the "images" folder. It should
be looking for that folder one level up, like the onmouseout is:

<a href="#" onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('discute','','../images/discute-over_12.jpg',1)"><img
src="../images/discute-out_12.jpg" name="discute" width="171"
height="25" border="0" id="discute" /></a>

Gary


Reply With Quote
  #3  
Old   
sauerwein
 
Posts: n/a

Default Re: Swap image mess - 12-06-2007 , 03:30 PM



Thanks, Gary. To fix this, do you suggest that I simply correct the path manually, or should I redo the rollovers so that this are clear and clean?

Reply With Quote
  #4  
Old   
Gary White
 
Posts: n/a

Default Re: Swap image mess - 12-06-2007 , 06:58 PM



On Thu, 6 Dec 2007 20:30:22 +0000 (UTC), "sauerwein"
<webforumsuser (AT) macromedia (DOT) com> wrote:

Quote:
Thanks, Gary. To fix this, do you suggest that I simply correct the
path manually, or should I redo the rollovers so that this are clear
and clean?
It shouldn't matter which method you use. Just do whatever is quicker
and easier for you. I would think that would be code view. I just
noticed that you apparently got it corrected, but I note that you have
the same error in the preload images call in the <body> tag. You might
want to fix that as well.

Gary


Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.