FLASH+Javascript 1,2,3,4数字标签显示图片
2009-08-20 14:13
831 查看
html:
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml">
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5<title>缔友计算机信息技术有限公司---涂聚文--FLASH+Javascript 1,2,3,4数字标签显示图片</title>
6<meta name="Robots" content="all index follow ">
7<meta name="Author" content="涂聚文" />
8<link rel="shortcut icon" href="http://www.dupcit.com/favicon.ico" type="image/x-icon" />
9<link rel="icon" href="http://www.dupcit.com/favicon.ico" type="image/ico" />
<link rel="Bookmark" href="http://www.dupcit.com/favicon.ico">
</head>
<body>
<SCRIPT type="text/javascript" src="js/flash.js"></SCRIPT>
</div>
</body>
</html>
javascript:
1 // FLASH 1,2,3,4数字标签显示图片
2//geovindu@163.com Geovin Du 涂聚文 2009-08-19
3 var pic_width = 415; //图片宽度
4 var pic_height = 120; //图片高度
5 var button_pos = 4; //按扭位置 0不显示 1左 2右 3上 4下(无效)
6 var stop_time = 6000; //图片停留时间(1000为1秒钟)
7 var show_text = 1; //是否显示文字标题 1显示 0不显示
8 var text_height = 20; //文字标题的高度
9 var txtcolor = "000000"; //文字色
var bgcolor = "B7DCB7"; //背景色
var swf_path = "http://www.hwpeixun.com/flash/focus.swf"; //flash文件的地址
var imag = new Array();
var link = new Array();
var text = new Array();
imag[1] = "http://www.dupcit.com/image/topics/200906/090611.JPG";
link[1] = escape("http://www.dusystem.com/");
text[1] = "捷为工作室";
imag[2] = "http://www.dupcit.com/image/topics/200906/111111.gif";
link[2] = escape("http://www.dupcit.com/index.html");
text[2] = "2009年缔友计算机信息技术有限公司";
imag[3] = "http://www.dupcit.com/image/topics/200905/1111.gif";
link[3] = escape("http://www.dupcit.com/");
text[3] = "涂聚文";
imag[4] = "http://www.dupcit.com/image/topics/200905/2222_4a0a4235b7ce3..gif";
link[4] = escape("http://www.dupcit.com/classic/index.html");
text[4] = "涂斯博";
imag[5] = "http://www.dupcit.com/image/topics/200904/lingying.gif";
link[5] = escape("http://www.dupcit.com/technology/index.html");
text[5] = "2009科技系列缔友计算机信息技术有限公司";
var swf_height = show_text == 1 ? pic_height + text_height : pic_height;
var pics = "", links = "", texts = "";
pics = pics.substring(1);
links = links.substring(1);
texts = texts.substring(1);
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cabversion=6,0,0,0" width="'+ pic_width +'" height="'+ swf_height +'">');
document.write('<param name="movie" value="'+swf_path+'">');
document.write('<param name="quality" value="high"><param name="wmode" value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&pic_width='+pic_width+'&pic_height='+pic_height+'&show_text='+show_text+'&txtcolor='+txtcolor+'&bgcolor='+bgcolor+'&button_pos='+button_pos+'&stop_time='+stop_time+'">');
document.write('<embed src="'+swf_path+'" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&pic_width='+pic_width+'&pic_height='+pic_height+'&show_text='+show_text+'&txtcolor='+txtcolor+'&bgcolor='+bgcolor+'&button_pos='+button_pos+'&stop_time='+stop_time+'" quality="high" width="'+ pic_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" menu="false" wmode="transparent" />');
document.write('<\/object>');
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml">
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5<title>缔友计算机信息技术有限公司---涂聚文--FLASH+Javascript 1,2,3,4数字标签显示图片</title>
6<meta name="Robots" content="all index follow ">
7<meta name="Author" content="涂聚文" />
8<link rel="shortcut icon" href="http://www.dupcit.com/favicon.ico" type="image/x-icon" />
9<link rel="icon" href="http://www.dupcit.com/favicon.ico" type="image/ico" />
<link rel="Bookmark" href="http://www.dupcit.com/favicon.ico">
</head>
<body>
<SCRIPT type="text/javascript" src="js/flash.js"></SCRIPT>
</div>
</body>
</html>
javascript:
1 // FLASH 1,2,3,4数字标签显示图片
2//geovindu@163.com Geovin Du 涂聚文 2009-08-19
3 var pic_width = 415; //图片宽度
4 var pic_height = 120; //图片高度
5 var button_pos = 4; //按扭位置 0不显示 1左 2右 3上 4下(无效)
6 var stop_time = 6000; //图片停留时间(1000为1秒钟)
7 var show_text = 1; //是否显示文字标题 1显示 0不显示
8 var text_height = 20; //文字标题的高度
9 var txtcolor = "000000"; //文字色
var bgcolor = "B7DCB7"; //背景色
var swf_path = "http://www.hwpeixun.com/flash/focus.swf"; //flash文件的地址
var imag = new Array();
var link = new Array();
var text = new Array();
imag[1] = "http://www.dupcit.com/image/topics/200906/090611.JPG";
link[1] = escape("http://www.dusystem.com/");
text[1] = "捷为工作室";
imag[2] = "http://www.dupcit.com/image/topics/200906/111111.gif";
link[2] = escape("http://www.dupcit.com/index.html");
text[2] = "2009年缔友计算机信息技术有限公司";
imag[3] = "http://www.dupcit.com/image/topics/200905/1111.gif";
link[3] = escape("http://www.dupcit.com/");
text[3] = "涂聚文";
imag[4] = "http://www.dupcit.com/image/topics/200905/2222_4a0a4235b7ce3..gif";
link[4] = escape("http://www.dupcit.com/classic/index.html");
text[4] = "涂斯博";
imag[5] = "http://www.dupcit.com/image/topics/200904/lingying.gif";
link[5] = escape("http://www.dupcit.com/technology/index.html");
text[5] = "2009科技系列缔友计算机信息技术有限公司";
var swf_height = show_text == 1 ? pic_height + text_height : pic_height;
var pics = "", links = "", texts = "";
pics = pics.substring(1);
links = links.substring(1);
texts = texts.substring(1);
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cabversion=6,0,0,0" width="'+ pic_width +'" height="'+ swf_height +'">');
document.write('<param name="movie" value="'+swf_path+'">');
document.write('<param name="quality" value="high"><param name="wmode" value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&pic_width='+pic_width+'&pic_height='+pic_height+'&show_text='+show_text+'&txtcolor='+txtcolor+'&bgcolor='+bgcolor+'&button_pos='+button_pos+'&stop_time='+stop_time+'">');
document.write('<embed src="'+swf_path+'" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&pic_width='+pic_width+'&pic_height='+pic_height+'&show_text='+show_text+'&txtcolor='+txtcolor+'&bgcolor='+bgcolor+'&button_pos='+button_pos+'&stop_time='+stop_time+'" quality="high" width="'+ pic_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" menu="false" wmode="transparent" />');
document.write('<\/object>');
相关文章推荐
- 使用javascript替换img标签里的src属性图片不显示的原因(IE6)
- javascript 操作img 标签 显示 隐藏 图片
- JavaScript实现类似Title Alt功能并且可以显示图片。
- html中img标签显示图片属性写法与background差异
- IIS6.0+IE6.0无法显示flash幻灯片(flash调用图片)的研究
- javascript 图片上传并显示
- JavaScript如何转换二进制数据显示成图片
- 帝国cms灵动标签没有标题图片的时候怎么显示默认图片
- JSP中<img>标签图片在浏览器中不显示问题
- javascript 火狐(firefox)不显示本地图片问题解决
- [转]用Javascript判断图片是否存在,不存在则显示默认图片的代码
- Javascript显示当前页面中所有图片的特效
- Android学习札记47:TextView显示Html类解析的网页和图片及自定义标签
- 用javascript实现图片马赛克后显示并切换
- 【javascript】File API 读取并显示本地图片 -1
- Javascript 仿Flash图片轮翻
- Javascript 仿Flash 图片切换 及 Flash 图片切换
- 用js实现的一个Flash滚动轮换显示图片代码生成器
- HTML标签实现图片滚动显示
- javaEE01-使用很HTML的排版标签编写“网站信息页面”,使用图片标签编写“图面显示页面”,使用列表标签编写“友情链接页面”,使用表格标签编写“首页”,框架标签表现“后台页面”