Hey,
Not sure who's working today, but I figured I would give it a shot.
I am rewriting a menu for a site and I am trying to get it as small as
possible. Needs to work for NN 4+ IE 4+ minimum. I figured I would write it myself,
rather than use an api, so I can get back into some good js, and to make it more
specific to what I am doing.
Now, I have written functions to figure out where the parent menu button is
located, and I know how to move the div with the menu items in it around, but what I
can't figure out how to do is create a div with a constructor. Like I would do with
an image preloader?
Is it possible just to do myDiv = new Div();?
If not is createElement() the best way? Inner/outerHTML? I need it to be fast
and small.
Also, do you think it's best to do browser detection on the server or client
side? I have done it both ways before and had good results with both. Just with the
requirement to support NN 4 (ugggghhhhh) I am going to have to create a layer rather
than a div, and I am pretty sure I can do that on the fly easily, I think I even have
a good snippet from Critter around here for that somewhere.
Any way any tips or pointers would be much appreciated.
Timothy Heald
Assistant Webmaster
Overseas Security Advisory Council
U.S. Department of State
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=5
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=5
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5