在线查看网页的源文件
作者:mingblog 日期:2005-09-07
今天为了一个网页特效,查看某个网站的时候结果遇到了iframe跳转,没办法,看来用IE浏览器查看不行了。
程序代码
然后查看go.html的时候又跳了回来。
后来查看go.html才知道原来是这样的。
程序代码
Chinese/index.asp原来就是他们要隐藏的。呵呵。还是很容易的被揪了出来。
用在线查看源代码的方法。代码如下:
将下面的代码中入到你网页<body></body>中适当的位置即可......
程序代码
程序代码<FRAMESET COLS="1,*" frameborder=0 framespacing=0>
<FRAME SRC="none.html" NAME="none" noresize scrolling=no>
<FRAME SRC="Go.html" NAME="main" noresize>
</frameset>
<FRAME SRC="none.html" NAME="none" noresize scrolling=no>
<FRAME SRC="Go.html" NAME="main" noresize>
</frameset>
然后查看go.html的时候又跳了回来。
后来查看go.html才知道原来是这样的。
程序代码<meta http-equiv="refresh" content="0;URL=Chinese/index.asp">
<TITLE>Loading</TITLE>
<script language="javascript">
if(top==self)top.location="index.html"
</script>
<TITLE>Loading</TITLE>
<script language="javascript">
if(top==self)top.location="index.html"
</script>
Chinese/index.asp原来就是他们要隐藏的。呵呵。还是很容易的被揪了出来。
用在线查看源代码的方法。代码如下:
将下面的代码中入到你网页<body></body>中适当的位置即可......
程序代码<SCRIPT LANGUAGE="JavaScript">
function viewSource() {
document.getSource.view.value="请您稍候正在连接服务器......";
setTimeout("document.getSource.view.value='查看源代码'",6000);
window.location.href= "view-source:" + document.getSource.url.value;
return false;
}
</script>
<center>
请您在输入框里输入您想要看代码的网址(网址必需完整否责无法查看)
<br>
<br>
<form name=getSource onSubmit="return viewSource();">
<input type=text name=url value="http://">
<br>
<br>
<input type=submit name=view value="点击这里开始查看@_@!!!">
</form>
</center>
function viewSource() {
document.getSource.view.value="请您稍候正在连接服务器......";
setTimeout("document.getSource.view.value='查看源代码'",6000);
window.location.href= "view-source:" + document.getSource.url.value;
return false;
}
</script>
<center>
请您在输入框里输入您想要看代码的网址(网址必需完整否责无法查看)
<br>
<br>
<form name=getSource onSubmit="return viewSource();">
<input type=text name=url value="http://">
<br>
<br>
<input type=submit name=view value="点击这里开始查看@_@!!!">
</form>
</center>
评论: 11 | 引用: 1583 | 查看次数: -
发表评论
上一篇
下一篇

文章来自:
Tags:
http://www.cutanzi.com/dispbbs.asp?boardID=18&ID=214&page=1