|
Posted by Brian Cryer on 10/17/06 08:33
"dorayme" <doraymeRidThis@optusnet.com.au> wrote in message
news:doraymeRidThis-42A6A8.15474017102006@news-vip.optusnet.com.au...
> In article <45345e34$0$30749$c3e8da3@news.astraweb.com>,
> John Salerno <johnjsal@NOSPAMgmail.com> wrote:
>
>> I know a lot of you guys are hardcore about writing proper HTML/CSS, so
>> I'm curious what you feel Javascript should be used for specifically.
>> Everyone seems to say not to use it for anything necessary, since it can
>> be turned off. I know sometimes you can use CSS for certain effects
>> instead. So what are the real, valid uses of Javascript? Does anybody
>> think you just shouldn't use it? Or are there other, more advanced uses
>> of JS that I'm not thinking of?
>>
>> Thanks.
>
> A real valid use of it would be to create a pop up window, a drop
> down menu, in short anything at all that might make the site easy
> and pleasant to use. So there is no set of things that can be
> defined to be real and valid. Much of the objection to it are
> that some people have it off or not on auto for various reasons,
> some to do with security.
>
> To take the case of a drop down menu, if javascript is employed,
> then at least the primary class "Sweets Recipes" (which drops
> down to reveal the different types of sweet recipes) should be a
> normal html link that takes you to a page that has, in turn, a
> set of links to the different sweets, perhaps with the actual
> first recipe there as well and a sub menu to the rest.
Regarding a drop down menu, this can be done quite successfully using just
css and no JavaScript. Take a look at http://www.grc.com/menu2/invitro.htm.
--
Brian Cryer
www.cryer.co.uk/brian
Navigation:
[Reply to this message]
|