gaufeo 发表于 2007-4-27 11:22:17

***综合类***这个脚本可以在当前页面中显示其它网页的内容

把下列代码加到网页的<body></body>标签之间 从google下载我的照片管理软件
要完成此效果需要三个步骤

第一步:把如下代码加入到<head>区域中

<script language="javascript">
<!-- begin
function writelayer(text) {
document.frames['myframe'].location.href = text;
document.addrform.location.value = text;
}
function setlayer(text) {
if (text.indexof("http://",0) <= 0)
text = "http://" +text;
document.frames['myframe'].location.href = text;
document.addrform.location.value = text;
}
function onload(text) {
if (text != "microsoft internet explorer") {
alert("netscape not supported");
history.back();
}
return true;
}
//end -->
</script>


第二步:把如下代码加入到<body>区域中

<iframe src="about:blank" width=100% height=90% id=myframe></iframe>
<center>
<form name=addrform>
<input type=button value="javascript fiaryland" onclick="writelayer('http://typhoon.huzhoucity.com')">

<input type=button value="快捷按钮" onclick="writelayer('http://typhoon.500.to')">
<input type=button value="快捷按钮" onclick="writelayer('about:blank')">
    <font color="#33ff33">网址:</font>
    <input type=text name=location value="type any url here then press go" onfocus="this.value=''" size=35>
<input type=button value="go" onclick="setlayer(document.addrform.location.value)">
</form>
</center>


第三步:把“onload="onload(navigator.appname)"”加在<body>标记里
例如:<body onload="onload(navigator.appname)">
      










--------------------------------------

拥有三人行论坛管理系列软件,一个人就可以管理一个论坛的更新维护。还能使您的论坛有千人在线的真实火暴效果,让您不在为论坛因没有人气而留不住会员而烦恼,使您的论坛早日成为一流的论坛。详情请登陆网站:http://www.cnsrx.cn 三人行论坛管理软件,站长必备的专业好工具。(您使用的是免费版本,购买收费版本后,将不带广告。业务QQ:247216 44985227)
页: [1]
查看完整版本: ***综合类***这个脚本可以在当前页面中显示其它网页的内容