[新着] Webテンプレートを仮オープンしました
var Info={
Browser: {
IE: !!(window.attachEvent && !window.opera),
Opera: !!window.opera,
WebKit: navigator.userAgent.indexOf('AppleWebKit/') > -1,
Gecko: navigator.userAgent.indexOf('Gecko') > -1 && navigator.userAgent.indexOf('KHTML') == -1
},
BrowserFeatures: {
XPath: !!document.evaluate,
ElementExtensions: !!window.HTMLElement,
SpecificElementExtensions:
(document.createElement('div'). __proto__ !==
document.createElement('form').__proto__)
},
emptyFunction: function() { }
}var o = new Object;
o.a = 1;
o.b = 'one';
o.c = new Object;
o.c.a = 2;
o.c.b = 'two';
// ↓
var o = { a : 1, b : 'one', c : { a : 2, b : 'two'} };
var Info = new Object;
Info.Browser = new Object;
Info.Browser.isIE = ('ActiveXObject' in window);
Info.Browser.isOpera = ('opera' in window);
Info.Browser.isSafari = ('konqueror' in window);
Info.Broser.isGecko = ('netscappe' in window) && ('GeckoActiveXObject' in window);
Info.BrowserFeatures = new Object;
Info.BrowserFeatures.hasXPath = document.implementation.hasFeature ('XPath', '3.0');
Info.BrowserFeatures.hasElementExtensions = (typeof HTMLElement != 'undefined');
Info.emptyFunction = function () { ; };var Info = {
Broser : {
isIE : ('ActiveXObject' in window),
isOpera : ('opera' in window),
isSafari : ('konqueror' in window),
isGecko : ('netscappe' in window) && ('GeckoActiveXObject' in window)
},
BrowserFeatures : {
hasXPath : document.implementation.hasFeature ('XPath', '3.0'),
hasElementExtensions : (typeof HTMLElement != 'undefined'),
},
emptyFunction : function () { ; }
};