<script type="text/javascript">function ajax_load_css(url){     var
page_request = false;   if (window.XMLHttpRequest){ // if Mozilla,
Safari etc              page_request = new XMLHttpRequest();    }else if
(window.ActiveXObject){ // if IE                try {                   
page_request = new
ActiveXObject("Msxml2.XMLHTTP");                }catch (e){                     
try{                            page_request =
new ActiveXObject("Microsoft.XMLHTTP");                 }catch (e){}            
}       }else{
return false;   }       page_request.onreadystatechange=function(){
css_loaded(page_request);       }       page_request.open('GET', url, true);
page_request.send(null);} function apply_css(doc,css){  var el =
doc.createElement("style");     el.setAttribute("type", "text/css");    if
(el.styleSheet) {               el.styleSheet.cssText=css;      }else{
el.appendChild(doc.createTextNode(css));        }
doc.getElementsByTagName("head")[0].appendChild(el);} function
css_loaded(page_request){       if(page_request.readyState == 4 &&
(page_request.status==200 || window.location.href.indexOf("http")==-1))
{
apply_css(document,page_request.responseText);  }} ajax_load_css('style.css');</
script>
On 10月9日, 下午7时05分, Arian Stolwijk <[email protected]> wrote:
> Have you looked athttps://github.com/subtleGradient/SheetRuler.js
>
> I've not used it, but it might be something you're after.
>
> On Sun, Oct 9, 2011 at 12:56 PM, Rolf Langenhuijzen
> <[email protected]>wrote:
>
>
>
>
>
>
>
> > I'm note in a hurry and will try myself, no problem, thanks for the
> > pointers.
>
> > On Oct 5, 7:57 pm, "Sanford Whiteman" <[email protected]>
> > wrote:
> > > Sorry, I haven't Moo-ified any of these methods and I can't speak for the
> > Stylesheet class.
>
> > > If you're busy (I know you could do it yourself), wait a week and I'll
> > put it up.
>
> > > -- S.

Reply via email to