"Yvan J. Gagnon" <yv**@ideasdesign.com> wrote in message
news:cb**************************@posting.google.c om...
I must say that I'm a little confused here. Fireworks generates
and integrates both client-side and server-side javscript for
the dhtml menus, and I'm not sure which of the two I should be
adding additional markup to, or specifically what markup I should
be adding. And are you guys saying that it will have to be
approached differently for both Netscape and IE?
You would not necessarily have to take a different approach for
different browsers (don't think in terms of "both" there are many
distinct browsers in use these days) as the approach that Martin Honnen
originally outlined will work with most, if not all, current JavaScript
capable browsers. The - addEventListener - and - attachEvent - methods
are only significant if you want to be able to attach more than one
event handling function to an element at the same time (and even then
they are not strictly necessary in order to have multiple event handling
functions, but that is fairly advanced JavaScript).
If you don't know how to implement Martin's suggestion you may have a
problem. No one will be able to tell you whether it would be better
implemented in the HTML output by the server or in the JavaScript
without being able to see and understand both. Unfortunately Macromedia
products tend to output massively bloated HTML and poor and garbled
JavaScript. I for one am not willing to devote any of my spare time to
wading through Macromedia code in order to try to extract meaning from
it. You could post the URL of a working on-line example and see if
anyone was interested in taking a look, you might get lucky.
The situation is that the people who use Macromedia web authoring
products do not tend to have the technical skills to comprehend their
output and the people who have the technical skills do not tend to use
Macromedia products to do what they can do better by hand. If an overlap
exists it is as likely to be represented on a Macromedia newsgroup as
here (though what I have seen of JavaScript on Macromedia newsgroups is
just an endless parade of dubious hacks).
Richard.
--
Example JavaScript DOM listings for: Opera 7.11,
Mozilla 1.2 and ICEbrowser 5.4
<URL:
http://www.litotes.demon.co.uk/dom_root.html >