7 thoughts on “JavaScript CSS Parser for Custom Properties

  1. I had the same thought and came up with this:
    http://youngisrael-stl.org/wordpress/blogfiles/cssparser/cssparser.jquery.js
    You can see it discussed at
    http://youngisrael-stl.org/wordpress/2007/10/19/css-parser-in-javascript/
    though I haven’t worked on it a while. Help would be appreciated.

    I found this blog entry because I’m thinking about it again and googled to see if anyone else did it. For a real sophisticated take, look at Dean Edward’s ie7.js (http://code.google.com/p/ie7-js/).

  2. Malih and Daniel, thanks for the great input. Both scripts look interesting. Actually the idea started partly from Dean Edwards IE7 script, but I am not sure whether or not is a generic solution easily adaptable for all major browser vendors, should look into that as well.

  3. I got the CSS parser working (FF 3, IE 7, Safari 3, Opera 9, all under Windows Vista). No real documentation yet, but you can see it in action at
    http://youngisrael-stl.org/wordpress/blogfiles/cssparser/cssparsertest.php

    with the Javascript code in
    http://youngisrael-stl.org/inc/jquery.cssparser.js

    You can do things like
    h1 {
    -jquery-gradient: white blue vertical;
    -jquery-corners: round 10pt;
    }

    and it is livequery-aware, so it can keep up with changes in the DOM

  4. hi ..
    i wanna do this wihin .Net framework or JavaScript Programming .. without using any JavaScript Library !
    any one hv idea about this ?

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>