javascript控制flash动画
一、介绍与Flash动画控制有关的javascript函数:
函数名 使用 作用
play() wgzc.play() 播放Flash动画
stopplay() wgzc.stopplay() 停止播放Flash动画
rewind() wgzc.rewind() 停止播放Flash动画并返回第一帧
totalframes() wgzc.totalframes() 返回Flash动画总帧数
gotoframe(int num) wgzc.gotoframe(int num) 转到指定帧
注:wgzc是flash的id
二、程序代码:
<html>
<head>
<script language="javascript">
function init()
{ document.changeframe.totalfrm.value=document.wgzc.totalframes }
</script>
</head>
<body onload="init()" bgcolor="#FFFFFF" bgproperties="fixed">
<fieldset>
<legend><font color="
相关文档:
<body oncontextmenu="return false" onselectstart="return false" ondragstart="return false" onbeforecopy="return false" onmouseup=document.selection.empty() oncopy=document.selection.empty() onselect=document.selection.empty()></body>
讲上面红色显示的插入到网页中就可以实现鼠标右击无效
......
1. 应用 Array.prototype.join实现字符合并
方法1.
String.prototype.times = function(n) {
return Array.prototype.join.call({length:n+1}, this);
};
"js".times(5) // => "jsjsjsjsjs"
方法2.
var ArrayTest=new Array("HE","LL","O");
var hello = Array.prot ......
在开发一个缴费交易时,先发送查询请求到系统A,系统A返回一个字符串格式的欠费金额,因为是定长的,所以都是前补0,本来需要先做处理的,但是由于查询结果如果是欠费的,客户发起缴费交易时,会送给系统B的格式,与系统A返回的是一样的,因此就原样保存然后上送,可是在系统测试时,却发现了一个奇怪的现象,系统A返回的查 ......
示例:
- - - - - - - - - - - -
<body>
<input type="button" value="create" onclick="createTr();">
<table border='1' id="t" >
</table>
<input type="button" value="提交" onclick="okss();" />
</body>
<script type="text/javascript">
&nbs ......
1. oncontextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键
<table border oncontextmenu=return(false)><td>no</table> 可用于Table
2. <body onselectstart="return false"> 取消选取、防止复制
3. onpaste="return false" 不准粘贴
4. oncopy="return false;" oncut="return f ......