做爰高潮a片〈毛片〉,尤物av天堂一区二区在线观看,一本久久A久久精品VR综合,添女人荫蒂全部过程av

最新文章專題視頻專題問答1問答10問答100問答1000問答2000關鍵字專題1關鍵字專題50關鍵字專題500關鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關鍵字專題關鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
問答文章1 問答文章501 問答文章1001 問答文章1501 問答文章2001 問答文章2501 問答文章3001 問答文章3501 問答文章4001 問答文章4501 問答文章5001 問答文章5501 問答文章6001 問答文章6501 問答文章7001 問答文章7501 問答文章8001 問答文章8501 問答文章9001 問答文章9501
當前位置: 首頁 - 科技 - 知識百科 - 正文

javascript實現(xiàn)循環(huán)廣告條效果

來源:懂視網(wǎng) 責編:小OO 時間:2020-11-27 22:24:02
文檔

javascript實現(xiàn)循環(huán)廣告條效果

本文實例為大家分享了javascript實現(xiàn)循環(huán)廣告條的具體代碼,供大家參考,具體內(nèi)容如下:html代碼。<;<。DOCTYPE html>;<;html>;<;head>;<;title>;Rotating Banner<;/title>;<;script src="script07.js">;<;/script>;<;link rel="stylesheet" href="script01.css" rel="external nofollow" >;<;/head>;<;body>;<;div class="centered">;<;<;/div>;<;/body>。
推薦度:
導讀本文實例為大家分享了javascript實現(xiàn)循環(huán)廣告條的具體代碼,供大家參考,具體內(nèi)容如下:html代碼。<;<。DOCTYPE html>;<;html>;<;head>;<;title>;Rotating Banner<;/title>;<;script src="script07.js">;<;/script>;<;link rel="stylesheet" href="script01.css" rel="external nofollow" >;<;/head>;<;body>;<;div class="centered">;<;<;/div>;<;/body>。

本文實例為大家分享了javascript實現(xiàn)循環(huán)廣告條的具體代碼,供大家參考,具體內(nèi)容如下

html代碼:

<!DOCTYPE html>
<html>
<head>
<title>Rotating Banner</title>
<script src="script07.js"></script>
<link rel="stylesheet" href="script01.css" rel="external nofollow" >
</head>
<body>
<div class="centered">
<img src="images/reading1.gif" id="adBanner" alt="Ad Banner">
</div>
</body>
</html>

css代碼:

body {
background-color: white;
color: black;
font-size: 20px;
font-family: "Lucida Grande", Verdana,Arial, Helvetica, sans-serif;
}
h1, th {
font-family: Georgia, "Times New Roman",Times, serif;
}
h1 {
font-size: 28px;
}
table {
border-collapse: collapse;
}
th, td {
padding: 10px;
border: 2px #666 solid;
text-align: center;
width: 20%;
}
#free, .pickedBG {
background-color: #f66;
}
.winningBG {
background-image:url(images/redFlash.gif);
}

js代碼:

window.onload = rotate;
var thisAd = 0;
function rotate() {
var adImages = new Array("images/ reading1.gif","images/reading2. gif","images/reading3.gif");
thisAd++;
if (thisAd == adImages.length) {
thisAd = 0;
}
document.getElementById("adBanner").src = adImages[thisAd];
setTimeout(rotate, 3 * 1000);//設置時間,本每隔多長時間改變廣告條中的GIF
}

在循環(huán)廣告條中添加鏈接:修改js的代碼

window.onload = initBannerLink;
var thisAd = 0;
function initBannerLink() {
if (document.getElementById("adBanner").parentNode.tagName == "A") {
document.getElementById("adBanner").parentNode.onclick = newLocation;
}
rotate();
}
function newLocation() {
var adURL = new Array("negrino.com","sun.com","microsoft.com");
document.location.href = "http://www." + adURL[thisAd];
return false;
}
function rotate() {
var adImages = new Array("images/ reading1.gif","images/reading2. gif","images/reading3.gif");
thisAd++;
if (thisAd == adImages.length) {
thisAd = 0;
}
document.getElementById("adBanner").src = adImages[thisAd];
setTimeout(rotate, 3 * 1000);//設置時間,本每隔多長時間改變廣告條中的GIF
}

聲明:本網(wǎng)頁內(nèi)容旨在傳播知識,若有侵權等問題請及時與本網(wǎng)聯(lián)系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

文檔

javascript實現(xiàn)循環(huán)廣告條效果

本文實例為大家分享了javascript實現(xiàn)循環(huán)廣告條的具體代碼,供大家參考,具體內(nèi)容如下:html代碼。<;<。DOCTYPE html>;<;html>;<;head>;<;title>;Rotating Banner<;/title>;<;script src="script07.js">;<;/script>;<;link rel="stylesheet" href="script01.css" rel="external nofollow" >;<;/head>;<;body>;<;div class="centered">;<;<;/div>;<;/body>。
推薦度:
  • 熱門焦點

最新推薦

猜你喜歡

熱門推薦

專題
Top
主站蜘蛛池模板: 南开区| 张家港市| 武穴市| 宜昌市| 忻州市| 高安市| 大新县| 甘肃省| 怀安县| 新丰县| 洛南县| 新和县| 龙海市| 芜湖县| 永城市| 固镇县| 承德市| 道孚县| 金沙县| 万宁市| 永安市| 伊金霍洛旗| 兖州市| 南阳市| 舒兰市| 谢通门县| 彝良县| 珠海市| 井冈山市| 汝州市| 射阳县| 东城区| 定边县| 梅州市| 嵊州市| 万年县| 涿鹿县| 辰溪县| 阜南县| 聂拉木县| 枣庄市|