JavaScrpt5
alert HTML HEAD TITLE编写JavaScript脚本/TITLE SCRIPT,,,,,,,,Language=JavaScript alert(在页面上显示对话框); /SCRIPT /HEAD BODY 在页面上显示对话框 /BODY /HTML 铣冬小貉者逢泼环谢庶霖兆脂姜铀泻底搀纫出汉婆膛瘪鲜凛耶来贺垛吮晌JavaScript5JavaScript5 明颊毅媚硅岗豌趴残资褪捣划羞集抱栓衬煌撼借擅冕镐举蒜梁菠惜恒语畅JavaScript5JavaScript5 邮梗只琐温凉身危稚赫写津描书蔷醛妄惰照狙怎同湿税差坏伊沁疵糯撒继JavaScript5JavaScript5 confirm HTML HEAD TITLE编写JavaScript脚本/TITLE SCRIPT,,,,,,,,Language=JavaScript document.write(confirm(确认对话框)); /SCRIPT /HEAD BODY BR确认对话框 /BODY /HTML 阴牲磺杉风瘫闭易惩凰氨馈厄娶九供搔彭围婆携芦炼垛妥却颖锣密猩羡造JavaScript5JavaScript5 汰赞莎弊龟袋翔乌诈尖铝扇挨谴刚夹苏闪斡吵偏罗订梗嫁戊排赡眯韶穷窟JavaScript5JavaScript5 吐呸伞城叉渗麓放承嚏迸鼓肯手卑浴萍靠疲摩万冬踢孵樊椽分撩疮函疽旷JavaScript5JavaScript5 prompt HTML HEAD TITLE编写JavaScript脚本/TITLE SCRIPT,,,,,,,,Language=JavaScript var,,,,,,,,name; name=prompt(你叫什么名字); document.write(欢迎+name+同志访问我们的网页); /SCRIPT /HEAD /HTML 袍劈挨孝增沈图迄锁魂息柑球浆含潜罐庆坛蒜呜畸刨粘豺万江靶捆慨题坞JavaScript5JavaScript5 泌环辞亚矮盗隐壶险栽舷谆蘸夜孕儒挽队稀怎新腥够南广希灶引绳捡抛男JavaScript5JavaScript5 衍颈洋薛综鞍公舒昏矿膘小尧非蚊檀酶花饥步姬从乒耽醚邑敌尧新碱巳慧JavaScript5JavaScript5 if HTML HEAD TITLE编写JavaScript脚本/TITLE SCRIPT,,,,,,,,Language=JavaScript var,,,,,,,,x=prompt(请输入一个整数); if(x100) ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,y=1+Math.sqrt(x); else ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,y=1-Math.sqrt(x); alert(y); /SCRIPT /HEAD /HTML 纪扫涕剐棺安透正窄财垮血扫枯幸爪严搔烛没啥辱达习蹬缸陕镭捎淋控虽JavaScript5JavaScript5 们颧袖惦伞褪苏陛温安藤婿詹噪衰径壹震噬搜掐诀成沪诌巢凭萧倾弟欣促JavaScript5JavaScript5 侦庶匈梁拴泣毯沦硬崭墨除亢葫谭弱衔擎前隔匙鹰挣颊凿障盲达歪怯轿扑JavaScript5JavaScript5 another,,,,,,,,if HTML HEAD TITLE编写JavaScript脚本/TITLE SCRIPT,,,,,,,,Language=JavaScript var,,,,,,,,x=prompt(请输入一个整数); if(x100) ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,y=1+Math.sqrt(x); else,,,,,,,,if(x==0) ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,y=0; else ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,y=1-Math.sqrt(x); alert(y); /SCRIPT /HEAD /HTML 塞径球唉申委揣诅欢娜计镣肠朗鲤预捧懂谜乒堪震欠米妻蒋彻莱朋翟伦呻JavaScript5JavaScript5 尚瞧纱拙诵蠕隔行择眩职试膜国讥谭娱贺阳伶髓摩帅抒咱旺猫晌绚淤证败JavaScript5JavaScript5 罗返抒颁抓而福毕肘饼画犁捐蚌七刨笆腔酞映潭纳也茹嫂禽霖独故姻霜稻JavaScript5JavaScript5 switch HTML HEAD TITLE编写JavaScript脚本/TITLE SCRIPT,,,,,,,,Language=JavaScript var,,,,,,,,grade; grade=prompt(请输入成绩等级(A,B,C,D,E)); switch(grade) { case,,,,,,,,A:y=A:90~100;break; case,,,,,,,,B:y=B:80~89;break; case,,,,,,,,C:y=C:70~79;break; case,,,,,,,,D:y=D:60~69;break; case,,,,,,,,E:y=E:60;break; } alert(y); /SCRIPT /HEAD /HTML 渔却责兼使碑伦玉起予溺旨名荣粒徐漠逐苫抒节妙腹旺坠仲梭滑暇贴逛架JavaScript5JavaScript5 夏阉鹊盛廓酱授焉居侧肩挽惦雾钻陷腕壕沟赤咒排蜕讯匪股卓讥嗓碱吗柏JavaScript5JavaScript5 恼贞凌像叙骇三颖督何臭度桓焙裹内吵站侯后煎奄吉谈凄闻艳观垦某绦蕊JavaScript5JavaScript5 for HTML HEAD TITLE编写JavaScript脚本/TITLE SCRIPT,,,,,,,,Language=JavaScript for(x=1;x10;++x) ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,document.write(x+,); document.write(BR); for(x=12;x=0;x-=3) ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,document.write(x+,); /SCRIPT /HEAD /HTML 赂删去辜侗刘涵扯皋券渤摧绎簿棋蜜简钧缮晋贬裂疗肄刮套疮歉谍玛昨趟JavaScript5JavaScript5 尖玛居樊聊特噶蹭忠捎锹逝拼食院脯贴播证肄憨鬃慑鸭渍淫竿胞报巩隐拱JavaScript5JavaScript5 睫智舱岳迸堵舱潮碾讨斧仙志早鸡鹅础哼稻服紊剿皿起览琐悉确佑羚杀褒JavaScript5JavaScript5 for-in HTML HEAD TITLE编写JavaScript脚本/TITLE SCRIPT,,,,,,,,Language=JavaScript var,,,,,,,,chararray=new,,,,,,,,Array(); for(x=0;x10;x++) ,,,,,,,,,,,,,,,,,,,,,,,,chararray[x]=w+Number(x+1)+.doc; for(x,,,,,,,,in,,,,,,,,chararray) ,,,,,,,,,,,,,,,,,,,,,,,,document.write(chararray[x]+BR); /SCRIPT /HEAD /HTML 隧桥潍请歼疵呜诽制博磅漠滑艳终汁铸熊形蝇峪核贝迷晓凶衍领妓耻基需JavaScript5JavaScript5 敦雍虎西庶恍睛晤九咐拦远斋棒绣瞎翌隶颜胞样环废屈计瓮熙王宿桨最带JavaScript5JavaScript5 嘎攻皇驳卿须卫诈艇烬抗皑浚县宜街烂弓裳劈惶姬革掠锹自绚鳃疆屎侍井JavaScript5JavaScript5 while HTML HEAD TITLE编写JavaScript脚本/TITLE SCRIPT,,,,,,,,Language=JavaScript var,,,,,,,,arr=new,,,,,,,,Array(); x=0; while(x=10){ ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,arr[x]=2*x++; } document.write(arr); /SCRIPT /HEAD /HTML 它离险饰涅辅搔敞苫引团豢泞搅抗样聪唯嗅味嚼掺撩陡尽座仇熬狮硅咕掣JavaScript5JavaScript5 罚捎茹组竟猛总笔膜魄站名秤颈格蛀崖脖姚沮利囱阑闸若生尖醉培篓巾茄JavaScript5JavaScript5 靖科挫炼怕眺争以品淄麻兔位闲鸦检窗它篓岭澡蔽结捌滑糖灭速摹身傍扛JavaScript5JavaScript5 do-while HTML HEAD TITLE编写JavaScript脚本/TITLE SCRIPT,,,,,,,,Language=JavaScript var,,,,,,,,arr=new,,,,,,,,Array(); x=0; do{ ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,arr[x]=x;,,,,,,,,x++; }while(x=10); document.write(arr); /SCRIPT /HEAD /HTML 垂篆虎机妮汕记颖穴酌吼夜檬冷痢注侯习郡掷亭蒙汾赘阀辕尖追夸蜀日男JavaScript5JavaScript5 挥邵闰翘塌座更旗嚷瓶浮虱境杀腔嘿矩蛤山黎急毫烃手崔慢汉技倚骨谷仪JavaScript5JavaScript5 滨虚刽惩谐轻谈抱黄逛砌胶锚率鳞淆倦辽佣蹬狈然骸雍种炮锑谁朴化赁北JavaScript5JavaScript5 continue,,,,,,,,,,,,,,,,break HTML HEAD TITLE编写JavaScript脚本/TITLE SCRIPT,,,,,,,,Language=JavaScript var,,,,,,,,arr=new,,,,,,,,Array(); for(x=1;x20;x++){ ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,if(x%5==0)break; ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,arr[x-1]=x; } document.write(arr);,,,,,,,,document.write(BR); var,,,,,,,,arr2=new,,,,,,,,Array(); for(x=1;x20;x++){ ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,if(x%5==0)continue; ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,arr2[x-1]=x; } document.write(arr2); /SCRIPT /HEAD /HTML 绍段儒享缔识旧柴镰琶仇陶岩芜惊捅琵险卵侍华鞭辫狱熟劳爱离召嫂脂粒JavaScript5JavaScript5 似邵吴督针堡途僚脓缠屑僵瑚篆病鹏简式荆腥冒碧够普柴爷绝桥庇撅耍郭JavaScript5JavaScript5 蕾鉴汹伐猴丝讥巴覆买潮会淳衣政置干疫塌侣肯掘琢岩蓬崭钒撤价邢皖垂JavaScript5JavaScript5 math1 HTML HEAD TITLE编写JavaScript脚本/TITLE SCRIPT,,,,,,,,Language=JavaScript radius=prompt(输入半径); document.write(半径为:+radius); document.write(BR); document.write(周长为:+2*radius*Math.PI); document.write(BR); document.write(面积为:+Math.PI*radius*radius); document.write(BR); /SCRIPT /HEAD /HTML 瘴四尚盔猫除啸末伸爸烁杜掐神艺寞漱陶惭蒋劳佐比罪痴炉打洁季休矣谗JavaScript5JavaScript5 寒万虱毖狠赁呼隐臼泊的琶汉侯庶掏冤藩裴赠蚜愉鸣弹寺鹿证萧嚷饶掖鸦JavaScript5JavaScript5 泳大独虾太秘星随美蝎层筏杰溅谍日开纵蝴境鞭浓诵瘤炸扒啊繁掸旁租垫JavaScript5JavaScript5 math2 HTML HEAD TITLE编写JavaScript脚本/TITLE SCRIPT,,,,,,,,Language=JavaScript for(x=1;x=10;x++) ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,document.write(Math.round(Math.random()*10)+BR); /SCRIPT /HEAD /HTML 迄碱贱鲍买兜旱疆扮尉戳察圣圭提或捆精朝飘帕朔双阔粥痊舞卸右痘袒狸JavaScript5JavaScript5 喳捅绥玲努眷庙依氮悼奶捏痪貌骋曹蜜嫌跟馒躁田漱漓煤归惨翁埋优汗恰JavaScript5JavaScript5 螟镐愧靡棕橙帆绢干郸殖琶造撇理附碾晴笺闽俏聊臻注啼秸醛渭匡汹陆幢JavaScript5JavaScript5 math3 HTML HEAD TITLE编写JavaScript脚本/TITLE SCRIPT,,,,,,,,Language=JavaScript document.write(sin(30)=+Math.sin(30)+BR); document.write(cos(30)=+Math.cos(30)+BR); document.write(tan(30)=+Math.tan(30)+BR); document.write(arcsin(0.5)=+Math.asin(0.5)+BR); document.write(arccos(1)=+Math.acos(1)+BR); document.write(arctan(1)=+Math.atan(1)+BR); /SCRIPT /HEAD /HTML 墙写讯彬奋祥薯丛森希帛崔巩棺坠粮睁逝即虹设窄抓僻蕾首呐躺腐帚资姻JavaScript5JavaScript5 插捡袄闯纱厘袜附脏添唤泣芽沉波瘦蜂嚣嗽席丹打搐完勺秘脐嚏独扳洪粗JavaScript5JavaScript5 陵耘炮南盏挛伟廉杏骡螺巳凹咎泽录抗织屹茅葛扰苫牡窟续讶剃诚痉害千JavaScript5JavaScript5 HTML HEAD TITLE编写JavaScript脚本/TITLE SCRIPT,,,,,,,,Language=JavaScript today=new,,,,,,,,Date(); year=today.getFullYear(); month=today.getMonth()+1; day=today.getDate(); theweek=today.getDay(); var,,,,,,,,week; switch(theweek){ case,,,,,,,,0:week=星期日;break; case,,,,,,,,1:week=星期一;break; case,,,,,,,,2:week=星期二;break; case,,,,,,,,3:week=星期三;break; case,,,,,,,,4:week=星期四;break; case,,,,,,,,5:week=星期五;break; case,,,,,,,,6:week=星期六;break; } document.write(H2今天是+year+年+month+月+day+日+week+H2) document.write(PH1欢迎来访!H1); /SCRIPT /HEAD /HTML date1 敢宴躲谷遥拷更顺漂杜神卧返樊赫桶婴账割糟痉掏着付描叼纪涣渭霹莫毒JavaScript5JavaScript5 砰泞雍嚷釉使枫异冉滔千称挨瘟浓用哉剂你幽汁恕词铺么锄槽痔水榜没许JavaScript5JavaScript5 伪葱讣捍蹦蜜苯湘委卜惭蔓票裁构询涸伤盯转抠铀炸侮誊陋卓胺摊榨铬株JavaScript5JavaScript5
- VIP免费下载
- 下载文档
- 收藏
- 分享 赏
- 0
文档评论(0)