var focus_width=190;//图片窗口显示宽度，单位是像素（不用写出），应与图片实际宽度相等，如果不等，图片将沿水平方向拉伸或收缩。
var focus_height=190;//图片窗口显示高度，单位是像素（不用写出），应与图片实际高度相等，如果不等，图片将沿垂直方向拉伸或收缩。
var text_height=0;//图片下面的说明文字高度,单位为像素。如果不想显示说明文字，此值可以改成0。此值为18时正好显示出完整文字。
var swf_height = focus_height+text_height; 
var pics='http://img.lolier.com/r/6150.jpg|http://img.lolier.com/r/6472.jpg|http://img.lolier.com/r/6808.jpg|http://img.lolier.com/r/7095.jpg|http://img.lolier.com/r/7277.jpg'; //图片地址表。相邻图片地址之间用“|”号作为分隔标记。图片用jpg格式，如果用gif格式将显示白板。
var links='http://www.lolier.com/product/6150/|http://www.lolier.com/product/6472/|http://www.lolier.com/product/6808/|http://www.lolier.com/product/7095/|http://www.lolier.com/product/7277/|';//各张图片对应的链接地址，相邻链接地址之间用“|”号作为分隔标记。
var texts='';//图片下面的说明文字。相邻图片说明文字之间用“|”作为分隔标记。
//以下各document.write行均不可用打回车随意断行排版，以免破坏js命令行的完整性，从而导致脚本出错。
document.write('<object ID="focus_flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain">');
document.write('<param name="movie" value="http://img.lolier.com/pic_muke.swf">'); //实现图片切换特效的flash地址写在这儿。
document.write('<param name="quality" value="high">');
document.write('<param name="bgcolor" value="#ffffff">');
document.write('<param name="menu" value="false">');
document.write('<param name="wmode" value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'"/>'); 
//实现图片切换特效的flash地址在下面这行还要写一次。
document.write('<embed ID="focus_flash" src="http://img.lolier.com/pic_muke.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#C5C5C5" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" ></embed>'); 
document.write('</object>'); 