Archive for 06月, 2007

检测客户端是否启用javascript

星期二, 06月 19th, 2007

<table width=”100%” height=”100%”  bgcolor=”#999999″id=”TestJS”>
<tr><td><H2>对不起,您的浏览器禁止JavaScript脚本!</H2></td></tr>
</table>
<script language=”javascript”>document.getElementById(”TestJS”).style.display = “none”;</script>

[存疑]falsh变量在FF和IE下的存储不同?

星期四, 06月 7th, 2007

需要实现的效果:falsh主文件定义了一个变量,控制调入文件的跳转。比如

if (_root._parent.strOver == 1) {
 gotoAndStop(”over1″);
} else if (_root._parent.strOver == 2) {
 gotoAndStop(”over2″);
} else if (_root._parent.strOver == 3) {
 gotoAndStop(”over3″);
}

返回按钮上的Action定义了_root._parent.strOver=1或2或3。

在IE下跳转很正常,但是到了FF下,跳转无效,返回后每次都从头开始播放,也就是说变量并没有起作用。

为什么呢?