asp百叶窗实现
来源:互联网 发布:少年犯罪知乎 编辑:程序博客网 时间:2024/04/24 15:12
<script type="text/javascript">
var imgUrl=new Array();
var imgtext=new Array();
var imgLink=new Array();
<%
set strs=server.createobject("adodb.recordset")
sql="select top 5 * from Mz_MzNews where image <>'' and sit=1 order by nid desc"
'0 表示是标记为头版的.
strs.open sql,conn,1,1
dim i
i=0
do while not strs.eof
%>
imgUrl[<%=i%>]="ImgUpload/<%=strs("IMAGE")%>";
imgtext[<%=i%>]="<%=left(strs("CnTitle"),10)%>";
imgLink[<%=i%>]=escape("Mz_Newsview.Asp?type=<%=strs("nid")%>&Cln=<%=strs("cntitle")%>");
<%
strs.movenext
i=i+1
loop
strs.close
set strs=nothing
%>
var focus_width=245
var focus_height=180
var text_height=18
var swf_height = focus_height+text_height
var pics,links,texts;
pics=links=texts="";
var i;
i=0;
for(i in imgUrl)
{
if(i==0)
{
pics=imgUrl[i];
links=imgLink[i];
texts=imgtext[i];
}
else
{
pics=pics+"|"+imgUrl[i];
links=links+"|"+imgLink[i];
texts=texts+"|"+imgtext[i];
}
}
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="Imges/focus.swf"> <param name="quality" value="high"><param name="bgcolor" value="<%=colors%>">');
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="Imges/focus.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" ?bgcolor="#ffffff" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
</script> 这是我把静态的改成动态的.语言是ASP
var imgUrl=new Array();
var imgtext=new Array();
var imgLink=new Array();
<%
set strs=server.createobject("adodb.recordset")
sql="select top 5 * from Mz_MzNews where image <>'' and sit=1 order by nid desc"
'0 表示是标记为头版的.
strs.open sql,conn,1,1
dim i
i=0
do while not strs.eof
%>
imgUrl[<%=i%>]="ImgUpload/<%=strs("IMAGE")%>";
imgtext[<%=i%>]="<%=left(strs("CnTitle"),10)%>";
imgLink[<%=i%>]=escape("Mz_Newsview.Asp?type=<%=strs("nid")%>&Cln=<%=strs("cntitle")%>");
<%
strs.movenext
i=i+1
loop
strs.close
set strs=nothing
%>
var focus_width=245
var focus_height=180
var text_height=18
var swf_height = focus_height+text_height
var pics,links,texts;
pics=links=texts="";
var i;
i=0;
for(i in imgUrl)
{
if(i==0)
{
pics=imgUrl[i];
links=imgLink[i];
texts=imgtext[i];
}
else
{
pics=pics+"|"+imgUrl[i];
links=links+"|"+imgLink[i];
texts=texts+"|"+imgtext[i];
}
}
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="Imges/focus.swf"> <param name="quality" value="high"><param name="bgcolor" value="<%=colors%>">');
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="Imges/focus.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" ?bgcolor="#ffffff" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
</script> 这是我把静态的改成动态的.语言是ASP
- asp百叶窗实现
- 实现百叶窗效果图
- J2ME实现百叶窗效果
- WPF Clip实现百叶窗
- Jquery 百叶窗实现原理
- js实现百叶窗
- html实现百叶窗效果
- 百叶窗
- 网页图片实现百叶窗效果
- 利用Jquery实现百叶窗效果
- 用JavaScript实现页面百叶窗效果
- 用VB实现“百叶窗”的图形特效
- 用VB实现“百叶窗”的图形特效
- AS3.0实现百叶窗过渡效果
- python 简单实现 图片百叶窗效果
- javascript实现七屏百叶窗效果
- Android 百叶窗图片切换效果实现
- js原生实现百叶窗上下滚动
- 如果Visual Studio.net突然坏了怎么办或有功能不起作用了。甚至重装也不起作用。
- 完全掌握SQL Server 2000
- 一些教训
- 接口(五)实现接口
- 需要蜕变!
- asp百叶窗实现
- 想认识年轻,有想法,有创意思,技术热爱狂们
- Hibernate-Extension和Middlegen-Hibernate 配置使用生成ORM和POJO
- Cannot与 can not之分别
- 不知道的常用搜索网站
- IBM面试的IQ题
- 数据库操作
- ORACLE中的BITOR和BITXOR
- 一个优秀IT专家的成长历程---献给所有的颓废或即将颓废的人们