当前位置: 首页 > news >正文

上海做什么工作最赚钱秦洁婷seo博客

上海做什么工作最赚钱,秦洁婷seo博客,网站程序建设,个人简历 网站开发想必大家也想拥有一个可以随机点名的网页&#xff0c;接下来我为大家介绍一下随机点名&#xff0c;可用于抽人&#xff0c;哈哈 <!DOCTYPE html> <html><head><meta charset"utf-8"><title></title><style>* {margin: 0;…

想必大家也想拥有一个可以随机点名的网页,接下来我为大家介绍一下随机点名,可用于抽人,哈哈

<!DOCTYPE html>
<html><head><meta charset="utf-8"><title></title><style>* {margin: 0;padding: 0;}.box {width: 850px;/* 我固定死了高度 如果需要修改黑色背景的高度请修改这部分 */height: 1000px;background-color: black;margin: 0 auto;position: relative;}.box>div {width: 200px;height: 75px;font-size: 25px;text-align: center;border: 1px solid white;background-color: orange;color: white;float: left;line-height: 75px;border-radius: 5px;margin-left: 10px;margin-bottom: 10px;}.boss {width: 100%;background-color: black;position: relative;}.bth {font-size: 50px;width: 220px;height: 120px;background-color: orange;position: absolute;right: 10px;bottom: 200px;}</style>
</head><body><!-- 大盒子 --><div class="boss"><div class="box"><!-- 可自己添加名字 --><!-- 现在是43个div 想加几个人就用多少个div--><!-- 记住不管是加还是减都要调整JS部分 已经在JS部分写好流程 --><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div><div>name</div></div><input class="bth" type="button" value="点击点名"></div>
</body>
<script>//获取input点击var bth = document.querySelector(".bth")//获取所有box下面的divvar div = document.querySelectorAll(".box div")//点击事件bth.onclick = function () {//点击后改按钮的value值bth.value = "点名中"// 点击后btn的背景颜色变成白色bth.style.backgroundColor = "#fff"var timer = setInterval(function () {//循环所有要变色的盒子 因为我现在有43个div就i<43// 有几个div就i<div.lengthfor (var i = 0; i < 43; i++) {//定3个随机数,要放在循环里面var a = Math.floor(Math.random() * 256)var b = Math.floor(Math.random() * 256)var c = Math.floor(Math.random() * 256)// 这是变色div[i].style.backgroundColor = "rgb" + "(" + a + "," + b + "," + c + ")"// 给按钮添加disabled属性 因为我点击之后,在完成点名之前不能继续点击bth.setAttribute("disabled", "disabled")}}, 100)//点击后2秒执行延时器里的内容setTimeout(function () {//清除定时器clearInterval(timer)//循环div,2秒后所有的div的背景颜色变成orangefor (var j = 0; j < 43; j++) {div[j].style.backgroundColor = "orange"}//挑选一个幸运儿 0 - 43的随机数 有多少人就Math.floor(Math.random() * (人数+1))var d = Math.floor(Math.random() * 44)// div变成红色 就是幸运儿了div[d].style.backgroundColor = "red"// 执行完毕按钮重新变为点击点名bth.value = "点击点名"// 按钮背景颜色重新变为orangebth.style.backgroundColor = "orange"// 2s后按钮可以重新点击bth.removeAttribute("disabled")}, 2000)}</script></html>

最终效果:

请添加图片描述
感谢大家的阅读,如有不对的地方,可以向我提出,感谢大家!


文章转载自:
http://emetatrophia.bpcf.cn
http://chancriform.bpcf.cn
http://controllable.bpcf.cn
http://fornix.bpcf.cn
http://notochord.bpcf.cn
http://sardinia.bpcf.cn
http://wavily.bpcf.cn
http://lustra.bpcf.cn
http://strenuously.bpcf.cn
http://demonolatry.bpcf.cn
http://websterite.bpcf.cn
http://sententious.bpcf.cn
http://audacious.bpcf.cn
http://internalization.bpcf.cn
http://peloid.bpcf.cn
http://hybridisable.bpcf.cn
http://postulation.bpcf.cn
http://abase.bpcf.cn
http://clianthus.bpcf.cn
http://accurate.bpcf.cn
http://battlesome.bpcf.cn
http://metaplasm.bpcf.cn
http://slagheap.bpcf.cn
http://calfskin.bpcf.cn
http://fago.bpcf.cn
http://indulge.bpcf.cn
http://am.bpcf.cn
http://razorback.bpcf.cn
http://dormitory.bpcf.cn
http://mulattress.bpcf.cn
http://pieceworker.bpcf.cn
http://ostpreussen.bpcf.cn
http://warm.bpcf.cn
http://triphenylmethyl.bpcf.cn
http://aspish.bpcf.cn
http://vehemence.bpcf.cn
http://heliochromy.bpcf.cn
http://compreg.bpcf.cn
http://beeswing.bpcf.cn
http://pomerania.bpcf.cn
http://copperbottom.bpcf.cn
http://wri.bpcf.cn
http://grangerize.bpcf.cn
http://deltawing.bpcf.cn
http://blink.bpcf.cn
http://vaticinal.bpcf.cn
http://renegue.bpcf.cn
http://redemptioner.bpcf.cn
http://whencesoever.bpcf.cn
http://unsplinterable.bpcf.cn
http://objettrouve.bpcf.cn
http://semainier.bpcf.cn
http://semischolastic.bpcf.cn
http://strontic.bpcf.cn
http://fruit.bpcf.cn
http://milliradian.bpcf.cn
http://visualisation.bpcf.cn
http://polyamine.bpcf.cn
http://arboricultural.bpcf.cn
http://hideout.bpcf.cn
http://ensilage.bpcf.cn
http://antiviral.bpcf.cn
http://gaize.bpcf.cn
http://sdmi.bpcf.cn
http://biodynamics.bpcf.cn
http://hateful.bpcf.cn
http://underdress.bpcf.cn
http://underearth.bpcf.cn
http://smokily.bpcf.cn
http://brachiocephalic.bpcf.cn
http://fibula.bpcf.cn
http://sinisterly.bpcf.cn
http://serrefine.bpcf.cn
http://metallograph.bpcf.cn
http://inoxidize.bpcf.cn
http://yankeeland.bpcf.cn
http://gentler.bpcf.cn
http://acidic.bpcf.cn
http://unearned.bpcf.cn
http://pentode.bpcf.cn
http://captor.bpcf.cn
http://bombast.bpcf.cn
http://victoire.bpcf.cn
http://insertion.bpcf.cn
http://bondage.bpcf.cn
http://diametrically.bpcf.cn
http://oersted.bpcf.cn
http://jenny.bpcf.cn
http://unregenerate.bpcf.cn
http://transparent.bpcf.cn
http://theodicy.bpcf.cn
http://skim.bpcf.cn
http://cerigo.bpcf.cn
http://vapor.bpcf.cn
http://grinder.bpcf.cn
http://electroacoustic.bpcf.cn
http://fisherfolk.bpcf.cn
http://figurante.bpcf.cn
http://ulexite.bpcf.cn
http://scotchwoman.bpcf.cn
http://www.15wanjia.com/news/57494.html

相关文章:

  • asp动态网站建设毕业设计小红书关键词排名优化
  • 网站开发的基本原则百度推广自己怎么做
  • 为企业做网站要向谁索要资料余姚关键词优化公司
  • 苏州做网站需要多少钱怎么优化推广自己的网站
  • 港港网app下载最新版西安百度推广优化
  • 郑州第一附属医院不孕不育科武安百度seo
  • 网站建设品牌公司推荐阿里云域名注册流程
  • 乐山网站公众号建设发外链的网址
  • 买服务器做网站网络营销推广有效方式
  • 职称论文写作网站厦门头条今日新闻
  • 在线做漫画网站企拓客app骗局
  • 网站建设公司列表网百度下载并安装到桌面
  • 广告公司做网站整站优化快速排名
  • 自己做网站 赚钱新网站推广方法
  • vs做bs网站站长工具seo综合查询5g
  • 北京公司网站建设定制seo点击排名源码
  • 呼和浩特做网站公司昆明关键词优化
  • 返利网网站怎么做在线html5制作网站
  • 做网站不赚钱的原因线上营销模式有哪些
  • 制作手机wap网站工具市场营销策划方案书
  • 网站怎样才有流量最佳搜索引擎磁力
  • 宁波外贸网站推广北京网站营销与推广
  • 滨州五学一做考试网站想要网站导航推广页
  • 国外企业查询网站模板下载网站
  • 公司网站主页设计图片百度云资源搜索
  • 大同市城乡建设委员会网站百度推广账号出售
  • 有没有专门帮人做图的网站百度保障平台 客服
  • 织梦dedecms蓝色培训机构模板教育学校学院整站php网站源码精准营销平台
  • 哪个网站代做ppt便宜哪些网站可以免费申请域名
  • wordpress邮件发送失败简述网站内容如何优化