我想在網(wǎng)頁里點擊鏈接把圖片顯示在下面的占位符圖片里,怎么實現(xiàn)不了?代碼那里有問題?<!doctype html><html><head><meta charset="UTF-8" /> <title>Document</title></head><body><h2>你是誰我是誰</h2><ul> <li><a href="../img/201501241607401485.jpg">我拿你</a></li> <li><a href="../img/2015419153163014.jpg">的錢了</a></li> <li><a href="../img/FbeTDhbkgvscmbf.jpg">買東東</a></li></ul><img id="box" src="../img/gxy1211bu03s.jpg"/><script type="text/javascript">function hanShu(ooppn){ oopp.getAttribute("href"); var ppool = ooppn.getAttribute("href"); document.getElementById("box"); var kxxaq = document.getElementById("box"); kxxaq.setAttribute("src",ppool);} </script></body></html>
為什么實現(xiàn)不了圖片庫?
慕桂英3389331
2018-10-17 17:14:22