分享
 
 
 

事先选择好表格的各种属性,自动创建表格[网页特效]

王朝html/css/js·作者佚名  2006-11-24
窄屏简体版  字體: |||超大  

有什么问题请到<a href='/bbs/forums.php?fid=21'>论坛</a>中发表<br>

<!-- http://www.webjx.com/js --><!-- 把如下代码加入<body>区域中 -->

<SCRIPT language=JavaScript>

<!--

function MM_openBrWindow(theURL,winName,features) { //v2.0

window.open(theURL,winName,features);

}

function InsSM()

{

var table = '<table'+document.all.Bgcolor.value+document.all.Dkcolor.value+document.all.Ltcolor.value+' border="' +document.all.border.value+ '"' + ' cellspacing="' +document.all.cellspacing.value+ '"' + ' cellpadding="' +document.all.cellpadding.value+ '"' + ' width="' +document.all.width.value + document.all.widthType.value+ '">\n';

for (var x=0; x<document.all.rows.value; x++) {

table += " <tr>\n";

for (var y=0; y<document.all.cols.value; y++) {

table += " <td>&nbsp;</td>\n";

}

table += " </tr>\n";

}

table += "</table>\n";

document.all.theCode.value=(table);

document.write('<b><font size=2 color=#555555 face=Arial, Helvetica, sans-serif>Cut and paste the code inbetween your BODY tags.</font></b><textarea name=theCode cols=50 rows=6>'+table+'</textarea><br><input type=button name=Button value=SelectCode onClick=document.all.theCode.select();document.all.theCode.focus()><br><br><br>');

document.write('<b><font size=2 color=#555555 face=Arial, Helvetica, sans-serif>Table Preview:</font></b>'+table+'<p><input type=button name=button value=BACK onClick=history.back()></p>');

}

function MM_findObj(n, d) { //v3.0

var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {

d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}

if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];

for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;

}

function MM_showHideLayers() { //v3.0

var i,p,v,obj,args=MM_showHideLayers.arguments;

for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];

if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }

obj.visibility=v; }

}

function showColor(val) {

document.all.Ltcolor.value = ' bordercolorlight="'+val+'"';

document.all.B1.style.backgroundColor = val;

}

function show(val2) {

document.all.Bgcolor.value = ' bgcolor="'+val2+'"';

document.all.B3.style.backgroundColor = val2;

}

function showM(val3) {

document.all.Dkcolor.value = ' bordercolordark="'+val3+'"';

document.all.B2.style.backgroundColor = val3;

}

//-->

</SCRIPT>

<SCRIPT language=javascript>

<!--

// ***********************************************

// AUTHOR: WWW.CGISCRIPT.NET, LLC

// URL: http://www.cgiscript.net

// Use the script, just leave this message intact.

// Download your FREE CGI/Perl Scripts today!

// ( http://www.cgiscript.net/scripts.htm )

// ***********************************************

var isNS = (navigator.appName == "Netscape") ? 1 : 0;

var EnableRightClick = 0;

if(isNS)

document.captureEvents(Event.MOUSEDOWN||Event.MOUSEUP);

function mischandler(){

if(EnableRightClick==1){ return true; }

else {return false; }

}

function mousehandler(e){

if(EnableRightClick==1){ return true; }

var myevent = (isNS) ? e : event;

var eventbutton = (isNS) ? myevent.which : myevent.button;

if((eventbutton==2)||(eventbutton==3)) return false;

}

function keyhandler(e) {

var myevent = (isNS) ? e : window.event;

if (myevent.keyCode==96)

EnableRightClick = 1;

return;

}

document.oncontextmenu = mischandler;

document.onkeypress = keyhandler;

document.onmousedown = mousehandler;

document.onmouseup = mousehandler;

//-->

</SCRIPT>

<TABLE height=226 cellSpacing=6 cellPadding=0 width=600 bgColor=#ffffff

border=0>

<TBODY>

<TR vAlign=center align=middle bgColor=#ffffff>

<TD align=right width=121><FONT

face="Verdana, Arial, Helvetica, sans-serif" size=-2>Rows:</FONT></TD>

<TD align=left width=35><FONT face="Verdana, Arial, Helvetica, sans-serif"

size=-2><INPUT maxLength=3 size=3 value=1 name=rows> </FONT></TD>

<TD align=right width=124><FONT

face="Verdana, Arial, Helvetica, sans-serif" size=-2>Cols:</FONT></TD>

<TD align=left width=37><FONT face="Verdana, Arial, Helvetica, sans-serif"

size=-2><INPUT maxLength=4 size=3 value=1 name=cols> </FONT></TD>

<TD align=right width=84><FONT

face="Verdana, Arial, Helvetica, sans-serif" size=-2>Width:

</FONT></TD>

<TD align=left width=157><FONT size=-2><INPUT maxLength=4 size=4 value=100

name=width> <SELECT name=widthType> <OPTION value="">Pixels</OPTION>

<OPTION value=% selected>Percent</OPTION></SELECT> </FONT></TD></TR>

<TR vAlign=center align=middle bgColor=#ffffff>

<TD align=right width=121><FONT

face="Verdana, Arial, Helvetica, sans-serif" size=-2>Cell

Spacing:</FONT></TD>

<TD align=left width=35><FONT face="Verdana, Arial, Helvetica, sans-serif"

size=-2><INPUT class=txtClass maxLength=3 size=3 value=1 name=cellspacing>

</FONT></TD>

<TD align=right width=124><FONT

face="Verdana, Arial, Helvetica, sans-serif" size=-2>Cell

Padding:</FONT></TD>

<TD align=left width=37><FONT face="Verdana, Arial, Helvetica, sans-serif"

size=-2><INPUT maxLength=3 size=3 value=1 name=cellpadding> </FONT></TD>

<TD align=right width=84><FONT

face="Verdana, Arial, Helvetica, sans-serif" size=-2>Border:</FONT></TD>

<TD align=left width=157><FONT size=-2><INPUT maxLength=3 size=3 value=1

name=border> </FONT></TD></TR>

<TR vAlign=center align=middle bgColor=#ffffff>

<TD align=right width=121><FONT

face="Verdana, Arial, Helvetica, sans-serif" size=-2>Lt Border

Color:</FONT></TD>

<TD align=left width=35><INPUT onmouseover="MM_showHideLayers('Ltc','','show')" style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 25px; CURSOR: hand; BORDER-RIGHT-WIDTH: 0px" onmouseout="MM_showHideLayers('Ltc','','hide')" type=button value=" " name=B1>

</TD>

<TD align=right width=124><FONT

face="Verdana, Arial, Helvetica, sans-serif" size=-2>Drk Border

Color:</FONT></TD>

<TD align=left width=37><INPUT onmouseover="MM_showHideLayers('Dkc','','show');" style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 25px; CURSOR: hand; BACKGROUND-COLOR: #cccccc; BORDER-RIGHT-WIDTH: 0px" onmouseout="MM_showHideLayers('Dkc','','hide');" type=button value=" " name=B2>

</TD>

<TD align=right width=84><FONT

face="Verdana, Arial, Helvetica, sans-serif" size=-2>Bg Color:</FONT></TD>

<TD align=left width=157><INPUT onmouseover="MM_showHideLayers('Bgc','','show');" style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 25px; CURSOR: hand; BACKGROUND-COLOR: #cccccc; BORDER-RIGHT-WIDTH: 0px" onmouseout="MM_showHideLayers('Bgc','','hide');" type=button value=" " name=B3>

<FONT face="Verdana, Arial, Helvetica, sans-serif" size=-2><INPUT

type=hidden name=Bgcolor> <INPUT type=hidden name=Dkcolor> <INPUT

type=hidden name=Ltcolor> </FONT><FONT size=-2></FONT></TD></TR>

<TR vAlign=center align=middle bgColor=#ffffff>

<TD colSpan=6><FONT face=arial size=3><B><BR></B></FONT><FONT color=#ffffff

size=2><B></B></FONT><FONT size=-2><BR><BR><INPUT type=hidden

name=theCode> <INPUT style="BORDER-TOP-WIDTH: 2px; FONT-WEIGHT: bold; BORDER-LEFT-WIDTH: 2px; FONT-SIZE: 12px; BORDER-LEFT-COLOR: #006699; BORDER-BOTTOM-WIDTH: 2px; BORDER-BOTTOM-COLOR: #006699; WIDTH: 100px; CURSOR: hand; COLOR: #ffffff; BORDER-TOP-COLOR: #006699; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #006699; BORDER-RIGHT-WIDTH: 2px; BORDER-RIGHT-COLOR: #006699" onclick=InsSM() type=button value="Create Table" name=Button2>

</FONT></TD></TR></TBODY></TABLE>

<DIV id=Ltc onmouseover="MM_showHideLayers('Ltc','','show');"

style="Z-INDEX: 1; LEFT: 130px; VISIBILITY: hidden; WIDTH: 289px; POSITION: absolute; TOP: 30px; HEIGHT: 45px"

onmouseout="MM_showHideLayers('Ltc','','hide');"><A><IMG height=67

src="colortable.gif" width=289 useMap=#colmap border=0></A> <MAP

name=colmap><AREA shape=RECT coords=1,1,7,10

href="javascript:showColor('#00FF00')"><AREA shape=RECT coords=9,1,15,10

href="javascript:showColor('#00FF33')"><AREA shape=RECT coords=17,1,23,10

href="javascript:showColor('#00FF66')"><AREA shape=RECT coords=25,1,31,10

href="javascript:showColor('#00FF99')"><AREA shape=RECT coords=33,1,39,10

[1] [2] [3] [4] [5] [6] [7] 下一页

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有