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" />
10 < link rel ="Bookmark" href ="http://www.dupcit.com/favicon.ico" >
11 </ head >
12 < body >
13 < SCRIPT type ="text/javascript" src ="js/flash.js" ></ SCRIPT >
14 </ div >
15 </ body >
16
17 </ html >
18
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" />
10 < link rel ="Bookmark" href ="http://www.dupcit.com/favicon.ico" >
11 </ head >
12 < body >
13 < SCRIPT type ="text/javascript" src ="js/flash.js" ></ SCRIPT >
14 </ div >
15 </ body >
16
17 </ html >
18
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 " ; // 文字色
10 var bgcolor = " B7DCB7 " ; // 背景色
11 var swf_path = " http://www.hwpeixun.com/flash/focus.swf " ; // flash文件的地址
12
13 var imag = new Array();
14 var link = new Array();
15 var text = new Array();
16
17
18
19 imag[ 1 ] = " http://www.dupcit.com/image/topics/200906/090611.JPG " ;
20 link[ 1 ] = escape( " http://www.dusystem.com/ " );
21 text[ 1 ] = " 捷为工作室 " ;
22
23 imag[ 2 ] = " http://www.dupcit.com/image/topics/200906/111111.gif " ;
24 link[ 2 ] = escape( " http://www.dupcit.com/index.html " );
25 text[ 2 ] = " 2009年缔友计算机信息技术有限公司 " ;
26
27 imag[ 3 ] = " http://www.dupcit.com/image/topics/200905/1111.gif " ;
28 link[ 3 ] = escape( " http://www.dupcit.com/ " );
29 text[ 3 ] = " 涂聚文 " ;
30
31 imag[ 4 ] = " http://www.dupcit.com/image/topics/200905/2222_4a0a4235b7ce3..gif " ;
32 link[ 4 ] = escape( " http://www.dupcit.com/classic/index.html " );
33 text[ 4 ] = " 涂斯博 " ;
34
35 imag[ 5 ] = " http://www.dupcit.com/image/topics/200904/lingying.gif " ;
36 link[ 5 ] = escape( " http://www.dupcit.com/technology/index.html " );
37 text[ 5 ] = " 2009科技系列缔友计算机信息技术有限公司 " ;
38
39 var swf_height = show_text == 1 ? pic_height + text_height : pic_height;
40 var pics = "" , links = "" , texts = "" ;
41 for ( var i = 1 ; i < imag.length; i ++ ) {
42 pics = pics + ("|" + imag[i]);
43 links = links + ("|" + link[i]);
44 texts = texts + ("|" + text[i]);
45 }
46 pics = pics.substring( 1 );
47 links = links.substring( 1 );
48 texts = texts.substring( 1 );
49 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 + ' "> ' );
50 document.write( ' <param name="movie" value=" ' + swf_path + ' "> ' );
51 document.write( ' <param name="quality" value="high"><param name="wmode" value="opaque"> ' );
52 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 + ' "> ' );
53 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" /> ' );
54 document.write( ' <\/object> ' );
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 " ; // 文字色
10 var bgcolor = " B7DCB7 " ; // 背景色
11 var swf_path = " http://www.hwpeixun.com/flash/focus.swf " ; // flash文件的地址
12
13 var imag = new Array();
14 var link = new Array();
15 var text = new Array();
16
17
18
19 imag[ 1 ] = " http://www.dupcit.com/image/topics/200906/090611.JPG " ;
20 link[ 1 ] = escape( " http://www.dusystem.com/ " );
21 text[ 1 ] = " 捷为工作室 " ;
22
23 imag[ 2 ] = " http://www.dupcit.com/image/topics/200906/111111.gif " ;
24 link[ 2 ] = escape( " http://www.dupcit.com/index.html " );
25 text[ 2 ] = " 2009年缔友计算机信息技术有限公司 " ;
26
27 imag[ 3 ] = " http://www.dupcit.com/image/topics/200905/1111.gif " ;
28 link[ 3 ] = escape( " http://www.dupcit.com/ " );
29 text[ 3 ] = " 涂聚文 " ;
30
31 imag[ 4 ] = " http://www.dupcit.com/image/topics/200905/2222_4a0a4235b7ce3..gif " ;
32 link[ 4 ] = escape( " http://www.dupcit.com/classic/index.html " );
33 text[ 4 ] = " 涂斯博 " ;
34
35 imag[ 5 ] = " http://www.dupcit.com/image/topics/200904/lingying.gif " ;
36 link[ 5 ] = escape( " http://www.dupcit.com/technology/index.html " );
37 text[ 5 ] = " 2009科技系列缔友计算机信息技术有限公司 " ;
38
39 var swf_height = show_text == 1 ? pic_height + text_height : pic_height;
40 var pics = "" , links = "" , texts = "" ;
41 for ( var i = 1 ; i < imag.length; i ++ ) {
42 pics = pics + ("|" + imag[i]);
43 links = links + ("|" + link[i]);
44 texts = texts + ("|" + text[i]);
45 }
46 pics = pics.substring( 1 );
47 links = links.substring( 1 );
48 texts = texts.substring( 1 );
49 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 + ' "> ' );
50 document.write( ' <param name="movie" value=" ' + swf_path + ' "> ' );
51 document.write( ' <param name="quality" value="high"><param name="wmode" value="opaque"> ' );
52 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 + ' "> ' );
53 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" /> ' );
54 document.write( ' <\/object> ' );