JSON示例

html/css/javascript | 2017-01-22 19:01:28 | 阅读 1100 次 | 评论(0)
<html>
<head>
<meta charset="utf-8"/>
<title>
我爱学英语
</title>

<style type="text/css">

#btn{
width:100px;
height:33px;
background-color:green;

}

#english{
color:red;
}
#chinese{
color:#94AAD6;
}


span{
font-size:40px;
font-align:center;
}

p{
padding-top:10px;
width:100%;
height:50px;
text-align:center;
font-size:20px;
background-color:pink;
color:yellow;
}

#div2
{
width:100%;
padding-top:30px;
height:200px;
text-align:center;
background-color:#CBE2B1;
font-color:purple;

}
</style>
</head>
<body>

<div id="div1" >
<p>我爱记单词!</p>
</div>



<div id="div2">
English:&nbsp &nbsp<span id="english">english</span><br/><br/><br/>
中文: &nbsp &nbsp<span id="chinese">chinese</span><br/>
<br/>
<input  type="button" id="btn" value="next" onclick="json_en_cn()"/>
</div>



<script>
     function json_en_cn(){
	var obj={
	      	"scheEnglis1":[
			
{"English":"afternoon","Chinese":"下午"},
{"English":"am","Chinese":"是"},
{"English":"and","Chinese":"和"},
{"English":"animal","Chinese":"动物"},//4
{"English":"ant","Chinese":"蚂蚁"},
{"English":"are","Chinese":"是"},
{"English":"bag","Chinese":"袋子"},
{"English":"ball","Chinese":"球"},
{"English":"ballon","Chinese":"气球"},
{"English":"banana","Chinese":"香蕉"},//10
{"English":"bear","Chinese":"熊"},
{"English":"bed","Chinese":"床"},
{"English":"big","Chinese":"大的"},
{"English":"bird","Chinese":"小鸟"},
{"English":"birthday","Chinese":"生日"},
{"English":"biscuit","Chinese":"饼干"},
{"English":"black","Chinese":"黑色的"},
{"English":"blue","Chinese":"蓝色的"},
{"English":"book","Chinese":"书"},
{"English":"bowl","Chinese":"碗"},//10
{"English":"box","Chinese":"盒子箱子"},
{"English":"boy","Chinese":"男孩"},
{"English":"bright","Chinese":"明亮的"},
{"English":"brother","Chinese":"兄弟"},
{"English":"bycicle","Chinese":"单车"},
{"English":"can","Chinese":"能会"},
{"English":"cap","Chinese":"帽子"},
{"English":"cat","Chinese":"猫"},
{"English":"chair","Chinese":"椅子"},
{"English":"chopsticks","Chinese":"筷子"},//10
{"English":"classmate","Chinese":"同学"},
{"English":"color","Chinese":"颜色"},
{"English":"cool","Chinese":"凉的"},
{"English":"cow","Chinese":"奶牛"},					
{"English":"dad","Chinese":"爸爸"},
{"English":"dance","Chinese":"跳舞"},
{"English":"desk","Chinese":"桌子"},
{"English":"dog","Chinese":"狗"},
{"English":"doll","Chinese":"玩偶娃娃"},
{"English":"door","Chinese":"门"},//40
{"English":"dove","Chinese":"鸽子"},
{"English":"down","Chinese":"下"},
{"English":"draw","Chinese":"画"},
{"English":"dress","Chinese":"连衣裙"},
{"English":"drink","Chinese":"喝"},
{"English":"duck","Chinese":"鸭子"},
{"English":"eight","Chinese":"八"},
{"English":"elephant","Chinese":"大象"},
{"English":"evening","Chinese":"傍晚"},
{"English":"family","Chinese":"家庭"},//50
{"English":"fat","Chinese":"肥的"},
{"English":"father","Chinese":"父亲"},
{"English":"five","Chinese":"五"},
{"English":"flower","Chinese":"花"},
{"English":"fly","Chinese":"飞"},
{"English":"four","Chinese":"四"},
{"English":"fox","Chinese":"狐狸"},
{"English":"friend","Chinese":"朋友"},
{"English":"frog","Chinese":"青蛙"},
{"English":"fruit","Chinese":"水果"},//60
{"English":"girl","Chinese":"女孩"},
{"English":"go","Chinese":"去"},
{"English":"good","Chinese":"好的"},
{"English":"goodby","Chinese":"再见"},
{"English":"grandfather","Chinese":"爷爷"},
{"English":"grass","Chinese":"草"},
{"English":"green","Chinese":"绿色的"},
{"English":"hair","Chinese":"头发"},
{"English":"hand","Chinese":"手"},
{"English":"happy","Chinese":"幸福"},
{"English":"hat","Chinese":"帽子"},
{"English":"head","Chinese":"头"},
{"English":"hello","Chinese":"你好"},
{"English":"hen","Chinese":"母鸡"},
{"English":"hi","Chinese":"嗨"},
{"English":"hight","Chinese":"高的"},
{"English":"hippo","Chinese":"河马"},
{"English":"house","Chinese":"房屋"},
{"English":"insect","Chinese":"昆虫"},
{"English":"jellyfish","Chinese":"水母"},//80
{"English":"kangaroo","Chinese":"袋鼠"},
{"English":"kite","Chinese":"风筝"},
{"English":"left","Chinese":"左"},
{"English":"lion","Chinese":"狮子"},
{"English":"long","Chinese":"长的"},
{"English":"look","Chinese":"看"},
{"English":"low","Chinese":"低的"},
{"English":"mather","Chinese":"母亲"},
{"English":"meat","Chinese":"肉"},
{"English":"mine","Chinese":"我的"},
{"English":"monkey","Chinese":"猴子"},
{"English":"moon","Chinese":"月亮"},
{"English":"morning","Chinese":"早上"},
{"English":"my","Chinese":"我的"},
{"English":"nice","Chinese":"好的"},
{"English":"night","Chinese":"夜晚"},
{"English":"nightingale","Chinese":"夜莺"},
{"English":"nine","Chinese":"九"},
{"English":"no","Chinese":"不"},
				
{"English":"old","Chinese":"老的旧的"},//100
{"English":"on","Chinese":"上面"},
{"English":"one","Chinese":"一个"},
{"English":"open","Chinese":"打开"},
{"English":"orange","Chinese":"橙子"},
{"English":"our","Chinese":"我们的"},
{"English":"ox","Chinese":"公牛"},
{"English":"panda","Chinese":"熊猫"},
{"English":"pear","Chinese":"梨子"},
{"English":"pen","Chinese":"钢笔"},
{"English":"pencil","Chinese":"铅笔"},
{"English":"pick","Chinese":"摘"},
{"English":"pig","Chinese":"猪"},
{"English":"pink","Chinese":"粉红色的"},
{"English":"plate","Chinese":"碟子"},
{"English":"play","Chinese":"玩"},
{"English":"queenbee","Chinese":"蜂后"},
{"English":"rabbit","Chinese":"兔子"},
{"English":"red","Chinese":"红色的"},
{"English":"rice","Chinese":"米饭"},//120
{"English":"right","Chinese":"对的右"},
{"English":"ruler","Chinese":"尺子"},
{"English":"run","Chinese":"跑"},
{"English":"say","Chinese":"说话"},
{"English":"school","Chinese":"学校"},
{"English":"seesaw","Chinese":"翘翘板"},
{"English":"seven","Chinese":"七"},
{"English":"short","Chinese":"短的"},
{"English":"sing","Chinese":"唱歌"},
{"English":"sister","Chinese":"姐妹"},
{"English":"sit down","Chinese":"坐下"},
{"English":"six","Chinese":"六"},
{"English":"slide","Chinese":"滑梯"},
{"English":"small","Chinese":"小的"},
{"English":"snake","Chinese":"蛇"},
{"English":"sorry","Chinese":"对不起"},
{"English":"spoon","Chinese":"汤匙"},
{"English":"standup","Chinese":"起立"},
{"English":"star","Chinese":"星"},
{"English":"sun","Chinese":"太阳"},//140
{"English":"swan","Chinese":"天鹅"},
{"English":"sweet","Chinese":"甜的"},
{"English":"swim","Chinese":"游泳"},
{"English":"swing","Chinese":"秋千"},
{"English":"tall","Chinese":"高的"},
{"English":"teacher","Chinese":"老师"},
{"English":"ten","Chinese":"十"},
{"English":"that","Chinese":"那个"},
{"English":"the","Chinese":"这"},
{"English":"thin","Chinese":"瘦的"},
{"English":"three","Chinese":"三"},
{"English":"tiger","Chinese":"老虎"},
{"English":"to","Chinese":"到"},
{"English":"tree","Chinese":"树"},
{"English":"two","Chinese":"二个"},
{"English":"under","Chinese":"下面"},
{"English":"up","Chinese":"上面"},
{"English":"warm","Chinese":"暖和的"},
{"English":"welcome","Chinese":"欢迎"},
{"English":"where","Chinese":"哪里"},//160
{"English":"write","Chinese":"写字"},
{"English":"yellow","Chinese":"黄色的"},
{"English":"yes","Chinese":"是的"},
{"English":"young","Chinese":"年青的"},	
{"English":"rubber","Chinese":"橡皮"},	
		
			{"English":"young","Chinese":"年青的"}
		]};
	var i=parseInt(Math.random()*166);
	document.getElementById("english").innerHTML=obj.scheEnglis1[i].English
	document.getElementById("chinese").innerHTML=obj.scheEnglis1[i].Chinese
	
}


</script>


</body>
</html>   
小学一,二年级单词随记小应用.html (下载168次,上传于2017-01-22 19:01:28)
文章评论,共0条
游客请输入验证码
浏览166492次
最新评论