behaviours

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can someone please tell me how to apply a behaviour to hide a drop down menu
using a transparent .gif file.
I can see the change property box but what gets entered into them to produce
this affect.
 
OK, I give. I'm confused.

If the gif file is transparent, how can it hide anything??

?:-)

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
There's a complete procedure that includes this technique at:

Creating DHTML Menus in FrontPage 2003
http://www.interlacken.com/winnt/tips/tipshow.aspx?tip=28

Jim Buyens
Microsoft MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Windows SharePoint Services Inside Out
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
There's a technique for hiding drop-down menu leaves where you:

o Display each leaf at, say, z-index 2.
o Display a large transparent GIF behind the whole DHTML menu structure
(i.e. at z-index 1).

Then, whenever the transparent GIF gets an onmouseover, you hide all the
drop-down menu leaves.

Note that you can't reliably use onmouseout to detect when the mouse moves
outside a dropdown menu leaf. This is because in a structure like:

<div>
<table>
<tr><td><a href="hither.htm">Hither</td></tr>
<tr><td><a href="yon.htm">Yon</td></tr>
</table>
</div>

the <div> gets :

o An onmouseover event when the mouse enters it, which is fine.
o An onmouseout event when the mouse moves outside it, which is fine.
o An onmouseout event when the mouse moves over the table, which is
*way* inconvenient.

Basically, when the table gets onmouseover, the div has to get onmouseout,
because the mouse can only be over one element at a time. Because of this,
you can't use the div's onmouseout to hide the div. You have to use
onmouseover on some element outside the div, such as a transparent gif
underlaying the whole menu.

Jim Buyens
Microsoft MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Windows SharePoint Services Inside Out
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
Thanks for that Jim I had already been to interlacken after reading some
other posts and since then I had a problem making my iimage to transparent.
Revisiting this site forced me to look again at what I had been doing and
this proved to be where the answer lay. I had not applied a behaviur to the
main menu hyperlink to make the .gif layer visible and therefore no matter
what I tried it wa never going to happen. So in short you fixed my problem -
many thanks keep up the good work with the service you provide for everyone
 
Back
Top