Re: for Mr.Buyens re: pop-out menus or anyone else
From: Jim Buyens (news_at_interlacken.com)
Date: 06/03/04
- Next message: Jack Brewster: "Re: Can't change font size"
- Previous message: Tom Pepper Willett: "Re: Convert entire site to PDF document or some other printable form?"
- In reply to: Jon Spivey: "Re: for Mr.Buyens re: pop-out menus or anyone else"
- Messages sorted by: [ date ] [ thread ]
Date: 3 Jun 2004 16:22:34 -0700
"Jon Spivey" <jons@mvps.org> wrote in message news:<OcHGNiYSEHA.2716@tk2msftngp13.phx.gbl>...
> > In effect, the mouse can only be over one element at a time. It can't
> > be over *both* the hyperlink *and* the layer. Instead, the mouse is
> > over the top-most element and *not* over any elements stacked below
> > the top one.
>
> Jim,
> although you're right in the effect of applying moueout to a div - as Ron
> explained in his reply when he quoted me. The why is not correct, and to get
> an understanding of how layers/events work it's useful to understand not
> just what happens but why. The only html objects that have a any kind of
> concept of being on top, or being "stacked", are layers (positioned divs) ,
> links, text etc cannot be on top of anything else. The reason this happens
> is because when you apply a mouseout event you're saying when the mouse
> moves out of anything within this tag. For example
> <p onmouseout="alert('mouse')">
> <span>stuff</span>
> <span>stuff</span>
> </p>
Right, I was using "over" and "contained by" interchangabley. I didn't
mean "over" in the context of, say, z-orders.
>
> The mouseout is applied to the <p> tag although it fires when you mouseout
> of the spans - there's no layers here but the effect is the same. Obviously
> the <p> and <span> are not "on top" of each other, in other words they're
> not "stacked" When you think about it this is logical behaviour - one could
> script what happens to an event but in the absence of script the event is
> going to apply to anything within a tag.
>
> > I wanted it to use GUI commands in Design only, and that's why I went
> > with the transparent gif approach.
> >
> I believe the reason you went with that approach is because I showed you how
> to :-)
Well, you did help me with that, but at the time I did have some
alternatives. But all those alternatives required working with scripts
in Code view. The menu system at
http://www.interlacken.com/dhtmlmenu/dhtmlmenu4.htm
for example, doesn't use any transparent gif layers, doesn't use any
graphics for the rollovers, and works fine no matter where the menu
ends up on the page.
The code in that page isn't as trim as it could be, but it's bloated
enough that if I used the same techniques in a real site, I wouldn't
want to maintain it. That's why I kind of lost interest.
ASP.NET Menu from ComponentArt seems like a nice product, and my host
provides the run-time on their servers at no additional charge. But
it's really meant for .NET developers, and I haven't wanted DHTML
menus badly enough to cough up $250 for the developer license.
Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| 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)
|/---------------------------------------------------
*----------------------------------------------------
Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| 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)
|/---------------------------------------------------
*----------------------------------------------------
- Next message: Jack Brewster: "Re: Can't change font size"
- Previous message: Tom Pepper Willett: "Re: Convert entire site to PDF document or some other printable form?"
- In reply to: Jon Spivey: "Re: for Mr.Buyens re: pop-out menus or anyone else"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|