index.htm
----------------------------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="JScript.js"></script>
</head>
<body>
<embed src="test.mp3" align="A" width="500" height="400" autostart="true" loop="true"></embed>
</body>
</html>
JScript.js
----------------------------------------------------------
$(document).ready(function() {
alert($("embed").length)
}
代码如下:<html>
<head>
<meta http-equiv="Content-Type" content="text/htmlcharset=windows-31j">
<title>Insert title here</title>
<script type="text/javascript">
function load() {
var embedTag = document.createElement('embed')
embedTag.type = "image/svg+xml"
embedTag.width = "640"
embedTag.height = "480"
embedTag.onload = function() {
alert(embedTag.getSVGDocument())
}
embedTag.src = "test.svg"
document.body.appendChild(embedTag)
}
</script>
</head>
<body onload="load()">
</body>
</html>
http://blog.csdn.net/tsubasadakong/article/details/377617651、在HTML中,使用JavaScript嵌� .swfæ件ï¼test.swfï¼ï¼å¹¶ä¸èµäºid,nameï¼æ¯å¦ swfobjï¼ <embed src='test.swf' width='500px' height='500px' id='swfobj' name='swfobj'></embed>2ãè·åå½åææ¾å¸§æ°ï¼var currentFrame= swfobj.CurrentFrame() è· åæ» å¸§ æ°ï¼var totalFrames=swfobj.TotalFrames()3ãå¦æè¦å¨swfææ¾å®å移é¤å®ï¼å¨å®æ¶å¨ä¸çå¬æ¶ï¼å¤ææ¡ä»¶ swfobj.CurrentFrame()>=swfobj.TotalFrames()-1(æè ==ï¼æè§>=æ´å ä¿é© éè§) æ¯å¦ä¸ºtrueã CurrentFrameçæ大å¼ä¸ºæ»å¸§æ°-1