function addBookMark(siteURL,siteName) { if (window.external && window.external.AddFavorite) { // Internet Explorer window.external.AddFavorite(siteURL, siteName); } else if (window.sidebar && window.sidebar.addPanel) { // Mozilla, Firefox ... window.sidebar.addPanel(siteName, siteURL, ''); } else if (window.opera && window.print) { // Opera alert("您需要手动添加到收藏夹, 使用快捷键Ctrl+D."); } else { alert("您需要手动添加到收藏夹."); } return false; } function openExternalLink(elementId) { if(!document.getElementById(elementId) && !document.getElementsByTagName) return; var links = document.getElementById(elementId).getElementsByTagName('a'); var localURL = 'http://www.2cs.com.cn'; for(i=0; i -1) { if (textBox.innerText.length < conLen) { return; } textBox.innerHTML = textBox.innerText.substr(0, conLen); } else { if (textBox.textContent.length < conLen) { return; } textBox.innerHTML = textBox.textContent .substr(0, conLen); } textBox.innerHTML += '...  
' + str1 + '
'; } function showText(e, conLen, str1, str2) { textBox = document.getElementById(e);; textBox.innerHTML = conText + '  
' + str2 + '
'; }