사용자:Itsurea/common.js: 두 판 사이의 차이

편집 요약 없음
편집 요약 없음
2번째 줄: 2번째 줄:
   loadCSS = function(href) {
   loadCSS = function(href) {
     var cssLink = $("<link rel='stylesheet' type='text/css' href='"+href+"'>");
     var cssLink = $("<link rel='stylesheet' type='text/css' href='"+href+"'>");
     //$("head").append(cssLink);  
     alert(href);
    $("head").append(cssLink);  
  };
  };
   
   

2015년 5월 30일 (토) 04:04 판

jQuery(document).ready(function($){
  loadCSS = function(href) {
     var cssLink = $("<link rel='stylesheet' type='text/css' href='"+href+"'>");
     alert(href);
     $("head").append(cssLink); 
 };
 
 // load the css file 
 loadCSS("darklibre.css");

});