日期:2014-05-18  浏览次数:20449 次

像主页那样的动态图片导航怎么作的
像CSDN主页上导航的那一组图片是怎么作的.可以给点代码吗?

------解决方案--------------------
<script type= "text/javascript ">
var pics= " <%=pics %> ";
var links= " <%=links %> ";
var focus_width=440;
var focus_height=266;
var swf_height = focus_height;
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= "/Player.swf "> <param name= "quality " value= "high "> <param name= "bgcolor " value= "#F0F0F0 "> ');
document.write( ' <param name= "menu " value= "true "> <param name=wmode value= "opaque "> ');
document.write( ' <param name= "FlashVars " value= "pics= '+pics+ '&links= '+links+ '&borderwidth= '+focus_width+ '&borderheight= '+focus_height+ ' "> ');
document.write( ' <embed src= "/Player.swf " wmode= "opaque " FlashVars= "pics= '+pics+ '&links= '+links+ '&borderwidth= '+focus_width+ '&borderheight= '+focus_height+ ' " menu= "false " bgcolor= "#F0F0F0 " 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>
------解决方案--------------------
把邮箱告诉我 我发给你。 收到要给分结贴哟!

------解决方案--------------------
<div class= "left ">
<script type= "text/javascript ">
imgUrl1= "images/01.jpg ";
imgtext1= "1 "
imgLink1=escape( "http:// ");
imgUrl2= "images/02.jpg ";
imgtext2= "2 "
imgLink2=escape( "http:// ");
imgUrl3= "images/03.jpg ";
imgtext3= "3 "
imgLink3=escape( "http:// ");
imgUrl4= "images/04.jpg ";
imgtext4= "4 "
imgLink4=escape( "http:// ");
imgUrl5= "images/05.jpg ";
imgtext5= "5 "
imgLink5=escape( "http:// ");

var focus_width=473
var focus_height=295
var text_height=0
var swf_height = focus_height+text_height

var pics=imgUrl1+ "| "+imgUrl2+ "| "+imgUrl3+ "| "+imgUrl4+ "| "+imgUrl5
var links=imgLink1+ "| "+imgLink2+ "| "+imgLink3+ "| "+imgLink4+ "| "+imgLink5
var texts=imgtext1+ "| "+imgtext2+ "| "+imgtext3+ "| "+imgtext4+ "| "+imgtext5

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=