Iframe thickbox2.0使用的方法

时间:2009-03-05    点击:114   
thickbox.js中的
复制代码 代码如下:

function TB_init(){
$("a.thickbox").click(function(){
var t = this.title || this.name || null;
var g = this.rel || false;
TB_show(t,this.href,g);
this.blur();
return false;
});
}

将红色部分修改为:
复制代码 代码如下:

self.parent.TB_show(t,this.href,g);
动态添加js事件实现代码
javascript prototype 原型链
10个新的最有前途的JavaScript框架
JavaScript RegExp方法获取地址栏参数(面向对象)
用正则表达式 动态创建/增加css style script 兼容IE firefox
> 返回     
地址:上海市普陀区胶州路941号长久商务中心 电话: QQ:
© Copyright 2012 上海网络 Product All Rights Reserved