改一个Tab切换脚本,总是不成功,各位指教一下 找了一段代码,因为js学艺不精, 想增加一个功能,可以人工指定切换到某个tab, 实现出错了各位还是看 演示吧http://www.cycoo.net/demo/tab_test.html tab 鼠标移动切换没有问题。 请高手指教,或知道怎么改的请留下QQ ,我向您求教~! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 参见:http://www.easyui.org.cn/MagicSwitch_demo.html可以实现你要的功能。 没有初始化导致 this.hoverTab=function(IndexID){ try{ this.init(); alert('this.curTabIndex='+this.curTabIndex); if(this.curTabIndex==IndexID){return;} Dom.removeClass('cur', this.eTabs[this.curTabIndex]); Dom.addClass('cur', this.eTabs[IndexID]); var temC = this.curTabIndex; var temT = IndexID; this.curTabIndex = IndexID; alert('当前序号='+temC); alert('目标序号='+temT); this.changeContent(temC, temT); }catch(e){alert('Error 2!');} } 新手求个js表格删除问题 JS时间转换问题,求解啊 post提交 asp.net如何将提取出来的图片进行放大与缩小??请指教!~1 谁来解释一下this 请教传递数据 谢谢 跪求!请问如何将完整网页转换文本网页? 求一个radiobutton被选中,使一个textbox的enable为false的脚本? 如何实现其他按键切换光标位置? javascript实现浏览到某一行文字时,文字从左滚动到中心 请教弹出层的问题 请教用JAVA&js将数据生成EXCEL,并自动打开后,如何关闭后删除生成的EXCEL文件
this.hoverTab=function(IndexID){
try{
this.init();
alert('this.curTabIndex='+this.curTabIndex);
if(this.curTabIndex==IndexID){return;}
Dom.removeClass('cur', this.eTabs[this.curTabIndex]);
Dom.addClass('cur', this.eTabs[IndexID]);
var temC = this.curTabIndex;
var temT = IndexID;
this.curTabIndex = IndexID;
alert('当前序号='+temC);
alert('目标序号='+temT);
this.changeContent(temC, temT); }catch(e){alert('Error 2!');}
}