麻烦帮注释个函数

来源:百度知道 编辑:UC知道 时间:2024/06/25 21:25:58
<script defer>
var tabPane = new WebFXTabPane(document.getElementById("divTabPane"), true);
function openModule(icon,text,url) {
tabPane.openTabPage(icon,text,url);
}
</script>
上面实例化的函数为
function WebFXTabPane( el, bUseCookie ) {
if ( !hasSupport() || el == null ) return;

this.element = el;
this.element.tabPane = this;
this.pages = [];
this.maxPages = 7;
this.selectedIndex = null;
this.useCookie = bUseCookie != null ? bUseCookie : true;

// add class name tag to class name
this.element.className = this.classNameTag + " " + this.element.className;

// add tab row
this.tabRow = document.createElement( "div" );
this.tabRow.className = "tab-row";
el.insertBefore( this.tabRow, el.firstChild );

var tabIndex = 0;
if ( this.useCookie ) {
tabIndex = Number( WebFXTabPane.getCookie( &

这个是一个国外的比较出色的页签控件,本身已经包装成一个比较完善的类来对外使用
我已经回复你的邮件了,给你发了dome 希望有帮助

sanli0716@163.com 你发到这个邮箱里,我看一下啊

希望能看得懂呵呵

代码给得不全

楼主给全点阿。。。怎么解释。。