1
<div id="theimages">
<!-- DO NOT CHANGE ANYTHING AFTER THIS LINE -->
<a id="a1" href="http://www.auctionittoday.com/flashshow/image/1001A.jpg" border= "0" ><img src="http://www.auctionittoday.com/flashshow/image/1001A.jpg" width="128" border="0" alt="Click on Image to enlarge"><BR><font face="Veranda" point-size="8/9pt">Click on Image to enlarge</font><br></a><BR> <a href="http://www.auctionittoday.com/flashshow/image/1001B.jpg"border= "0"><img src="http://www.auctionittoday.com/flashshow/image/1001B.jpg" width="128" border="0" alt="Click on Image to enlarge"><BR><font face="Veranda" point-size="8/9pt">Click on Image to enlarge</font><br></a><BR> <a href="http://www.auctionittoday.com/flashshow/image/1001C.jpg"border= "0"><img src="http://www.auctionittoday.com/flashshow/image/1001C.jpg" width="128" border="0" alt="Click on Image to enlarge"><BR><font face="Veranda" point-size="8/9pt">Click on Image to enlarge</font><br></a><BR> <a href="http://www.auctionittoday.com/flashshow/image/1001D.jpg"border= "0"><img src="http://www.auctionittoday.com/flashshow/image/1001D.jpg" width="128" border="0" alt="Click on Image to enlarge"><BR>
 <font face="Veranda" point-size="8/9pt">Click on Image to enlarge</font><br></a><BR> 
 <a href="http://www.auctionittoday.com/flashshow/image/1001E.jpg"border= "0"><img src="http://www.auctionittoday.com/flashshow/image/1001E.jpg" width="128" border="0" alt="Click on Image to enlarge"><BR><font face="Veranda" point-size="8/9pt">Click on Image to enlarge</font><br></a><BR>
<!-- DO NOT CHANGE ANYTHING BEFORE THIS LINE -->
</div>
<script>
alert(document.all.a1.href);//或者alert(document.all.theimages.childNodes[0].href);
</script>

解决方案 »

  1.   

    2://屏蔽事件
    <a id="a1" href="http://www.auctionittoday.com/flashshow/image/1001A.jpg" border= "0"  onclick="alert('sdf') ;return false">
      

  2.   

    忘了说拉 这个项目要求 不可以改
    <!-- DO NOT CHANGE ANYTHING AFTER THIS LINE -->和
    <!-- DO NOT CHANGE ANYTHING BEFORE THIS LINE -->之间的内容,不过还谢谢拉alert(document.all.a1.href);这个就不能用了alert(document.all.theimages.childNodes[0].href);这个在IE中可以,但在火狐中是undefined
      

  3.   

    alert(document.all.theimages.childNodes[0].href);这个在IE中可以,
    ==>
    alert(document.getElementById("a1").href);
      

  4.   

    alert(document.all.theimages.childNodes[0].href);这个在IE中可以,火狐就不行了alert(document.getElementById("a1").href);这个也可以,但是现在不能改里面的ID 所以用不了拉,其实都是客户提出的要求,不然也不用怎么麻烦了
      

  5.   

    熟悉web2.0,blog,ajax,rss,.net2005等请进入
    http://blog.csdn.net/datehr/category/198305.aspx