信息发布系统,有图片的新闻。首页要显示最新发布的有图片的新闻的图片。如首页.能够自动加载最新X片新闻的图片且可以自动切换。

解决方案 »

  1.   

    就是首页http://www.csdn.net/右上边的效果,急求代码
      

  2.   

    在google搜索一下bcastr   
    有很多现成的可以下载
      

  3.   

    select top 5 picture_name from PictureTable order by PictureData Desc从图片表里取出最新的图片。 给fresh, 或者js作为数据源,切换好了,图片切换的程序,网上很多。
      

  4.   

    那是个flash套js的,需要你从数据库里把信息读出来,然后动态打出来js就可以了
      

  5.   

    你需要代码,就留个联系方式吧,要不有代码也没法给你呀,而且套个flash
      

  6.   

    但是下面有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>
      

  7.   

    我这边有一个,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>
      

  8.   

    要用js,或者flash可以实现的!