国产成人精品无码青草_亚洲国产美女精品久久久久∴_欧美人与鲁交大毛片免费_国产果冻豆传媒麻婆精东

15158846557 在線咨詢 在線咨詢
15158846557 在線咨詢
所在位置: 首頁 > 營銷資訊 > 網(wǎng)站運營 > JavaScript<制作網(wǎng)絡(luò)相冊2>

JavaScript<制作網(wǎng)絡(luò)相冊2>

時間:2023-07-26 13:33:01 | 來源:網(wǎng)站運營

時間:2023-07-26 13:33:01 來源:網(wǎng)站運營

JavaScript<制作網(wǎng)絡(luò)相冊2>:<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>網(wǎng)絡(luò)相冊</title></head><body><a href="00.jpg" title="胸:120,腰:78,臀:100">親恒結(jié)衣</a><a href="03.jpg" title="胸:120,腰:68,臀:100">波波姐</a><a href="04.jpg" title="胸:120,腰:88,臀:100">吉澤明步</a><img src="02.jpg" alt="" width="400" id="temp"><p id="info">120,18,100</p><script> //獲取頁面中所有的A元素var a = document.getElementsByTagName('a'); //獲取一下A元素的數(shù)量 var length = a.length; //給所有的A元素添加一個點擊事件 for (var i=0; i<length; i++){ a[i].onclick = function () { //獲取到當(dāng)前鏈接中的href屬性值 var source = this.getAttribute('href'); var title = this.getAttribute('title'); //獲取一個占位符圖片的src值 var temp = document.getElementById('temp'); var info = document.getElementById('info'); //設(shè)置占位符力圖片的src屬性 temp.setAttribute('src', source); info.innerHTML = title; //禁用A的默認(rèn)行為 return false; } }</script></body></html>

關(guān)鍵詞:相冊,網(wǎng)絡(luò)

74
73
25
news

版權(quán)所有? 億企邦 1997-2025 保留一切法律許可權(quán)利。

為了最佳展示效果,本站不支持IE9及以下版本的瀏覽器,建議您使用谷歌Chrome瀏覽器。 點擊下載Chrome瀏覽器
關(guān)閉