<!--#include file="conn/conn_index.asp"-->
<div id="slideimg">  
    <script language=javascript>
	var focus_width=360     /*幻灯片新闻图片宽度*/
	var focus_height=190    /*幻灯片新闻图片高度*/
	var text_height=18    /*幻灯片新闻文字标题高度*/
	var swf_height = focus_height+text_height

	var pics = '';
	var links = '';
	var texts = '';

	function ati(url, img, title)
	{
		if(pics != '')
		{
			pics = "|" + pics;
			links = "|" + links;
			texts = "|" + texts;
		}

		pics = escape(img) + pics;
		links = escape(url) + links;
		texts = title + texts;
	}
    </script>
    <script language=javascript>	
<%
	set rs=server.createobject("adodb.recordset")
	sql="select * from [float_ad] where ttype=2 order by id desc"
	rs.open sql,conn,1,1
	if rs.eof then
%>
	ati('http://www.wishcn.com', 'images/banner_01.jpg', '网愿科技');
	ati('http://www.wishcn.com', 'images/banner_01.jpg', '网愿科技');
	ati('http://www.wishcn.com', 'images/banner_01.jpg', '网愿科技');
	ati('http://www.wishcn.com', 'images/banner_01.jpg', '网愿科技');
<%
	else
		do while not rs.eof
%>
	ati('<%=rs("linkurl")%>', '<%=rs("photourl")%>', '<%= rs("photoart") %>');
<%
		rs.movenext
		loop
	end if
	rs.close
	set rs=nothing
%>
	document.write('<embed src="images/pixviewer.swf" wmode="transparent" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#DADADA" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash"/>');
</script>
<%
	conn.close
	set conn=nothing
%>