在一张网页中,使用如下script.
<script>
function popup(href){
var winStyle="left=0,top=0,width=800,height=600,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes";
var remote = window.open( href,"",winStyle);
}
</script>
在<td>连接地址</td>来在新窗口打开一个连接.原来网页上有gif文件.
这样的话,回到原来的网页,gif的动画就sb了,不动了.
那么如何解决这个问题呢?
方案:用span这个便签,给他设定onclick的事件,调用这个function popup。
<span class="STYLE1" onclick ="javascript:popup('http://www.sina.com');">这是一个测试的语句。
貌似能解决上面的问题!
#1