求一段JS代码,用来点击控制标题下属DIV块的显示隐藏

JavaScript034

求一段JS代码,用来点击控制标题下属DIV块的显示隐藏,第1张

function clicks(show) {

var shoeid = document.getElementById(show)

if (shoeid.style.display == 'none') {

shoeid.style.display = ''

}

else {

shoeid.style.display = 'none'

}

return false

}

<div>

<ul>

<li><a href="#" onclick="clicks('1')">122</a>

<div style="display:none" id="1">ssssss</div>

</li>

<li>

<a href="#" onclick="clicks('2')">12266</a>

<div style="display:none" id="2">ssssssttt</div>

</li>

<li>

<a href="#" onclick="clicks('3')">1223444</a>

<div style="display:noneheight:100px" id="3">ssssssdd</div>

</li>

</ul>

</div>

animal bat bear bird cat cage chicken

动物 蝙蝠 熊鸟猫 笼子 鸡

cow crocodile dog dolphin duck elephant

奶牛 鳄鱼狗 海豚 鸭子 大象

fish fly frog giraffe goat hippo

鱼 苍蝇 青蛙 长颈鹿 山羊 河马

horse kangaroo kitten lion lizard monkey

马袋鼠 小猫 狮子 蜥蜴猴子

mouse(mice) panda parrot pet puppy rabbit

老鼠熊猫鹦鹉 宠物 小狗 兔子

shark sheepsnake spidertigerwhalezoo

鲨鱼 绵羊 蛇 蜘蛛 老虎 鲸 动物园

arm back beard blond body curly ear

胳膊 背部 胡须 金发的身体卷曲的 耳朵

eyefacefoot(feet)hairhandhead leg moustache

眼睛 脸 脚 头发 手 头 腿 小胡子

mouth neck nose shoulder smile stomach

嘴 脖子 鼻子 肩膀 微笑 胃

straight tooth(teeth)

直的 牙齿

clothescoat dress glasseshandbaghatjacket

衣服 外套连衣裙眼镜 手提包 帽子 夹克

jeans scarf shirtshoeskirtsocksweater trousers

牛仔裤 围巾 衬衫 鞋 短裙袜子 毛衣裤子

T-shirt watchwear

T恤衫 手表,看 穿,戴

auntbaby boybrotherchild(children) cousin dad(dy)

阿姨婴儿 男孩兄弟孩子 堂兄弟,堂姐妹 爸爸

daughter family father friend girl granddaughtergrandfather

女儿 家庭 父亲朋友 女孩 (外)孙女祖父

grandma grandmother grandpa grandparent grandson live man(men)

奶奶祖母 爷爷 (外)祖父母 (外)孙 居住 男人,人

mother mum(my) old parent people person sister

母亲 妈妈 年老的 父母亲 人,人们 人姐妹

son uncle woman(women) young

儿子 叔叔 女人 年轻的

apple banana beanbottlebowl bread breakfast

苹果 香蕉 豆子 瓶 碗面包 早餐

burger cake carrot cheese chickenchips(US fries)

汉堡包 蛋糕 胡萝卜 奶酪 鸡肉 炸薯条

coconutcoffee cup dinner drink eat egg

椰子 咖啡 杯子 正餐 饮料,喝 吃 蛋

fish food fries(UK chips) fruit grape ice cream

鱼 食物 炸薯条水果 葡萄 冰激凌

juice lemon lemonade lime lunch mango meat

果汁 柠檬柠檬汁 酸橙 午餐 芒果 肉

milk onion orange pasta pea pear picnic

牛奶 洋葱橘子 意大利面食豌豆梨 野餐

pineapple patato rice sandwich sausage soup

菠萝 马铃薯米饭 三明治香肠 汤

suppertea thirsty tomatovegetable water watermelon

晚餐 茶 渴的 西红柿 蔬菜 谁西瓜

cold cough dentist doctor earache fine

冷的,感冒 咳嗽 牙医 医生 耳痛 健康的,舒适的

headache hurt nurse matter stomachachetoothache

头痛 痛护士 病因,毛病 胃痛 牙痛

temperature hospital

发烧医院

address apartment(UK flat) armchairbalcony basement

地址 一套公寓房间 扶手椅 阳台 地下室

bath bathroom bed bedroom blanketbookcase

沐浴浴室,浣洗室 床 卧室 毛毯 书架,书柜

box camera chair clock

盒子 照相机 椅子 时钟

computer cupboard desk dining room doll door

计算机柜橱 书桌 餐厅 玩具娃娃门

flat(US apartment)floorflower gardenhall home

一套公寓房间 地面,地板 花花园 大厅 家

housekitchenlamplift(US elevator)

房子 厨房 台灯电梯

living room mat mirrorpaintingphone picture radio

客厅垫子镜子 画 电话 图画,图片 收音机

room sleep sofastair(s)tabletelevision/TV

房间 睡觉沙发楼梯 桌子 电视

toothbrush towel toy treeupstairswall wash

牙刷 毛巾 玩具 树 在楼上 墙洗

watchwindow

手表,看 窗户

数字21---100 第一 -----第二十

one two three four five six seven eight nine ten eleven

twelve thirteen fourteen fifteen sixteen seventeen eighteen

nineteen twentythirty forty fifty sixty seventy eighty

ninety one hundred

firstsecond third fourth fifth sixth seventh eighth nineth

tenth eleventh twelfth thirteenth fourteenth fifteenth sixteenth

seventeentheighteenth nineteenth twentieth

above bankbehindbetweenbus station cafe

在…上 银行在…后在…之间 公共汽车站咖啡馆

cinema farm here hospital in in front of

电影院 农场 在这里 医院在…里 在…前

library market next toon park place playground

图书馆 集市,市场 紧挨着 在…之上 公园 地方 操场

road shop(US store) square store straight street

路 商店 广场 商店 直的街道

supermarketswimming pool there under zoo

超市 游泳池 在那里在…下 动物园

alphabet answer askboardbook bookcase class classroom

字母表回答 问 黑板 书书架,书柜 班级教室

close colour computer correct cross cupboard

关 颜色 计算机 正确的 叉号 柜橱

desk doordraw English eraser(UK rubber)example

书桌 门 画英语 橡皮 例子

floor find homework

地面,地板找到,发现 家庭作业

know learn lesson letter line listen(to) look

知道,理解 学习 课程字母,信 线,列 听 看

mistakenumberopen

错误 数字 打开

page part pen pencil picture playground

页部分 钢笔 铅笔 图画,图片操场

questionreadright rubber(US eraser) ruler school

问题 读 对的,正确的 橡皮尺子 学校

sentence spellstory

句子 拼写故事

teacher tell test texttickunderstand

教师 告诉,说 试验,测试 课文,正文 画勾 理解

wallwindow word write

墙 窗户字,词 写

badminton ball baseball basketballbat beachbikeboat

羽毛球球棒球 篮球球棒海滩自行车 小船

book bounce camera catch doll drawing drive

书 反弹,跳起 照相机 抓住玩具娃娃 图画开车

enjoy favourite fishfishingfilmfly football(US soccer)

喜爱喜爱的 鱼 钓鱼 电影飞 足球

gameguitar hithobbyhockey jump kick kite

游戏 吉他 打,击 业余爱好 曲棍球 跳踢 风筝

listen(to) moviemusicpainting party photo piano

听 电影 音乐 画 聚会 照片 钢琴

picture play(with) present radio readride runsing

图画,图片 玩 礼物收音机 读 骑 跑 唱歌

skate soccer(UK football) songsportstorytabble tennis

滑冰足球 歌曲运动 故事乒乓球

televisine/TV tennis throwtoweltoy videowatch

电视网球运动 扔,投 毛巾玩具 录像,录影 手表,看

comic/comic book

连环漫画册

afterafternoon always before birthday clockday end

在…以后 下午 总是在…以前 生日 时钟 天,白天 结束

evening every morning never night sometimes

晚上 每一,每个 早晨,上午 决不,从不 夜晚有时,间或

today watchyesterday

今天手表 昨天

The days of the week:

Sunday Monday Tuesday Wednesday Thursday Friday Saturday

星期天 星期一 星期二星期三 星期四 星期五 星期六

bike boatbusbus stationcarcatch/take a bus drive

自行车小船 公共汽车 公共汽车站 汽车乘坐公共汽车 开车

driver flygo helicopterlorry(US truck)motorbikeplane

司机飞去 直升飞机 大卡车摩托车 飞机

ride runswimtrain truck(UK lorry)

骑 跑 游泳火车 大卡车

cloudcloudy rain rainbowsnow sun sunny

云 多云的雨,下雨彩虹雪 太阳 阳光明媚

weather wind windy

天气风 刮风的

clown doctor farmer nurse pirate teacher work

小丑 医生 农场主护士 海盗 教师 工作

beach city country(side) field forest grass

海滩 城市 乡下田野 森林 草

ground island jungle lake leaf(leaves) moon

地,地面岛屿 灌木丛 湖 树叶 月亮

mountain plant riverroad

山 植物 河流 路

rocksand sea shell star street sun

石头沙子海洋贝壳 星星 街道 太阳

town tree village water waterfall world

城镇 树乡村水 瀑布 世界

这是一个base64的加密方法,以上内容的解密为以下内容: 用的的是utf8的格式..

Base64是一种使用64基的位置计数法。它使用2的最大次方来代表仅可打印的ASCII 字符。这使它可用来作为电子邮件的传输编码。在Base64中的变量使用字符A-Z、a-z和0-9,这样共有62个字符,用来作为开始的64个数字,最后两个用来作为数字的符号在不同的系统中而不同。一些如uuencode的其他编码方法,和之后binhex的版本使用不同的64字符集来代表6个二进制数字,但是它们不叫Base64。