iframe标签的属性
动态src参数传递的过程:
<script LANGUAGE="JavaScript">
function dd(){
var id = window.dialogArguments;
document.getElementById("oframe").src = "A.jsp?id=" + id;
}
dd();
</script>
还有一个实例
<img src="http://www.wineimg.com/userfiles/image/2013/01/20/SuperStar_24.jpg" width="131"
height="35" alt="AAA" onclick="dd.call(this);" />
<iframe id='oframe' width="100%" height="500" frameborder="0" scrolling="no"
src="http://widget.weibo.com/livestream/listlive.php?
language=zh_cn&width=0&height=500&uid=&skin=1&refer=1&appkey=&pic=0&titlebar=1&border=1&publis
h=1&atalk=1&recomm=0&at=0&atopic=&ptopic=%E9%85%92%E7%BE%8E%E7%BD%91&dpc=1">
function dd(){
var id = window.dialogArguments;
var url = "http://widget.weibo.com/livestream/listlive.php?
language=zh_cn&width=0&height=500&uid=&skin=1&refer=1&appkey=&pic=0&titlebar=1&border=1&publis
h=1&atalk=1&recomm=0&at=0&atopic=" + "&ptopic="+this.alt;
document.getElementById("oframe").src = url;
}
这个是图片点击事件