存档
能通过W3C标准验证嵌入Flash 的最佳方法
用DW插入的Flash方法!
是无法通过 W3C验证的,因为兼容性插入的embed 标签不符合W3C标准。
还有就是你一般上看到网页上的大部分Flash是不是有个“单击以激活并使用此控件”框?
嘿嘿!如果你想要你的网页符合XHTML 1.0标准而努力,如果你不想你网页上的Flash有“单击以激活并使用此控件”框,那么就可以同过下面方法来解决这个问题!
就是SWFObject
阅读全文…
网页中两个flash重叠放置
- <div style=;z-Index:1>
- <embed src=上面的flash.swf wmode=transparent quality=high width=902 height=225></embed>
- </div>
- <div style=;z-Index:0>
- <embed src=下面的flash.swf wmode=transparent quality=high width=902 height=225></embed>
- </div>
插入FLASH代码
““““““““““““““““““““““
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<SCRIPT src="efront.js" type=text/JavaScript></SCRIPT>
</head>
<body>
<SCRIPT type=text/javascript>
setem = new setEmbed();
setem.init('flash','new_year1.swf','588','576');
setem.parameter('wmode','transparent'); //FLASH透明
setem.show();
</SCRIPT>
</body>
</html>
“““““““““““““““““““““““““`
阅读全文…
在Flash中实现“设为首页”和“加为收藏”功能是使用Get URL结合JavaScript来实现的。
设为首页代码:
- on (release) {
- getURL("javascript:void(document.links[0].style.behavior='url(#default#homepage)');void document.links[0].setHomePage('http://www.zishu.cn/');", "_self", "POST");
- }
加为收藏代码:
- on (release) {
- getURL("javascript:window.external.AddFavorite('http://www.zishu.cn/','子鼠')");
- }