今天图老师小编给大家介绍下TabStrip应用例子,平时喜欢TabStrip应用例子的朋友赶紧收藏起来吧!记得点赞哦~
【 tulaoshi.com - Web开发 】
html
head
title插入表格/title
meta http-equiv="Content-Type" content="text/html; charset=gb2312"
body bgcolor=buttonface scroll=no topmargin=5
style type="text/css"
div,td{cursor:default;font-family:宋体;font-size:9pt;}
/style
script language=javascript
function TableOK(){
var dotable,tmpcol,tmprow,docol,dorow
if(tba[0].checked){algn="left";}
if(tba[1].checked){algn="center";}
if(tba[2].checked){algn="right";}
tmpcol="td align="+algn+"/td";
docol=""
dorow=""
for ( var i=0; itbc.value; i++ ){
docol=docol+tmpcol;
}
docol="tr"+docol+"/tr"
for ( var j=0; jtbr.value; j++ ){
dorow=dorow+docol;
}
dotable="table border="+tbb.value+" cellspacing="+tbs.value+" cellpadding="+tbp.value+""+dorow+"/table"
alert(dotable);
}
/script
script language=VBScript
Sub TabStrip_Change()
if (TabStrip.Value = 0) then
Page1.style.visibility = "hidden"
Page0.style.visibility = "visible"
end if
if (TabStrip.Value = 1) then
Page0.style.visibility = "hidden"
Page1.style.visibility = "visible"
end if
end sub
/script
center
object id="TabStrip" classid="clsid:eae50eb0-4a62-11ce-bed6-00aa00611080" style="WIDTH: 285px; HEIGHT: 150px"
param name="ListIndex" value="0"
param name="NewVersion" value="-1"
param name="Accelerator" value="&A;B;"
param name="TipStrings" value="这是一般设定;这是高级设定;"
param name="FontName" value="宋体"
param name="Items" value="一般设定;高级设定;"
/object
div id="Page0" style="visibility:visible;position:absolute;left:expression((TabStrip.offsetLeft + 6) + 'px');top:expression((TabStrip.offsetTop + 30) + 'px');width:280px;height:200px;text-align:left;"
table border=0 cellpadding=0 cellspacing=2
trtd边框粗细:/tdtdinput type=text name=tbb size=20 value="1" maxlength=2 onKeypress="if (event.keyCode 45 || event.keyCode 57) event.returnValue = false;" class=hole/tdtdpx/td/tr
trtd表格行数:/tdtdinput type=text name=tbc size=20 value="2" maxlength=2 onKeypress="if (event.keyCode 45 || event.keyCode 57) event.returnValue = false;" class=hole/tdtd行/td/tr
trtd表格列数:/tdtdinput type=text name=tbr size=20 value="2" maxlength=2 onKeypress="if (event.keyCode 45 || event.keyCode 57) event.returnValue = false;" class=hole/tdtd列/td/tr
/table
/div
div id="Page1" style="visibility:hidden;position:absolute;left:expression((TabStrip.offsetLeft + 6) + 'px');top:expression((TabStrip.offsetTop + 30) + 'px');width:280px;height:200px;text-align:left;"
table border=0 cellpadding=0 cellspacing=2
trtd边框间距:/tdtdinput type=text name=tbs size=16 maxlength=2 value="2" onKeypress="if (event.keyCode 45 || event.keyCode 57) event.returnValue = false;" class=hole/tdtd width=85px/td/tr
trtd边距大小:/tdtdinput type=text name=tbp size=16 maxlength=2 value="2" onKeypress="if (event.keyCode 45 || event.keyCode 57) event.returnValue = false;" class=hole/tdtdpx/td/tr
trtd对齐方式:/tdtd colspan=2input type=radio name=tba checked左input type=radio name=tba中input type=radio name=tba右/td/tr
/table
/div
div align="center" style="position:absolute;left:expression((TabStrip.offsetLeft + 6) + 'px');top:expression((TabStrip.offsetTop + TabStrip.style.posHeight - 30) + 'px');width:280px;height:80px;" align="center"
table border=0 cellpadding=0 cellspacing=0
tr
td width=50 align=centerinput type=button onclick="window.close();" value="取消" class=cmdbtn/td
td width=50 align=centerinput type=button onclick="TableOK();" value="完成" class=cmdbtn/td
/tr/table
/div
/center
script
window.setTimeout('TabStrip.blur()',100);
/script
div style="width:100%;padding:10px" align="center"
object id="menutabs" name="menutabs" classid="clsid:EAE50EB0-4A62-11CE-BED6-00AA00611080" align="baseline" border="0"
width="533"
height="313"
param name="ListIndex" value="0"
param name="ForeColor" value="4210816"
param name="Size" value="14111;8290"
param name="Items" value="Main;Links;Topics;Help;"
param name="TabOrientation" value="2"
param name="MultiRow" value="-1"
param name="TipStrings" value="8888;;;;"
param name="Names" value="Main;Links;Topics;Help;"
param name="NewVersion" value="-1"
param name="TabsAllocated" value="4"
param name="Tags" value=";;;;"
param name="TabData" value="4"
param name="Accelerator" value=";;;;"
param name="FontName" value="Arial"
param name="FontEffects" value="1073741825"
param name="FontCharSet" value="0"
param name="FontPitchAndFamily" value="2"
param name="FontWeight" value="700"
param name="TabState" value="3;3;3;3"
/object
/div
/body
/html
来源:http://www.tulaoshi.com/n/20160219/1622300.html
看过《TabStrip应用例子》的人还看了以下文章 更多>>