英雄联盟电视:button和submit,真是不懂啊?请达人指点

来源:百度文库 编辑:查人人中国名人网 时间:2024/04/28 18:15:36
<html>
<head>
<Script Language="JavaScript">
//原来的颜色
document.bgColor="green";
document.vlinkColor="white";
document.linkColor="yellow";
document.alinkcolor="red";
//动态改变的颜色
function changecolor(){
document.bgColor="red";
document.vlinkColor="blue";
document.linkColor="yellow";
document.alinkcolor="blue";
}
</script>
</head>
<body bgColor="White" >
<A href="test8_2.htm">next page</a>
<form >
<Input type="button" Value="red" onClick="changecolor()">
</form>
</body>
</html>
********************************************
以上程序通过button来改变窗口的颜色,但是我把
type="buttor"改为type="submit"怎么就不行了呢?
颜色一闪又还原了,怎么回事,这有什么区别呢

还不如用几个图片替换搞掂来的容易~

submit 的 value是提交的内容

button按钮
submit提交
词性不一样的

button
but.ton
AHD:[b¾t“n]
D.J.[6b(tn]
K.K.[6b(tn]
n.(名词)
A generally disk-shaped fastener used to join two parts of a garment by fitting through a buttonhole or loop.
钮扣:通常为圆片状的固着物,用于穿过扣眼或扣环将衣服的两个部分连起来
Such an object used for decoration.
装饰扣:用于装饰的钮扣
Any of various objects resembling a button, especially:
钮扣似的东西:各种类似钮扣的东西,特别指:
A push-button switch.
按钮开关
The blunt tip of a fencing foil.
击剑的钝剑头
A fused metal or glass globule.
金属球,玻璃球:熔合的金属或玻璃小球
Any of various knoblike structures of a plant or animal, especially:
扣形物:植物或动物的各种球状结构,尤指:
An immature, unexpanded mushroom.
末成熟的,未张开的蘑菇
The tip of a rattlesnake's rattle.
响尾蛇发声器官的末端
A usually round flat badge that bears a design or printed information and is typically pinned to a garment:
圆形小徽章:通常为一种圆形扁平的徽章,上面有花纹或印制的信息,象征性地别在衣服上:
a campaign button.
军功章
Informal The end of the chin, regarded as the point of impact for a punch.
【非正式用语】 颏尖:下巴的下端,被当作拳击的攻击点
v.(动词)
but.toned, but.ton.ing, but.tons
v.tr.(及物动词)
To fasten with buttons:
用钮扣扣紧:
buttoned his shirt; buttoned up her raincoat.
扣上衬衫钮扣;把雨衣扣好
To decorate or furnish with buttons.
用钮扣装饰
Informal To close (the lips or mouth):
【非正式用语】 闭嘴:闭上(双唇或嘴巴):
Button your lip.
闭上嘴
v.intr.(不及物动词)
To be or be capable of being fastened with buttons:
扣上扣子:能用扣子扣住:
The blouse buttons up the back.
这件衣服从背后扣钮扣

on the button
Exactly; precisely.
准确;确切

submit
sub.mit
AHD:[s…b-m¹t“]
D.J.[s*b6mit]
K.K.[s*b6m!t]
v.(动词)
sub.mit.ted, sub.mit.ting, sub.mits
v.tr.(及物动词)
To yield or surrender (oneself) to the will or authority of another:
使屈服:使(自己)服从于别人的意志或权威:
“Nothing but contempt is due to those people who ask us to submit to unmerited oppression”(Christabel Pankhurst)
“对于那些要求我们服从我们不能受之压迫的人,我们有的只是轻蔑”(克赖斯塔伯·潘克赫斯特)
To subject to a condition or process.
使经受
To commit (something) to the consideration or judgment of another.See Synonyms at propose
使听从,使受…摆布:将(某事)交于某人来考虑或判断参见 propose
To offer as a proposition or contention:
将…作为意见提出:
I submit that the terms are entirely unreasonable.
我认为这些名称是完全不合理的
v.intr.(不及物动词)
To give in to the authority, power, or desires of another.See Synonyms at yield
服从:服从别人的权威、权力或欲望参见 yield
To allow oneself to be subjected to something.
使某人屈服于某物