function writeflashhtml( arg ) { var parm = [] var _default_version = "8,0,24,0"; var _default_quality = "high"; var _default_align = "middle"; var _default_menu = "false"; var _bgcolor = "#ffffff"; for(i = 0; i < arguments.length; i ++) { parm[i] = arguments[i].split(' ').join('').split('=') for (var j = parm[i].length-1; j > 1; j --){ parm[i][j-1]+="="+parm[i].pop(); } switch (parm[i][0]) { case '_version' : var _version = parm[i][1] ; break ; case '_swf' : var _swf = parm[i][1] ; break ; case '_base' : var _base = parm[i][1] ; break ; case '_quality' : var _quality = parm[i][1] ; break ; case '_loop' : var _loop = parm[i][1] ; break ; case '_bgcolor' : var _bgcolor = parm[i][1] ; break ; case '_wmode' : var _wmode = parm[i][1] ; break ; case '_play' : var _play = parm[i][1] ; break ; case '_menu' : var _menu = parm[i][1] ; break ; case '_scale' : var _scale = parm[i][1] ; break ; case '_salign' : var _salign = parm[i][1] ; break ; case '_height' : var _height = parm[i][1] ; break ; case '_width' : var _width = parm[i][1] ; break ; case '_hspace' : var _hspace = parm[i][1] ; break ; case '_vspace' : var _vspace = parm[i][1] ; break ; case '_align' : var _align = parm[i][1] ; break ; case '_class' : var _class = parm[i][1] ; break ; case '_id' : var _id = parm[i][1] ; break ; case '_name' : var _name = parm[i][1] ; break ; case '_style' : var _style = parm[i][1] ; break ; case '_declare' : var _declare = parm[i][1] ; break ; case '_flashvars' : var _flashvars = parm[i][1] ; break ; default :; } } var thtml = "" thtml += "" if(_quality) thtml += "" else thtml += "" if(_loop) thtml += "" if(_bgcolor) thtml += "" if(_play) thtml += "" if(_menu) thtml += "" else thtml += "" if(_scale) thtml += "" if(_salign) thtml += "" if(_wmode) thtml += "" if(_base) thtml += "" if(_flashvars) thtml += "" thtml += "<embed pluginspage='http://www.macromedia.com/go/getflashplayer'" if(_width) thtml += " width='" + _width + "'" if(_height) thtml += " height='" + _height + "'" if(_hspace) thtml += " hspace='" + _hspace + "'" if(_vspace) thtml += " vspace='" + _vspace + "'" if(_align) thtml += " align='" + _align + "'" else thtml += " align='" + _default_align + "'" if(_class) thtml += " class='" + _class + "'" if(_id) thtml += " id='" + _id + "'" if(_name) thtml += " name='" + _name + "'" if(_style) thtml += " style='" + _style + "'" thtml += " type='application/x-shockwave-flash'" if(_declare) thtml += " " + _declare if(_swf) thtml += " src='" + _swf + "'" if(_quality) thtml += " quality='" + _quality + "'" else thtml += " quality='" + _default_quality + "'" if(_loop) thtml += " loop='" + _loop + "'" if(_bgcolor) thtml += " bgcolor='" + _bgcolor + "'" if(_play) thtml += " play='" + _play + "'" if(_menu) thtml += " menu='" + _menu + "'" else thtml += " menu='" + _default_menu + "'" if(_scale) thtml += " scale='" + _scale + "'" if(_salign) thtml += " salign='" + _salign + "'" if(_wmode) thtml += " wmode='" + _wmode + "'" if(_base) thtml += " base='" + _base + "'" if(_flashvars) thtml += " flashvars='" + _flashvars + "'" thtml += ">" thtml += "" document.write(thtml) } var w=982; //动画宽度 var h=360; //动画高度 var cs1="0xffffff"; //文字颜色 var cs2="|2"; //文字位置 0表示题目文字在顶端,1表示文字在底部,2表示文字在顶端 var cs3="|0x0066ff"; //文字背景颜色 var cs4="|60"; //文字背景透明度 var cs5="|0xffffff"; //按键文字颜色 var cs6="|0xFBA303"; //按键默认颜色 var cs7="|0x000033"; //按键当前颜色 var cs8="|8"; //自动播放时间(秒) var cs9="|2"; //0,表示亮度过渡,1表示透明度过渡,2表示模糊过渡,3表示运动模糊过渡 var cs10="|1"; //是否显示按钮,0,表示隐藏按键部分 var cs11="|_blank"; //打开窗口 var nplayer_pics_list='picture/20148/dgwebpic/2014080858215049.jpg|picture/201312/dgwebpic/2013121434281105.jpg|picture/201311/dgwebpic/2013111458927205.jpg|uploadfile/image/20160426/20160426221427_1226028062.jpg'; var nplayer_links_list=''; var nplayer_texts_list='' ; writeflashhtml("_swf=www/flashplayer_new.swf", "_width="+w, "_height="+h ,"_wmode=opaque" ,"_flashvars=bcastr_file="+nplayer_pics_list+"&bcastr_link="+nplayer_links_list+"&bcastr_title="+nplayer_texts_list+"&bcastr_config="+cs1+cs2+cs3+cs4+cs5+cs6+cs7+cs8+cs9+cs10+cs11);