前言
	以前总会遇到一些又长又臭的代码,就比如Flash的,但现在抛弃flash了,可以作为参考!
 
	head区代码
<script type="text/javascript">
function flash (url ,w ,h ){ 
document.write('<flash的html固定代码 width="'+w+'" height="'+h+'">');
document.write('<param name="movie" value="'+url+'">');
document.write('<param name="quality" value="High">');
document.write('<embed src="'+url+'"  flash的html固定代码 
width="'+w+'" height="'+h+'">');
document.write('</object>');
}
</script>
	body区代码
<script type="text/javascript">
flash('http://www.yourname.com/123.swf','100','80');
</script>
<script type="text/javascript">
flash('http://www.yourname.com/234.swf','500','375');
</script>
	代码说明
	1、在head区中的“function flash”,这里的“flash”是标记名称,可以设置为其它任意字符串,但需要和body区中的“flash”相符;  
2、“url ,w ,h”则在这里的意思是指地址、宽度、高度,也可以随意命名,但要和被“document.write”包住的名称匹配,区别是后面的增加了“'++'”,如“’+url+‘”;  
3、body区的()之间被''包住的分别是上面提到的三个参数;  
4、要牢记此效果只能适应于不被搜索引擎支持、被大量使用的前提下。
  |