reset and begin
4/29/2010

chuyen link va anh javascript


// Created by: Lee Underwood :: http://javascript.internet.com/
var t;
var bannerImg = new Array();
// Enter the names of the images below
bannerImg[0]="1.jpg";
bannerImg[1]="2.jpg";
bannerImg[2]="3.jpg";

var linkimg = new Array();

linkimg[0]="http://dantri.com.vn";
linkimg[1]="http://vtc.vn";
linkimg[2]="http://saovn.com";
var newBanner = 0
var totalBan = bannerImg.length

function cycleBan() {
newBanner++
if (newBanner == totalBan) {
newBanner = 0
}
document.banner.src=bannerImg[newBanner]
document.getElementById('linkchuyen').href=linkimg[newBanner]
t=setTimeout("cycleBan()", 2*1000)
}
function stop(){
clearTimeout(t);
}

window.onload=cycleBan;


a img{
border:3px solid #f2f2f2;
margin:2px;
}





Bloger Comments
G+ Comments
Comments FaceBook

No comments:

List

Profiles Information


About me : Nothing is 1 vài thứ - 1985

Places I've Lived : I Hà Nội

Home Page : http://www.shimivn.blogspot.com/

Think : 1:1000000000

Languages spoken : Vietnamese,English.

Mobile : sony C2305

dell : i3-Ram 3GB- HDD 250GB .