This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var isOpera = !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0; | |
// Opera 8.0+ (UA detection to detect Blink/v8-powered Opera) | |
var isFirefox = typeof InstallTrigger !== 'undefined'; // Firefox 1.0+ | |
var isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0; | |
// At least Safari 3+: "[object HTMLElementConstructor]" | |
var isChrome = !!window.chrome && !isOpera; // Chrome 1+ | |
var isIE = /*@cc_on!@*/false || document.documentMode; // At least IE6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$._getConnector = function() { | |
if ($._support.w3cXMLHTTP) { | |
return new XMLHttpRequest(); | |
} else { | |
return new ActiveXObject("Microsoft.XMLHTTP"); | |
} | |
}; | |
$._configureConnector = function(connector, callback) { | |
connector.onreadystatechange = function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function insertAfter(newChild,refChild){ | |
varparElem=refChild.parentNode; | |
if(parElem.lastChild==refChild){ | |
refChild.appendChild(newChild); | |
}else{ | |
parElem.insertBefore(newChild,refChild.nextSibling); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pics | |
{ | |
background:none; | |
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="images/xx.png"); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function setHomepage() { if (document.all) { | |
document.body.style.behavior = 'url(#default#homepage)'; | |
document.body.setHomePage('http://www.jq-school.com') | |
} else if (window.sidebar) { | |
if (window.netscape) { | |
try { | |
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect") | |
} catch(e) { | |
alert("该操作被浏览器拒绝,如果想启用该功能,请在地址栏内输入 about:config,然后将项 signed.applets.codebase_principal_support 值该为true") | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function AddFavorite(sURL, sTitle) { | |
try { | |
window.external.addFavorite(sURL, sTitle) | |
} catch(e) { | |
try { | |
window.sidebar.addPanel(sTitle, sURL, "") | |
} catch(e) { | |
alert("加入收藏失败,请使用Ctrl+D进行添加") | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<meta name="HandheldFriendly" content="true"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
::selection { | |
color: #000000; | |
background-color: #FF0000; | |
} | |
::-moz-selection { | |
color: #000000; | |
background: #FF0000; | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Smartphones (portrait and landscape) ----------- */ | |
@media only screen | |
and (min-device-width : 320px) | |
and (max-device-width : 480px) { | |
/* Styles */ | |
} | |
/* Smartphones (landscape) ----------- */ | |
@media only screen | |
and (min-width : 321px) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html:first-child>b\ody Selector { | |
property:value; | |
} | |
@media all and (min-width:0) { | |
Selector { | |
property: value; | |
} | |
} |