首页最新新闻图片显示 信息发布系统,有图片的新闻。首页要显示最新发布的有图片的新闻的图片。如首页.能够自动加载最新X片新闻的图片且可以自动切换。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 就是首页http://www.csdn.net/右上边的效果,急求代码 在google搜索一下bcastr 有很多现成的可以下载 select top 5 picture_name from PictureTable order by PictureData Desc从图片表里取出最新的图片。 给fresh, 或者js作为数据源,切换好了,图片切换的程序,网上很多。 那是个flash套js的,需要你从数据库里把信息读出来,然后动态打出来js就可以了 你需要代码,就留个联系方式吧,要不有代码也没法给你呀,而且套个flash 但是下面有1.2.3这个人为选择图片也?我将image放在datalist里做的,但是我点击1.2.3时,传递的参数(对应图片的id)不能获取呀!代码如下:<asp:DataList ID="DataList1" runat="server" Height="299px" Width="268px"> <ItemTemplate> <div style=" border:1px ; border-color:Yellow; border-style:ridge; width: 266px; height: 298px; position:absolute; top:1px"> <div id="s<%# DataBinder.Eval(Container.DataItem,"id") %>" style=" display:none; border:0px ; border-color:Yellow; border-style:ridge; width: 266px; height: 276px; position:absolute;"> <img id="image<%# DataBinder.Eval(Container.DataItem,"id") %>" style=" FILTER:revealTrans(Duration=4.0, Transition=23);height:276px; width:266px; margin-top:0px;" src="<%# DataBinder.Eval(Container.DataItem,"path") %>" alt="<%# DataBinder.Eval(Container.DataItem,"name") %>" /> <div onclick="xian(1)" style=" cursor:hand; border:1px ; border-color:Lime; border-style:ridge; width:20px; height:20px; position:absolute; left:226px; margin-bottom:4px; margin-top:252px;" align="center">3</div> <div onclick="xian(2)" style="cursor:hand; border:1px ; border-color:Lime; border-style:ridge; width:20px; height:20px; position:absolute; left:203px; margin-bottom:4px; margin-top:252px;" align="center">2</div> <div onclick="xian(3)" style="cursor:hand; border:1px ; border-color:Lime; border-style:ridge; width:20px; height:20px; position:absolute; left:180px; margin-bottom:4px; margin-top:252px;" align="center"">1</div> </div> <div style=" border:0px ; border-color:Black; border-style:ridge; width: 268px; height: 22px; position:absolute; top:278px"> <div style="width:266px; height:22px;left:0px; position:absolute; background-color:Silver;"> <%--<asp:Label ID="Label1" runat="server" Text="您的需要就是我们的服务!"></asp:Label>--%> <marquee width="266" scrollamount="3" scrolldelay="3" direction="left" onMouseOver="this.scrollAmount='0'" onMouseOut="this.scrollAmount='1'" style="color:red">您的需要就是我们的服务!</marquee> </div> </div> function xian(th) { for(i=1;i<=3;i++) { document.getElementById('s'+i).style.display="none"; } document.getElementById('s'+th).style.display='block'; } </div> </ItemTemplate> </asp:DataList> 我这边有一个,lz看看<script type="text/javascript"> var focus_width=299//图片宽200 var focus_height=245//图片高130 var text_height=20//设置显示文字标题高度,最佳为20(如果不显示标题值设为0即可) var swf_height = focus_height+text_height //var pics="" //var links="" //var texts="" var pics='<%=pics %>' var links='<%=links %>' var texts='<%=texts %>' 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"><param name="movie" value="images/focus.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 ID="focus_flash" src="images/focus.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" />');document.write('</object>'); </script> 要用js,或者flash可以实现的! 批量删除delete news where id=@id(多个参数)该怎样写? 设置DIV的位置 怎样把图片的二进制流输出到HtmlTable控件的CELL中? 关于DataGrid数据绑定问题 菜鸟问题:文本框的输入约束 一个很奇怪的问题?????????? 请教一个有关ASP错误运行时怎么解决? 文本转语音,在vs2005中如何实现??? 关于正则的一个问题,如何在匹配到的内容前后加上空格? ××××回答问题,兼得分×××× 选项卡切换问题 有没有比较成熟的资源类网站程序
有很多现成的可以下载
<asp:DataList ID="DataList1" runat="server" Height="299px" Width="268px">
<ItemTemplate>
<div style=" border:1px ; border-color:Yellow; border-style:ridge; width: 266px; height: 298px; position:absolute; top:1px">
<div id="s<%# DataBinder.Eval(Container.DataItem,"id") %>" style=" display:none; border:0px ; border-color:Yellow; border-style:ridge; width: 266px; height: 276px; position:absolute;">
<img id="image<%# DataBinder.Eval(Container.DataItem,"id") %>" style=" FILTER:revealTrans(Duration=4.0, Transition=23);height:276px; width:266px; margin-top:0px;" src="<%# DataBinder.Eval(Container.DataItem,"path") %>" alt="<%# DataBinder.Eval(Container.DataItem,"name") %>" />
<div onclick="xian(1)" style=" cursor:hand; border:1px ; border-color:Lime; border-style:ridge; width:20px; height:20px; position:absolute; left:226px; margin-bottom:4px; margin-top:252px;" align="center">3</div>
<div onclick="xian(2)" style="cursor:hand; border:1px ; border-color:Lime; border-style:ridge; width:20px; height:20px; position:absolute; left:203px; margin-bottom:4px; margin-top:252px;" align="center">2</div>
<div onclick="xian(3)" style="cursor:hand; border:1px ; border-color:Lime; border-style:ridge; width:20px; height:20px; position:absolute; left:180px; margin-bottom:4px; margin-top:252px;" align="center"">1</div>
</div>
<div style=" border:0px ; border-color:Black; border-style:ridge; width: 268px; height: 22px; position:absolute; top:278px">
<div style="width:266px; height:22px;left:0px; position:absolute; background-color:Silver;">
<%--<asp:Label ID="Label1" runat="server" Text="您的需要就是我们的服务!"></asp:Label>--%>
<marquee width="266" scrollamount="3" scrolldelay="3" direction="left" onMouseOver="this.scrollAmount='0'" onMouseOut="this.scrollAmount='1'" style="color:red">您的需要就是我们的服务!</marquee>
</div>
</div>
function xian(th)
{
for(i=1;i<=3;i++)
{
document.getElementById('s'+i).style.display="none";
}
document.getElementById('s'+th).style.display='block';
}
</div>
</ItemTemplate>
</asp:DataList>
<script type="text/javascript">
var focus_width=299//图片宽200
var focus_height=245//图片高130
var text_height=20//设置显示文字标题高度,最佳为20(如果不显示标题值设为0即可)
var swf_height = focus_height+text_height
//var pics=""
//var links=""
//var texts=""
var pics='<%=pics %>'
var links='<%=links %>'
var texts='<%=texts %>' 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"><param name="movie" value="images/focus.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 ID="focus_flash" src="images/focus.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" />');document.write('</object>');
</script>