<!DOCTYPE html><html><head> <meta charset="utf-8"> <title>html</title> <style type="text/css"> </style> </head><body><h1>图片合集</h1> <ul> <li><a href="1.jpg" title="long">1</a></li> <li><a href="2.jpg" title="long2">2</a></li> <li><a href="3.jpg" title="buxiang">3</a></li> <li><a href="5.jpg" title="shanshui">4</a></li> </ul><img id="placeholder" src="10.jpeg" alt="tupian"> <script type="text/javascript" src="4.js"></script></body></html> function showpic(whichpic){ var source=whichpic.getAttribute("href");var placeholder=document.getElementById("placeholder"); placeholder.setAttribute("src",source);}
添加回答
举报
0/150
提交
取消