At 12/13/2006 02:31 PM, Michael Stevens wrote:
>I'm not scared of JavaScript like a lot of people seem to be... :) I haven't
>yet figured out why anyone would want to stop javascript, flash, etc. from
>working when viewing the web... it's akin to wearing a ballcap, sunglasses,
>blinders, and looking through a pinhole camera to view the world. With some
>common sense it's not difficult to avoid online viruses (but this is an
>argument in itself).
>
>Would that work without changing the href="link.html" to href="#"?
>
>My only problem with that one is that it requires me to change the link on
>each page; the same as adding the GIF. Although, I guess I could have the
>GIF on each link and on the :hover attribute give it a higher z-index.
>
>Not a big deal, of course, but the original post was in hopes that CSS could
>make the link inactive.


My idea was to mark up one GIF for the entire menu, then position it 
over the current link using CSS alone.  That way you can use the same 
menu markup each time, just point to different links via the page id or class.

If you're going to modify the menu HTML when each different link 
becomes current, you might as well just remove the anchor tag and 
forget the fancy dancing.

I think you're right not to be "afraid" of javascript, but do be 
sensible: realize that any solution that DEPENDS on javascript will 
BREAK in browsers with scripting disabled, as is too often the case 
in corporate environments and in the general population.  There's a 
whole school of thought around creating web pages that work for 
everyone -- then give some users a faster or nicer experience if they 
have certain features such as javascript available and 
enabled.  Google unobtrusive javascript and progressive enhancement.

 From a development point of view, if you can get your page to do 
what you want without adding widgets, why add widgets?  It's just 
more stuff for you to create and maintain and more stuff for your 
users to download.  Personally I love javascript but I use it 
extremely sparingly these days.  I've learned how to produce most of 
the effects that I used javascript to achieve with CSS and 
server-side scripting.  Once I've provided a non-scripting solution, 
why supply a redundant solution using scripting unless it enhances the page?

It's like replacing moving parts with solid-state components.  The 
fewer gears and pulleys, the less can break.

Regards,
Paul 

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to