您的位置:首页 > 编程语言 > Go语言

Google搜索从入门到精通 v4.0(二)

2005-01-24 10:24 351 查看
";
str += "
";
str += navigator;
str += "
返回 打印
";
str += "
";

article = document.getElementById('article').innerHTML;

if(article.indexOf(strAdBegin)!=-1)
{
str += article.substr(0,article.indexOf(strAdBegin));
strTmp = article.substr(article.indexOf(strAdEnd) + strAdEnd.length, article.length);
}
else
{
strTmp = article
}

str += strTmp.substr(0,strTmp.indexOf(strFontSize));
strTmp = strTmp.substr(strTmp.indexOf(strFontSize)+strFontSize.length, strTmp.length);

str += strTmp.substr(0,strTmp.indexOf(strdoPrint));
str += "window.print()";
str += strTmp.substr(strTmp.indexOf(strdoPrint)+strdoPrint.length, strTmp.length);

str += "
";
str += "
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息