当前位置:网站首页>DOM light switch case
DOM light switch case
2022-07-03 21:37:00 【Rice field prospector】
<body>
<img src="./off.gif" id="light">
<script> //1. Get the picture object var light = document.getElementById("light"); var flag = false;// It means that the light is off //2. Bind click event light.onclick = function(){
if(flag){
// Judge if the light is on, then turn it off light.src = "./on.gif" flag = false; }else{
// Judge if the light is off, turn it on light.src = "./off.gif" flag = true; } } </script>
</body>
边栏推荐
- [vulnhub shooting range] impulse: lupinone
- Base ring tree Cartesian tree
- Why use pycharm to run the use case successfully but cannot exit?
- Common SQL sets
- Preliminary understanding of C program design
- 运维各常用命令总结
- Basic number theory -- Chinese remainder theorem
- Such as the visual appeal of the live broadcast of NBA Finals, can you still see it like this?
- "Actbert" Baidu & Sydney University of technology proposed actbert to learn the global and local video text representation, which is effective in five video text tasks
- Global and Chinese market of wall mounted kiosks 2022-2028: Research Report on technology, participants, trends, market size and share
猜你喜欢

treevalue——Master Nested Data Like Tensor

Collections SQL communes

@Transactional注解失效的场景

Go learning notes (4) basic types and statements (3)

90 後,辭職創業,說要卷死雲數據庫
![[vulnhub shooting range] impulse: lupinone](/img/27/b92eeceefd1c71f19d926bdd1eee8b.jpg)
[vulnhub shooting range] impulse: lupinone

MySQL——idea连接MySQL

MySQL - database backup

Software testing skills, JMeter stress testing tutorial, obtaining post request data in x-www-form-urlencoded format (24)

Compréhension de la technologie gslb (Global Server load balance)
随机推荐
What if the Flink SQL client exits and the table is emptied?
Ask and answer: dispel your doubts about the virtual function mechanism
Global and Chinese market of telematics boxes 2022-2028: Research Report on technology, participants, trends, market size and share
"Actbert" Baidu & Sydney University of technology proposed actbert to learn the global and local video text representation, which is effective in five video text tasks
The post-90s resigned and started a business, saying they would kill cloud database
Idea shortcut word operation
4. Data splitting of Flink real-time project
Xai+ network security? Brandon University and others' latest "interpretable artificial intelligence in network security applications" overview, 33 page PDF describes its current situation, challenges,
运维各常用命令总结
Capturing and sorting out external articles -- autoresponder, composer, statistics [III]
Mysql - - Index
Remember the experience of automatically jumping to spinach station when the home page was tampered with
No matter how hot the metauniverse is, it cannot be separated from data
@Scenario of transactional annotation invalidation
Global and Chinese market of recycled yarn 2022-2028: Research Report on technology, participants, trends, market size and share
大神们,我想发两个广播流1 从mysql加载基础数据,广播出去2 从kafka加载基础数据的变更
Preliminary understanding of C program design
Getting started with postman -- built-in dynamic parameters, custom parameters and assertions
Scientific research document management Zotero
Mysql database ----- common commands of database (based on database)