PDA

View Full Version : Is htchover Javascript?



BSM2049
July 28th, 2008, 06:12 PM
I was elated to find a Cascading Navigational Menu that worked on CSS alone, and all the tutorials I ran into gloated on the fact that it was just CSS and not Javascript.

Lately, however, I found a thread on here, I can't remember which one, that had posed a question about the li's not working, and one of the responses referenced the hover.htc file and called it Javascript.

From what I understood and read up on the CSS Navigational Cascading Menu, it wasn't running on Javascript.

So what's up?

I was pretty proud making a Navigational Menu on my website that felt cleaner and safer, but now I am not so sure.

I'd rather not use Javascript on my site because I want it to be accessible to everyone, and not everyone in my target audience will know what to do when asked to enable Javascript or even know what it is.

Should hover.htc remain in my repitiore of tools, or should I chuck it and find something else? Is there something else?

Here is a link to my site that uses the CSS Cascading Menu:

WKU Recycling 3.0 (http://www.wku.edu/%7Emarkanthony.echipare/3.0/WKU_Recycling.index.php)

*note: The Cascading is only viewable outside of IE. I tried to fix it for IE, but something kept bugging up and I have not found it yet. So I disabled the child links and just left the parents.

Here is the old site that runs off a Javascript Spry Sheet from Dreamweaver, ick:

WKU Recycling 1.0 (http://www.wku.edu/recycling)

simplistik
July 29th, 2008, 10:42 AM
Well that's the thing, your Cascade doesn't work if it's not cross browser compatible. The only reason people use Javascript in their drop down is BECAUSE of IE. All other browsers will natively support the CSS functionality. So when you say you did it w/o JS, you really didn't since all the JS actually should do is account for IE.

Any other drop down menu that uses it's core JS outside of the scope to purely fix the IE flaws, is terribly convoluted and should be tossed in a fire.

Of course there are some drop downs that have animations on them, so I suppose that's OK, but that's also optional.

Also, the answer to your thread question is, yes, htc is javascript/dom used for IE only
http://msdn.microsoft.com/en-us/library/ms531018(VS.85).aspx