谁知道的教下
迅雷首页的今日推荐那一块怎么做啊?
- 提问者网友:树红树绿
- 2021-07-30 02:27
- 五星知识达人网友:末日狂欢
- 2021-07-30 03:26
1.新建一个.js文件例:flash_player.js
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="500" height="204" id="switcher" align="middle">');
document.write('<param name="allowScriptAccess" value="always" />');
document.write('<param name="allowFullScreen" value="false" />');
document.write('<param name="movie" value="switcher.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />');
document.write('<embed src="switcher.swf" quality="high" bgcolor="#ffffff" width="500" height="204" name="switcher" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage=" http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
2.建立一个data.xml文件
<?xml version="1.0" encoding="utf-8"?><data>
<item url=" http://www.123.cn/" target="_blank" img="images/d784976416a1345cbc12131a9a595c9d.jpg" thumb="images/5b2f90fada64e44e7a0323a48812753b.jpg" />
<item url=" http://www.123.cn/" target="_blank" img="images/b606c9322dbc0b5e181df4edabcd4113.jpg" thumb="images/fcd1ef11d1f078cb45d52cba51c02aaa.jpg" />
<item url=" http://www.123.cn/" target="_blank" img="images/21c3adda3e69f54d85649c030481cb30.jpg" thumb="images/352bfe727650f03f50235b8ca80f576b.jpg" />
<item url=" http://www.123.cn/" target="_blank" img="images/7e4778b27e22d8fb6a2d07afb75b3bf3.jpg" thumb="images/6789e5788ef7ef28a97a6a9b35ad65f8.jpg" />
<item url=" http://www.123.cn/" target="_blank" img="images/1217ee6c019f4a87143a2d72f67cef10.jpg" thumb="images/9331e48a15dd2dd76fb673533d4a5ec7.jpg" />
</data>
备注:上面加粗的10张图片,并将其放入到images文件夹中
制作一个switcher.swf影片,就ok了。可以试试看哦