用正则表达式啊。获取相应的src
解决方案 »
- 一个JSP页面中的javascript如何调用另一个JSP页面的javascript
- jquery取的select对象
- javascript 怎样判断鼠标是否在UL控件上?
- 用xml做数据库的论坛
- 急求相助!showModalDialog()打开的对话框做提交时总弹出新窗口,或者在主窗口中用ifram 框架但在对话框中又不执行提交操作.为什么?
- 一个一直没有搞清楚的问题?
- 请问哪里有比较完整的javascript的教材或参考
- window.location和window.open到底有什么区别??(急,做完过年)
- 各位大哥大姐高手们,救命啊!!!!!!!!!!!
- 关于获取机器IP的问题(急)
- javascript填充HTML出问题了 ,请会的帮助解决一下,谢谢
- JS关于省市县三级关联菜单“缺少对象”的问题,内详!(在线等)
用正则表达式啊。获取相应的src
------------------------------------------
没那么简单,不然我给100分做什么?现在我正式宣布
能解决我的问题的我给300分!!现在我正式宣布
能解决我的问题的我给300分!!现在我正式宣布
能解决我的问题的我给300分!!
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>
通过script又通过iframe到你的当前页
而且链接的地址都绑到了函数里
0-0是否也可以给我分
<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>
暂时遇到的困难是无法取到iframe中的内容,因为域不同,禁止访问,所以无法得到iframe中的对象
关注中,期待高手