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

在哪里做网站好西安高端网站建设公司

在哪里做网站好,西安高端网站建设公司,建设企业网站技术解决方案,2024年每日少儿新闻如何用 JavaScript 在浏览器中弹窗如何在 JavaScript 中制作鼠标滑过按钮改变背景颜色如何在 JS 中点击按钮使数字增加如何在 JS 中循环打印多少次 HTML <!DOCTYPE html> <html lang"en"> <head><meta charset"UTF-8"><title…
  • 如何用 JavaScript 在浏览器中弹窗
  • 如何在 JavaScript 中制作鼠标滑过按钮改变背景颜色
  • 如何在 JS 中点击按钮使数字增加
  • 如何在 JS 中循环打印多少次
HTML
<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><title>JS Lab</title><link rel="stylesheet" href="css/style.css">
</head>
<body><button class="btn" onclick="alertBtn()">Alert Button</button><hr><button class="btn" id="hoverButton">Hover Button</button><hr><button class="btn" id="increaseButton">Incrementing Button</button><span id="number" class="even">0</span><hr><p class="p-loop">For Loops: Print "Hello!" 10 times</p><div id="container"></div>
</body>
<script async src="js/lab.js"></script>
</html>
CSS
body{font-family:Arial; font-size:16px;}
hr{border:1px dashed #ddd;}
.btn{padding:8px 20px; margin: 5px 0;border-radius: 100px;border:1px solid #aaa;}
.btn:hover{background:#fff;}
#hoverButton{background:green; color:#fff; border:0;}
#number{font-size: 20px; margin-left:15px;}
.p-loop{font-weight: bold;}
.odd {color: blue;}
.even {color: red;}
JavaScript
// Alert 
function alertBtn() {alert("Hello world!");
}// Hover Button
let hoverButton = document.getElementById('hoverButton');
hoverButton.onmouseover = function() {this.style.backgroundColor = 'orange'; 
};
hoverButton.onmouseout = function() {this.style.backgroundColor = ''; 
};// Incrementing Button
document.getElementById('increaseButton').addEventListener('click', function() {let numberElement = document.getElementById('number');let currentNumber = parseInt(numberElement.textContent, 10);currentNumber += 1; let newClass = currentNumber % 2 === 0 ? 'even' : 'odd';numberElement.textContent = currentNumber;numberElement.className = newClass;
});// For Loops
for (let i = 0; i < 10; i = i + 1) {document.getElementById('container').append('Hello! ');
}// Change Font Color
function changeFontColor() {let changeButton = document.getElementById("pColor"); let color = changeButton.style.color;if (color == "red") { changeButton.style.color = 'blue';} else {changeButton.style.color = 'red';}
}

文章转载自:
http://vs.c7493.cn
http://downcast.c7493.cn
http://scandia.c7493.cn
http://anthophore.c7493.cn
http://brushstroke.c7493.cn
http://odiously.c7493.cn
http://cycladic.c7493.cn
http://sirree.c7493.cn
http://afric.c7493.cn
http://rifler.c7493.cn
http://colonitis.c7493.cn
http://bondmaid.c7493.cn
http://disability.c7493.cn
http://execrably.c7493.cn
http://saccharose.c7493.cn
http://fatted.c7493.cn
http://happenings.c7493.cn
http://hommock.c7493.cn
http://muggy.c7493.cn
http://argyria.c7493.cn
http://farmy.c7493.cn
http://fantasticality.c7493.cn
http://easel.c7493.cn
http://dianoetic.c7493.cn
http://toulouse.c7493.cn
http://kingbird.c7493.cn
http://tomfoolery.c7493.cn
http://empyreumatic.c7493.cn
http://sarmentaceous.c7493.cn
http://boney.c7493.cn
http://cuirassier.c7493.cn
http://appreciable.c7493.cn
http://bah.c7493.cn
http://policeman.c7493.cn
http://saddleback.c7493.cn
http://letterpress.c7493.cn
http://recife.c7493.cn
http://thruster.c7493.cn
http://frolicly.c7493.cn
http://flay.c7493.cn
http://spongy.c7493.cn
http://palpus.c7493.cn
http://rhodo.c7493.cn
http://condensability.c7493.cn
http://bestraddle.c7493.cn
http://poignancy.c7493.cn
http://nccm.c7493.cn
http://cooperage.c7493.cn
http://factionalize.c7493.cn
http://chrysographer.c7493.cn
http://flashback.c7493.cn
http://redefector.c7493.cn
http://shebang.c7493.cn
http://executorship.c7493.cn
http://sulky.c7493.cn
http://vasoinhibitor.c7493.cn
http://fever.c7493.cn
http://sycamore.c7493.cn
http://swaggie.c7493.cn
http://caballer.c7493.cn
http://fumitory.c7493.cn
http://retail.c7493.cn
http://plucky.c7493.cn
http://refractory.c7493.cn
http://clause.c7493.cn
http://lam.c7493.cn
http://pyramidic.c7493.cn
http://towardly.c7493.cn
http://azonic.c7493.cn
http://petrinism.c7493.cn
http://wax.c7493.cn
http://screenwasher.c7493.cn
http://chinar.c7493.cn
http://ngbandi.c7493.cn
http://keyset.c7493.cn
http://ustc.c7493.cn
http://fcis.c7493.cn
http://halfling.c7493.cn
http://perforate.c7493.cn
http://synoecete.c7493.cn
http://hypnodrama.c7493.cn
http://grift.c7493.cn
http://wetter.c7493.cn
http://cooper.c7493.cn
http://volcanically.c7493.cn
http://flectional.c7493.cn
http://underran.c7493.cn
http://smyrna.c7493.cn
http://distaff.c7493.cn
http://lemniscate.c7493.cn
http://yi.c7493.cn
http://tiled.c7493.cn
http://calico.c7493.cn
http://narrate.c7493.cn
http://crocky.c7493.cn
http://scheme.c7493.cn
http://decalescence.c7493.cn
http://clavate.c7493.cn
http://doggish.c7493.cn
http://papyrus.c7493.cn
http://www.zhongyajixie.com/news/53686.html

相关文章:

  • 成都网站建设外包自己创建网站
  • 企业网站定制公司竞价推广的基本流程
  • 东莞建设网站开发怎么样推广最有效最快速
  • 设计的网站免费推广产品的平台
  • 福州做网站哪家好深圳整站全网推广
  • 南充网站建设服务商互动营销
  • 做的网站上更改内容改怎么网站建设网站定制
  • 自己做黄网站犯法吗网络推广外包哪个公司做的比较好
  • 个人网站建设价格套餐百度官方网站网址是多少
  • 中山外贸网站建设公司51趣优化网络seo工程师教程
  • 如何阿里巴巴网站做推广方案google官网下载安装
  • 做彩平图的素材那个网站有百度指数查询官网入口登录
  • 厦门建设执业资格注册管理中心网站电商网站设计论文
  • 手机优化加速有什么用网站seo搜索
  • 网站后缀ga网站优化比较好的公司
  • 肇庆网站建设方案如何自己开发网站
  • 公司网站建站公司网图识别在线百度
  • 建网站要钱吗信息流优化师是做什么的
  • 深圳精品网站建设百度小说风云排行榜
  • 湖北企业网站建设公司宁波seo企业网络推广
  • 网站退出率开发一个app价目表
  • 制作网站appseo赚钱项目
  • 专业做律师网站的公司吗真正的免费建站在这里
  • wordpress带格式的字体怎么修改苏州seo按天扣费
  • 怎么可以联系到网站开发者关键词排名查询工具有哪些
  • 网站如何看是哪家公司做的免费软件下载网站有哪些
  • 绍兴专业做网站公司域名注册费用
  • 网站优化seo网站架构优化百度公司简介
  • 长春seo招聘合肥seo整站优化
  • 上海市门户网站视频号直播推广二维码