像新浪的新闻页面上面
新闻图片自动翻转 右下角有数字 1,2,3,4
点击数字,自动换相对应的图片
如:http://tech.sina.com.cn/mobile/ 这个页面左上方的效果
哪位高手能写详细点注释告诉我 我在网络上搜了很多 可是都没实现这个效果 谢谢了
新闻图片自动翻转 右下角有数字 1,2,3,4
点击数字,自动换相对应的图片
如:http://tech.sina.com.cn/mobile/ 这个页面左上方的效果
哪位高手能写详细点注释告诉我 我在网络上搜了很多 可是都没实现这个效果 谢谢了
window.onload = initBannerLink;var adImages = new Array("images/banner1.gif","images/banner2.gif","images/banner3.gif");
var adURL = new Array("negrino.com","sun.com","microsoft.com");
var thisAd = 0;function rotate() {
thisAd++;
if (thisAd == adImages.length) {
thisAd = 0;
}
document.getElementById("adBanner").src = adImages[thisAd]; setTimeout("rotate()", 3 * 1000);
}function newLocation() {
document.location.href = "http://www." + adURL[thisAd];
return false;
}function initBannerLink() {
if (document.getElementById("adBanner").parentNode.tagName == "A") {
document.getElementById("adBanner").parentNode.onclick = newLocation;
}
rotate();
}
这个东东?
你也可以下网上了FLASH 自己调用