Please indicate which version of the book you are using when posting questions.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Beginning Dreamweaver MX/MX 2004 MX ISBN: 978-0-7645-4404-0; MX 2004 ISBN: 978-0-7645-5524-4 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
Hi, have created the layers as per the instructions on pg 184 onwards
and all is well except when i view the news layer in a browser it doesn't hide when i move the mouse away it stays there until i move the mouse off the page entirely and then disappears. I have tried it in 2 browsers and the effect is the same.
I checked/ changed the behavior panel settings. I have even deleted the layer all together and started again. Has anyone got any idea what i may be doing wrong? Thank you.
Is your problem the same as the one in this thread?
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Trash by KoRn (Track 14 from the album: Issues) What's This?
No it's a different problem really.My problem is the layer associated with the news button never goes away until you move the mouse out of the browser completely whereas all the other layers work perfectly (appearing on mouse over and disappearing on mouse out). The news layer stays where it is even when i activate the other layers. The code associated with it is as follows, don't know if you can spot a problem but thanks for your help.
<body onload="MM_preloadImages('images/images/swap3.gif','images/images/swap4.gif')" onmouseover="MM_showHideLayers('newslinkinfo','',' show')" onmouseout="MM_showHideLayers('newslinkinfo','','h ide')">
<div id="regionslinkinfo" style="position:absolute; left:200px; top:320px; width:250px; height:50px; z-index:2; background-color: #999999; layer-background-color: #999999; border: 1px none #000000; visibility: hidden;" class="link_info" onmouseover="MM_showHideLayers('regionslinkinfo',' ','show')" onmouseout="MM_showHideLayers('regionslinkinfo','' ,'hide')">Cooking news from the different regions of the world </div>
<div id="contactuslink" style="position:absolute; left:200px; top:360px; width:250px; height:50px; z-index:3; visibility: hidden;" class="link_info" onmouseover="MM_showHideLayers('contactuslink','', 'show')" onmouseout="MM_showHideLayers('contactuslink','',' hide')">Contact us with any of your tips or thoughts or recipies </div>
<div id="newslinkinfo" style="position:absolute; left:200px; top:280px; width:250px; height:50px; z-index:1; background-color: #999999; layer-background-color: #999999; border: 1px none #000000; visibility: hidden;" class="link_info" onmouseover="MM_showHideLayers('newslinkinfo','',' show')" onmouseout="MM_showHideLayers('newslinkinfo','','h ide')">A page of news and events from around the culinary word </div>
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="images/images/topbkg.gif">
<tr>
From what I can see from this code, it looks like you applied the behavior for the news button to an incorrect object. In your code, I can see onmouseover and onmouseout attached to the <body> element, not to a <div> with an id of newslinkinfo.
That would explain why the code is only called when you move your mouse away from the window entirely. Reapply the behavior to the button /div for news, remove them from the <body> tag and it should work, I think.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Death Valley '69 by Sonic Youth (Track 8 from the album: Bad Moon Rising) What's This?
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Music Of The Mind by Jamiroquai (Track 5 from the album: Emergency On Planet Earth) What's This?