javascript图片展示效果

来源:互联网 发布:淘宝十大女装店 编辑:程序博客网 时间:2024/04/26 03:19

<script type="text/javascript">
 <!--
 var focus_width=240
 var focus_height=230
 var text_height=0
 var swf_height = focus_height+text_height
var pics='<%=xinxi%>'
 var links=''
 var texts=''
 document.write('<object 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"><param name="movie" value="flash01.swf"><param name="quality" value="high"><param name="bgcolor" value="#ffffff">');
 document.write('<param name="menu" value="false"><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+'">');
 document.write('<embed src="inc/flash01.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#ffffff" border="0" bordercolor="#ffffff" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');  document.write('</object>');
 
function TABLE1_onclick() {

}

 //-->
        </script>

。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。

 if(!Page.IsPostBack)
        {
            DataSet ds = new DataSetDA().selectData("select * from img where type='1'");
            if(ds.Tables[0].Rows.Count!=0)
            {
                for (int i = 0; i < ds.Tables[0].Rows.Count;i++ )
                {
                    xinxi += "tupian/" + ds.Tables[0].Rows[i]["imgpath"].ToString() + "|";

                }
                //xinxi = xinxi.Substring(0, xinxi.Length - 1).ToString();
              
            }
            //Label1.Text = xinxi;
        }

原创粉丝点击