欢迎访问杭州萧山卓微电子官方网站!在这里,您可以找到我们的断线检测器、断线传感器以及纬纱检测器等产品。英戈尔电子致力于为您提供高品质的电子元器件和解决方案,以满足您的各种需求。
为了方便您收藏我们的网站,我们提供了两种方法:一种是通过浏览器外部插件添加到收藏夹,另一种是将网站设为首页。如果您使用的是谷歌浏览器或其他支持该功能的浏览器,可以通过以下代码实现添加收藏夹的功能:
function AddFavorite(sURL, sTitle) {
try {
window.external.addFavorite(sURL, sTitle);
} catch (e) {
try {
window.sidebar.addPanel(sTitle, sURL, "");
} catch (e) {
alert("加入收藏失败,请使用Ctrl+D进行添加");
}
}
}
如果您使用的是Firefox浏览器或其他支持将网站设为首页的浏览器,可以通过以下代码实现:
function SetHome(url)
{
if (document.all) {
document.body.style.behavior='url(#default#homepage)';
document.body.setHomePage(url);
} elseif (window.sidebar) {
if(window.netscape) {
try {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
} catch (e) {
throw new Error('Could not enable privileges.');
}
} else if (window.opera && window.navigator.userAgent.indexOf('MSIE') === -1) {
/* Opera */
try {
new ActiveXObject('Sidebar.Nav');
new ActiveXObject('Sidebar.Shell');
} catch (e) {
alert('Please enable the Internet Explorer browser helper cache');
}
} else {
/* IE */
var ie = document.createElement('IFRAME');
ie.setAttribute('src', 'http://www.example.com/');
ie.setAttribute('frameBorder', '0');
ie.setAttribute('scrolling', 'no');
ie.setAttribute('marginWidth', '0');
ie.setAttribute('marginHeight', '0');
ie.setAttribute('width', '1');
ie.setAttribute('height', '1');
var si = document.getElementsByTagName('BODY')[0];
si.appendChild(ie);
}
} else if (window.screenTop !== null || window.innerHeight) || (window.x && window.y) || (window['mozInnerScreenY'] !== undefined) || (window['mozScreenY'] !== undefined) || (window['webkit','message','chrome']) || (window['webkit'], 'scrollY')) {'*' in document && document['scrollingElement'] && document['scrollingElement']['scrollTop'] || window['pageYOffset'] || document['documentElement']['scrollTop'] || document['body']['scrollTop'] || this['pageYOffset'] || this['scrollTop']} else return false; // <-- for Safari only please do not translate or use this method in production as it is very fragile due to Apple's implementation of scrolling elements and the lack of support by older browsers in their implementations of scrollY and pageYOffset --><![CDATA[try{ var a = document.getElementsByTagName('script')[0]; if(a){for(var j = a.attributes.length-1; j>=0; j--){if((a.attributes[j].nodeValue||a.attributes[j].value).indexOf("DOCTYPE")!==-1&&typeof b=="undefined")b=true;}}if(!b||typeof b=="string"&&b==="false"){if(document["documentElement"]&&document["documentElement"]["innerHTML"]&&document["documentElement"]["innerHTML"]!==null&&document["documentElement"]["innerHTML"]!=="")return false;if(document["body"]&&document["body"]["innerHTML"]&&document["body"]["innerHTML"]!==null&&document["body"]["innerHTML"]!=="")return false;return true;}else{throw new Error("Unsupported browser");}}}catch(e){}]]()}};SetHome('/'); // --> end of Safari specific code<br></p><p>感谢您对英戈尔电子的关注和支持,如有任何疑问或需要进一步了解,请随时联系我们。</p>';