|
热门文章 |
|
|
|
|
新浪新闻频道带缩略图的flash图片切换 |
来源:瑞城工作室 更新时间:2010/9/1 10:23:25 阅读次数: 我要投稿 |
|
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>新浪新闻频道带缩略图的flash图片切换</title> <meta http-equiv="content-type" content="text/html;charset=gb2312"> </head> <body> <script language="javascript"> //定义图片路径等参数// //定义大图的路径 var bigPic0 ="http://www.cwydesign.com/effects/UploadFiles_7074/201008/2010081122582652.jpg"; var bigPic1 ="http://www.cwydesign.com/effects/UploadFiles_7074/201008/2010081122582644.jpg"; var bigPic2 ="http://www.cwydesign.com/effects/UploadFiles_7074/201008/2010081122582622.jpg"; var bigPic3 ="http://www.cwydesign.com/effects/UploadFiles_7074/201008/2010081122582661.jpg"; //小图路径 var smallPic0 ="http://www.cwydesign.com/effects/UploadFiles_7074/201008/2010081122582652.jpg"; var smallPic1 ="http://www.cwydesign.com/effects/UploadFiles_7074/201008/2010081122582644.jpg"; var smallPic2 ="http://www.cwydesign.com/effects/UploadFiles_7074/201008/2010081122582622.jpg"; var smallPic3 ="http://www.cwydesign.com/effects/UploadFiles_7074/201008/2010081122582661.jpg"; //大图的点击后的URL var PicURL0 ="http;//www.cwydesign.com"; var PicURL1 ="http;//www.cwydesign.com"; var PicURL2 ="http;//www.cwydesign.com"; var PicURL3 ="http;//www.cwydesign.com"; //标题 var t0="图片(一)"; var t1="图片(二)"; var t2="图片(三)"; var t3="图片(四)"; //描述 var describe0="图片(一)"; var describe1="图片(二)"; var describe2="图片(三)"; var describe3="图片(四)"; // var t=t0+"[|]"+t1+"[|]"+t2+"[|]"+t3; var bigPicURL=bigPic0+"[|]"+bigPic1+"[|]"+bigPic2+"[|]"+bigPic3; var smallPicURL=smallPic0+"[|]"+smallPic1+"[|]"+smallPic2+"[|]"+smallPic3; var PicURL=PicURL0+"[|]"+PicURL1+"[|]"+PicURL2+"[|]"+PicURL3; var describe = describe0+"[|]"+describe1+"[|]"+describe2+"[|]"+describe3; // document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='535' height='356' ID='FSCommand' NAME='focus_one' align='middle'><param name='allowScriptAccess' value='sameDomain'><param name='movie' value='http://www.cwydesign.com/effects/UploadFiles_7074/201009/2010090110280510.swf'><param name='FlashVars' value='bigPicURL=" + bigPicURL + "&smallPicURL=" + smallPicURL + "&t="+t+"&PicURL="+PicURL+"&describe="+describe+"'><param name='quality' value='high'><param name='bgcolor' value='#ffffff'><embed src='http://www.cwydesign.com/effects/UploadFiles_7074/201009/2010090110280510.swf' FlashVars='bigPicURL=" + bigPicURL + "&smallPicURL=" + smallPicURL + "&t="+t+"&PicURL="+PicURL+"&describe="+describe+"' quality='high' bgcolor='#ffffff' width='535' height='356' name='focus' swLiveConnect='true' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'></object>"); </script> </body> </html> |
|
上一篇文章: 一个简单实用的js相册效果下一篇文章: 仿eBay产品幻灯片展示滑动切换效果 |
|
|