冲突的是这段,全部代码在下面。虽然这段代码是用来隐藏代码的,但我只是觉得好玩,可是研究了一晚上还是没有找出解决的办法,非常不爽,请哪位朋友帮我看下
谢谢
function EncryptPage(){
var Source;
Source=document.body.firstChild.data;
document.open();
document.write("100110111");
document.close();
document.body.innerHTML=Source;}
//window.document.attachEvent("onload",EncryptPage);
window.document.body.setActive();
window.focus();
------------------------------
<html><head><SCRIPT>
function switchSysBar(){
if (switchPoint.innerText==3)
{
switchPoint.innerText=4
document.all("frmTitle").style.display="none"
}
else
{
switchPoint.innerText=3
document.all("frmTitle").style.display=""
}
}function EncryptPage(){
var Source;
Source=document.body.firstChild.data;
document.open();
document.write("100110111");
document.close();
document.body.innerHTML=Source;}
//window.document.attachEvent("onload",EncryptPage);
window.document.body.setActive();
window.focus();</script>
<style type="text/css">
<!--
body { background-image: url(image/bground.jpg);
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
table {
border:0px;
border-collapse:collapse
}
td {
padding:0px
}
-->
</style></head><title>风吹落尘</title>
<BODY scroll=no onload=EncryptPage()><!--
<table height="100%" width="100%">
<tbody>
<tr>
<td id="frmTitle">
<table height="100%">
<tr><td>
<iframe style="Z-INDEX: 2; VISIBILITY: inherit; WIDTH: 290; HEIGHT: 330" src="list.htm" frameborder=0 name=list scrolling=no></iframe>
</td></tr><tr>
<td><iframe style="Z-INDEX: 2; VISIBILITY: inherit; WIDTH: 290; HEIGHT: 290" src="01.htm" frameborder=0 name=music scrolling=no></iframe>
</tr></table></td>
<td>
<table height=100%">
<tbody><tr bgcolor=#FFFFFF><td style="HEIGHT: 45%"></td></tr>
<tr id="lbar" bgcolor=#FFFFFF>
<td onClick=switchSysBar() onMouseOver="lbar.style.background='#000000';lbar.style.color='#FFFFFF'" onMouseOut="lbar.style.background='#FFFFFF';lbar.style.color='#000000'"><font style="FONT-SIZE: 8px; CURSOR: hand; FONT-FAMILY: Webdings"><span id=switchPoint>3</span></font></td>
</tr><tr bgcolor=#FFFFFF><td style="HEIGHT: 45%"></td></tr>
</tbody>
</table>
</td>
<td style="WIDTH: 100%"><iframe id=main style="Z-INDEX: 1; VISIBILITY: inherit; WIDTH: 100%; HEIGHT: 100%" name=main src="download.htm" frameborder=0 scrolling=auto></iframe></td>
</tr>
</tbody>
</table>
--></BODY></html>
谢谢
function EncryptPage(){
var Source;
Source=document.body.firstChild.data;
document.open();
document.write("100110111");
document.close();
document.body.innerHTML=Source;}
//window.document.attachEvent("onload",EncryptPage);
window.document.body.setActive();
window.focus();
------------------------------
<html><head><SCRIPT>
function switchSysBar(){
if (switchPoint.innerText==3)
{
switchPoint.innerText=4
document.all("frmTitle").style.display="none"
}
else
{
switchPoint.innerText=3
document.all("frmTitle").style.display=""
}
}function EncryptPage(){
var Source;
Source=document.body.firstChild.data;
document.open();
document.write("100110111");
document.close();
document.body.innerHTML=Source;}
//window.document.attachEvent("onload",EncryptPage);
window.document.body.setActive();
window.focus();</script>
<style type="text/css">
<!--
body { background-image: url(image/bground.jpg);
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
table {
border:0px;
border-collapse:collapse
}
td {
padding:0px
}
-->
</style></head><title>风吹落尘</title>
<BODY scroll=no onload=EncryptPage()><!--
<table height="100%" width="100%">
<tbody>
<tr>
<td id="frmTitle">
<table height="100%">
<tr><td>
<iframe style="Z-INDEX: 2; VISIBILITY: inherit; WIDTH: 290; HEIGHT: 330" src="list.htm" frameborder=0 name=list scrolling=no></iframe>
</td></tr><tr>
<td><iframe style="Z-INDEX: 2; VISIBILITY: inherit; WIDTH: 290; HEIGHT: 290" src="01.htm" frameborder=0 name=music scrolling=no></iframe>
</tr></table></td>
<td>
<table height=100%">
<tbody><tr bgcolor=#FFFFFF><td style="HEIGHT: 45%"></td></tr>
<tr id="lbar" bgcolor=#FFFFFF>
<td onClick=switchSysBar() onMouseOver="lbar.style.background='#000000';lbar.style.color='#FFFFFF'" onMouseOut="lbar.style.background='#FFFFFF';lbar.style.color='#000000'"><font style="FONT-SIZE: 8px; CURSOR: hand; FONT-FAMILY: Webdings"><span id=switchPoint>3</span></font></td>
</tr><tr bgcolor=#FFFFFF><td style="HEIGHT: 45%"></td></tr>
</tbody>
</table>
</td>
<td style="WIDTH: 100%"><iframe id=main style="Z-INDEX: 1; VISIBILITY: inherit; WIDTH: 100%; HEIGHT: 100%" name=main src="download.htm" frameborder=0 scrolling=auto></iframe></td>
</tr>
</tbody>
</table>
--></BODY></html>
<SCRIPT language="javascript">
function switchSysBar(){
if (switchPoint.innerText==3)
{
switchPoint.innerText=4;
document.all("frmTitle").style.display="none";
}
else
{
switchPoint.innerText=3;
document.all("frmTitle").style.display="";
}
}function EncryptPage(){
var Source;
Source=document.body.firstChild.data;
//document.open();
//document.write("100110111"); // 错误在这句
//document.close();
document.body.innerHTML=Source; window.document.body.setActive();
window.focus();
}
//window.document.attachEvent("onload",EncryptPage);
</script>
<style type="text/css">
<!--
body { background-image: url(image/bground.jpg);
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
table {
border:0px;
border-collapse:collapse
}
td {
padding:0px
}
-->
</style></head><title>风吹落尘</title>
<BODY scroll=no onload="EncryptPage();"><!--
<table height="100%" width="100%">
<tbody>
<tr>
<td id="frmTitle">
<table height="100%">
<tr><td>
<iframe style="Z-INDEX: 2; VISIBILITY: inherit; WIDTH: 290; HEIGHT: 330" src="list.htm" frameborder=0 name=list scrolling=no></iframe>
</td></tr><tr>
<td><iframe style="Z-INDEX: 2; VISIBILITY: inherit; WIDTH: 290; HEIGHT: 290" src="01.htm" frameborder=0 name=music scrolling=no></iframe>
</tr></table></td>
<td>
<table height=100%">
<tbody><tr bgcolor=#FFFFFF><td style="HEIGHT: 45%"></td></tr>
<tr id="lbar" bgcolor=#FFFFFF>
<td onClick="javascript:switchSysBar();" onMouseOver="lbar.style.background='#000000';lbar.style.color='#FFFFFF'" onMouseOut="lbar.style.background='#FFFFFF';lbar.style.color='#000000'"><font style="FONT-SIZE: 8px; CURSOR: hand; FONT-FAMILY: Webdings"><span id=switchPoint>3</span></font></td>
</tr><tr bgcolor=#FFFFFF><td style="HEIGHT: 45%"></td></tr>
</tbody>
</table>
</td>
<td style="WIDTH: 100%"><iframe id=main style="Z-INDEX: 1; VISIBILITY: inherit; WIDTH: 100%; HEIGHT: 100%" name=main src="download.htm" frameborder=0 scrolling=auto></iframe></td>
</tr>
</tbody>
</table>
--></BODY></html>
<script language="javascript">
</script>
//document.open();
//document.write("100110111"); // 错误在这句
//document.close();
这三句去掉后 网页是可以正常显示了。
但网页的源代码还是可见,这段JS么用了额。请问是不是document.open() 定义的太多了?
有什么办法把CSS从里面去掉。(JS白痴。如说错,笑笑就可以了)