<div class="bannerBox">
<div id="flashs">
<div
class="bgitem" id="flashbg0" style="background: url('/img/barnerBox.jpg') no-repeat scroll center top;
height: 500px; width: 100%; cursor: pointer; margin: 0 auto;"> </div>
<div
class="bgitem" id="flashbg1" style="background: url('/img/ad2.jpg') no-repeat scroll center top;
height: 500px; width: 100%; cursor: pointer; margin: 0 auto;"> </div>
<div
class="bgitem" id="flashbg2" style="background: url('/img/ad3.jpg') no-repeat scroll center top;
height: 500px; width: 100%; cursor: pointer; margin: 0 auto;"> </div>
<div
class="bgitem" id="flashbg3" style="background: url('/img/ad5.jpg') no-repeat scroll center top;
height: 500px; width: 100%; cursor: pointer; margin: 0 auto;"> </div>
<script type="text/javascript" src="/JS/flash.js"></script>
</div>
这是代码,需要在哪里加
按照你的代码只能用我这种方法 给每个DIV后面加一个onclick事件,如下代码
<div onclick="window.location.href= '你要跳转的链接';return false">
追问加在那里啊?
本回答被提问者和网友采纳