Does this work in IE7?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Does this work in IE7?

Post by Ambush Commander »

Code: Select all

#toc ol ol { list-style-type:lower-alpha; }

#toc ol > li:before {content:counter(h2) ". "; counter-increment:h2; margin-right:1em;}
#toc > #innertoc ol {counter-reset:h2; list-style-type:none;}
#toc ol ol > li:before {content:counter(h2) "." counter(h3) ". "; margin-right:1em; counter-increment:h3;}
#toc > #innertoc ol ol {counter-reset:h3; list-style-type:none;}
For IE6 and under, who don't support 'content', I fall back on a reasonably good looking numbers to alphabeticals scheme. For Firefox and Opera, I do a nice 1, 1.1, 1.2, 1.3 numbering scheme, overloading the previous declaration with direct child selectors, which IE6 does not support. But I don't have a copy of IE7 on hand, and I don't know: does this still work in IE7 too?

Related note: how would I install IE7 without nuking IE6?
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Post by JAB Creations »

If you post a url or a full page of code I'll be glad to test it out for you. :)
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post by Maugrim_The_Reaper »

I don't have IE7 just yet...

On your related note, I did some checking. There are a few websites offering standalone versions of IE6 down to IE5. Presumably once IE6 is nuked by an upcoming Windows Update, you can still download and install the standalone versions of IE. These are *not* Microsoft supported - purely created by some inventive folk with too much time on their hands...;)

http://en.wikipedia.org/wiki/Internet_E ... t_Explorer
http://tredosoft.com/Multiple_IE
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

http://hp.jpsband.org/comparison.html

It's a bit of cool JavaScript auto-Table of Contents generation.
nickvd
DevNet Resident
Posts: 1027
Joined: Thu Mar 10, 2005 5:27 pm
Location: Southern Ontario
Contact:

Post by nickvd »

No, Unfortunately they didn't add the content (and probably the :after pseudo tag)...
matthijs
DevNet Master
Posts: 3360
Joined: Thu Oct 06, 2005 3:57 pm

Post by matthijs »

For more info on the standalones:
http://www.positioniseverything.net/art ... ltiIE.html

And evolt also has all the standalon's up and including ie6
http://browsers.evolt.org/?ie/32bit/standalone
nickvd
DevNet Resident
Posts: 1027
Joined: Thu Mar 10, 2005 5:27 pm
Location: Southern Ontario
Contact:

Post by nickvd »

Has anyone been able to install IE7 on linux? With it being pushed out to all sp2 clients next month, the usage stats should start to jump dramatically so testing with it should be a priority...
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

Ah, so content still doesn't work in IE7. Does the fallback alphabetic list item style work? (Bites bullet and installs IE7)
nickvd
DevNet Resident
Posts: 1027
Joined: Thu Mar 10, 2005 5:27 pm
Location: Southern Ontario
Contact:

Post by nickvd »

I posted a screenshot here It fails completely, no bullets whatsoever (i smell an ie only stylesheet coming)

... It looks great in firefox though! :)
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

Darn it! :-( Well, at least it's still usable.
Post Reply