日期:2014-05-17  浏览次数:21074 次

求个东西,能使图片轮播的源代码,最好是不需要修改就能运行的实例。谢谢!
就像新浪那样,上面大图片,下面导航还有标题。

------解决方案--------------------

<script type= "text/javascript ">
<!--

var focus_width=260
var focus_height=164
var text_height=25
var swf_height = focus_height+text_height

var pics= 'http://image2.sina.com.cn/ty/U346P6T29D1F3463DT20051205120604.jpg|http://image2.sina.com.cn/ty/U346P6T29D1F3465DT20051205120604.jpg '
var links= 'http://sports.sina.com.cn/z/chinaoverseas/|http://sports.sina.com.cn/z/chinaoverseas/ '
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= "http://image2.sina.com.cn/bj/zonghe/pixviewer.swf ";> <param name= "quality " value= "high "> <param name= "bgcolor " value= "#DADADA "> ');
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= "http://image2.sina.com.cn/bj/zonghe/pixviewer.swf "; wmode= "opaque " 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 " pluginspage= "http://www.macromedia.com/go/getflashplayer "; /> '); document.write( ' </object> ');

//-->
</script>


var focus_width=260 //定义场景宽
var focus_height=164 //定义场景高
var text_height=25 //定义文本显示区域行高
var pics= 'http://image2.sina.com.cn/ty/U346P6T29D1F3463DT20051205120604.jpg|http://image2.sina.com.cn/ty/U346P6T29D1F3465DT20051205120604.jpg '
//定义显示的图片,以|分割
var links= 'http://sports.sina.com.cn/z/chinaoverseas/|http://sports.sina.com.cn/z/chinaoverseas/ '
//定义链接,与图片一一对应,以|分割
var texts= '孙继海庆祝曼城大胜|邵佳一难以挽回败局 '
//定义相关图片说明,与图片一一对应以|分割


------解决方案--------------------
http://www.smallrain.net/jslist.asp
图形图像那,多的是
------解决方案--------------------
提供可以从后台控制的代码给你,是完整的了。
<% set rs=server.createobject( "adodb.recordset ")
rs.open "select * from 表 ",conn,1,1

pic=rs( "pic ")
link=rs( "piclink ")
texts=trim(rs( "title "))

rs.movenext
do while not rs.eof
pic=pic& "| "&rs( "pic ")
lin