<script>
var aa=window.open("动画.htm")
function test(){
alert(aa.document.body.innerHTML)
}
</script>
<input type=button onclick="test()" value="只能得到<body> </body>之间的代码。得到新窗口代码!">动画.htm
====================<script>
var tmId;
function moveit(){
if((parseInt(document.all.mxh.style.left))>300)
{
document.all.mxh.style.left="0";
document.all.mxh.style.top="0";
}
else
{
document.all.mxh.style.left=(parseInt(document.all.mxh.style.left)+3).toString()+"px"
document.all.mxh.style.top=(parseInt(document.all.mxh.style.top)+3).toString()+"px"
}
tmId=setTimeout('moveit()',20)
}</script>
<body onload="moveit()" bgcolor="#0099ff">
<div id=mxh style="position:absolute;left:0px;top:0px"><a href="http://lucky.myrice.com" target="_blank"><img src="http://lucky.myrice.com/javabk1.jpg" onmouseover="window.clearTimeout(tmId)" onmouseout="window.setTimeout('moveit()',20)" border=0></a></div>
var aa=window.open("动画.htm")
function test(){
alert(aa.document.body.innerHTML)
}
</script>
<input type=button onclick="test()" value="只能得到<body> </body>之间的代码。得到新窗口代码!">动画.htm
====================<script>
var tmId;
function moveit(){
if((parseInt(document.all.mxh.style.left))>300)
{
document.all.mxh.style.left="0";
document.all.mxh.style.top="0";
}
else
{
document.all.mxh.style.left=(parseInt(document.all.mxh.style.left)+3).toString()+"px"
document.all.mxh.style.top=(parseInt(document.all.mxh.style.top)+3).toString()+"px"
}
tmId=setTimeout('moveit()',20)
}</script>
<body onload="moveit()" bgcolor="#0099ff">
<div id=mxh style="position:absolute;left:0px;top:0px"><a href="http://lucky.myrice.com" target="_blank"><img src="http://lucky.myrice.com/javabk1.jpg" onmouseover="window.clearTimeout(tmId)" onmouseout="window.setTimeout('moveit()',20)" border=0></a></div>
解决方案 »
- 还是js图片平面旋转的问题
- 如果获得页面的高度并且滚动条滚动到新添加的内容呢?我这样写为什么无效
- 关于W3CSCHOOL xml 例题的问题
- JavaScript 新建Excel时的糗事.总是出错,高手路过的话别忘了进来看看.
- XML的问题
- 关于动态生成<input>
- 如何在提交时自动添加数据?
- 请教孟兄:用正则表达式怎样匹配正反斜杆??
- javascript的onclick问题,急...............................................
- jstree dnd插件如何禁止跨级拖拽,但可以同级拖拽。
- 谁能提供JAVASCRIPT可调用的WINDOWS公用函数接口的资料...
- 怎样通过动态改变CSS位置属性的方法设计一个实现简单动画的Javaseript程序?To:[email protected]
<script>
var aa=window.open("动画.htm")
function test(){
alert(aa.document.body.outerHTML)
}
</script>
<input type=button onclick="test()" value="只能得到<body> </body>(含body标记)之间的代码。得到新窗口代码!">动画.htm
====================<script>
var tmId;
function moveit(){
if((parseInt(document.all.mxh.style.left))>300)
{
document.all.mxh.style.left="0";
document.all.mxh.style.top="0";
}
else
{
document.all.mxh.style.left=(parseInt(document.all.mxh.style.left)+3).toString()+"px"
document.all.mxh.style.top=(parseInt(document.all.mxh.style.top)+3).toString()+"px"
}
tmId=setTimeout('moveit()',20)
}</script>
<body onload="moveit()" bgcolor="#0099ff">
<div id=mxh style="position:absolute;left:0px;top:0px"><a href="http://lucky.myrice.com" target="_blank"><img src="http://lucky.myrice.com/javabk1.jpg" onmouseover="window.clearTimeout(tmId)" onmouseout="window.setTimeout('moveit()',20)" border=0></a></div>
=========================
<script>
var aa=window.open("动画.htm")
function test(){
alert(aa.document.documentElement.outerHTML)
}
</script>
<input type=button onclick="test()" value="只能得到<body> </body>之间的代码。得到新窗口代码!">
动画.htm
==========<script>
var tmId;
function moveit(){
if((parseInt(document.all.mxh.style.left))>300)
{
document.all.mxh.style.left="0";
document.all.mxh.style.top="0";
}
else
{
document.all.mxh.style.left=(parseInt(document.all.mxh.style.left)+3).toString()+"px"
document.all.mxh.style.top=(parseInt(document.all.mxh.style.top)+3).toString()+"px"
}
tmId=setTimeout('moveit()',20)
}</script>
<body onload="moveit()" bgcolor="#0099ff">
<div id=mxh style="position:absolute;left:0px;top:0px"><a href="http://lucky.myrice.com" target="_blank"><img src="http://lucky.myrice.com/javabk1.jpg" onmouseover="window.clearTimeout(tmId)" onmouseout="window.setTimeout('moveit()',20)" border=0></a></div>