麻烦帮注释个函数var tabPane = new WebFXTabPane(document.getElementBy
来源:学生作业帮 编辑:搜搜做题作业网作业帮 分类:综合作业 时间:2024/08/14 08:32:46
麻烦帮注释个函数
var tabPane = new WebFXTabPane(document.getElementById("divTabPane"),true);
function openModule(icon,text,url) {
tabPane.openTabPage(icon,text,url);
}
上面实例化的函数为
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( "webfxtab_" + this.element.id ) );
if ( isNaN( tabIndex ) )
tabIndex = 0;
}
this.selectedIndex = tabIndex;
// loop through child nodes and add them
var cs = el.childNodes;
var n;
for (var i = 0; i < cs.length; i++) {
if (cs[i].nodeType == 1 && cs[i].className == "tab-page") {
this.addTabPage( cs[i] );
}
}
}
代码有点多,这里放不下那么多,这个主要功能是页签
哪个要是有空的话留下邮箱,我发过去,大概是300行左右,回答完我会继续加
var tabPane = new WebFXTabPane(document.getElementById("divTabPane"),true);
function openModule(icon,text,url) {
tabPane.openTabPage(icon,text,url);
}
上面实例化的函数为
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( "webfxtab_" + this.element.id ) );
if ( isNaN( tabIndex ) )
tabIndex = 0;
}
this.selectedIndex = tabIndex;
// loop through child nodes and add them
var cs = el.childNodes;
var n;
for (var i = 0; i < cs.length; i++) {
if (cs[i].nodeType == 1 && cs[i].className == "tab-page") {
this.addTabPage( cs[i] );
}
}
}
代码有点多,这里放不下那么多,这个主要功能是页签
哪个要是有空的话留下邮箱,我发过去,大概是300行左右,回答完我会继续加
![麻烦帮注释个函数var tabPane = new WebFXTabPane(document.getElementBy](/uploads/image/z/18073665-9-5.jpg?t=%E9%BA%BB%E7%83%A6%E5%B8%AE%E6%B3%A8%E9%87%8A%E4%B8%AA%E5%87%BD%E6%95%B0var+tabPane+%3D+new+WebFXTabPane%28document.getElementBy)
这个是一个国外的比较出色的页签控件,本身已经包装成一个比较完善的类来对外使用
我已经回复你的邮件了,给你发了dome
希望能看得懂呵呵
我已经回复你的邮件了,给你发了dome
希望能看得懂呵呵
var some_date= new date() document.write(some_date.getDay()+
js定义多个变量的写法:var a="aaa",b="bbb",c="ccc"; document.write(a+"
var a=11; document.write(a.toString(2)+"
求一种js写法的解释var w=window.innerWidth|| document.documentElement
英语翻译var bgsound = new Sound();bgsound.attachSound("sound 49"
as3 new Tween()和var newTween:Tween=new Tween()的区别
Open a new document是什么意思
麻烦大家谁帮把这个程序注释一下吧,
#define BIT_SET(var,bit) ((var) |= (1
var str = "";是什么意思
How do you open a new document?
I want (save)the new document.