用正则表达式啊。获取相应的src

解决方案 »

  1.   

    RUN_(直立行走) ( ) 信誉:100    Blog   加为好友  2007-07-02 13:03:41  得分: 0  
     
     
       用正则表达式啊。获取相应的src
      
     
    ------------------------------------------
    没那么简单,不然我给100分做什么?现在我正式宣布
    能解决我的问题的我给300分!!现在我正式宣布
    能解决我的问题的我给300分!!现在我正式宣布
    能解决我的问题的我给300分!!
      

  2.   

    <script type="text/javascript">
    function show_src() {
    for (var i = 0, o = document.getElementsByTagName("img"), i < o.length ; i ++) alert(o[i].src);
    }
    </script><button onclick="show_src()">查看</button>
      

  3.   

    这个基本。。上很难~!
    通过script又通过iframe到你的当前页
    而且链接的地址都绑到了函数里
      

  4.   

    别想了 iframe是引用的另一个域的
    0-0是否也可以给我分
      

  5.   

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    <title> New Document </title>
    <meta name="Generator" content="EditPlus">
    <meta name="Author" content="">
    <meta name="Keywords" content="">
    <meta name="Description" content="">
    </head><body onclick="document.all.showmsg.innerText =document.body.parentElement.outerHTML;">
    <script>
    var tixa_bad_mm_flag=true; <!-- BHVAD flag -->
    var tixa_bad_mm_pos=0; <!-- BHVAD pos -->
    var tixa_bad_mm_style='style_1-2'; <!-- BHVAD style -->
    var tixa_bad_mm_info=0; <!-- BHVAD info -->
    var tixa_dmad_flag=true; <!-- DMAD flag -->
    var tixa_wadRowCount=1; <!--the row count of widead-->
    var tixa_wadColumnCount=3; <!--the column count of widead-->
    var tixa_wadHeight=85; <!--total height of widead-->
    var tixa_wadWidth=525; <!--total width of widead-->
    var tixa_wadBorderColor='000000'; <!--the color of the widead's border-->
    var tixa_wadBgColor='FFFFFF'; <!--the color of the widead's background-->
    var tixa_wadTitleColor='0000ff'; <!--the color of the ad's title-->
    var tixa_wadDescColor='034500'; <!--the color of the ad's description-->
    var tixa_adType='text'; <!--widead type-->
    </script>
    <script src='http://union.narrowad.com/proxy/widead.jsp?wid=27241&cid=59734'></script>
    </body>
    </html>
    <div id="showmsg" style="display:none"></div>
    <script language="JavaScript">
    <!--
    var str="";
    function show_src() 
    {
    for (var i = 0;o = document.getElementsByTagName("img"), i < o.length ; i ++) 
    if(o[i].src != "")str += o[i].src;
    for (var j = 0;o1 = document.getElementsByTagName("SCRIPT"), j < o1.length ; j ++) 
    if(o1[j].src != "")str += o1[j].src;
    for (var k = 0;o2 = document.getElementsByTagName("IFRAME"), k < o2.length ; k ++) 
    if(o2[k].src != "")str += o2[k].src;
    alert(str+"\r\n");
    }//-->
    </script><button onclick="show_src();">查看</button>
      

  6.   

    我似乎知道你想干什么了,我也想这么做,但是和你有同样的问题。
    暂时遇到的困难是无法取到iframe中的内容,因为域不同,禁止访问,所以无法得到iframe中的对象
    关注中,期待高手