1. การแทรกโค๊ด ตัวอักษรวิ่ง คลิกลิงก์
ตัวอย่างโค๊ดนำไปใช้งานได้เลย
<marquee bgcolor="#A9E0B8" direction="left" scrollamount="5" behavior = "alternate" >
<font color ="red" size = "5">
ยินดีต้อนรับเข้าสู่เว็บไซต์ของฉัน
</font>
</marquee>
2. การแทรกโค๊ด รูปภาพวิ่ง
<img src = "https://docs.google.com/uc?id=148cIJFx3XrKZ_CSv4R197LNbZp12fB1B" width = "50" height = "50"> <!-- ใส่ id ของรูปภาพ ที่นำมาจาก Google Drive -->
3. การแทรกโค๊ดภาพสั่น คลิก
ดาวน์โหลดภาพตัวอย่าง คลิก
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
img:hover {
animation: shake 0.5s;
animation-iteration-count: infinite;
}
@keyframes shake {
0% { transform: translate(1px, 1px) rotate(0deg); }
10% { transform: translate(-1px, -2px) rotate(-1deg); }
20% { transform: translate(-3px, 0px) rotate(1deg); }
30% { transform: translate(3px, 2px) rotate(0deg); }
40% { transform: translate(1px, -1px) rotate(1deg); }
50% { transform: translate(-1px, 2px) rotate(-1deg); }
60% { transform: translate(-3px, 1px) rotate(0deg); }
70% { transform: translate(3px, 1px) rotate(-1deg); }
80% { transform: translate(-1px, -1px) rotate(1deg); }
90% { transform: translate(1px, 2px) rotate(0deg); }
100% { transform: translate(1px, -2px) rotate(-1deg); }
}
</style>
</head>
<body>
<a href ="https://www.facebook.com/groups/2491891937740722" > <!-- ใส่ URL ของเว็บไซต์ปลายทาง -->
<img src="https://docs.google.com/uc?id=10q7ASAjEYMpJg69lebb-Wv6QfMpPa6Vm" width = "" height = "" alt="เข้าร่วมกลุ่ม" width="240" height="300"> <!-- ใส่ id ของรูปภาพ ที่นำมาจาก Google Drive -->
</a>
</body>
</html>
4. การแทรกโค๊ดภาพพลิก คลิก
<!DOCTYPE html>
<html>
<head>
<style>
<!--
A:link {text-decoration: none; Color: white}
A:visited {text-decoration: none; Color: white}
A:hover {text-decoration: none; font-weight: underline; Color: #black}
// -->
</style>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
font-family: Arial, Helvetica, sans-serif;
}
.flip-box {
background-color: transparent;
width: 300px;
height: 200px;
border: 1px solid #f1f1f1;
perspective: 1000px;
}
.flip-box-inner {
position: relative;
width: 100%;
height: 100%;
text-align: center;
transition: transform 0.8s;
transform-style: preserve-3d;
}
.flip-box:hover .flip-box-inner {
transform: rotateX(180deg);
}
.flip-box-front, .flip-box-back {
position: absolute;
width: 100%;
height: 100%;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}
.flip-box-front {
background-image: url('https://docs.google.com/uc?id=1pqeRDciobXL_DnF8TeaiJa0_aXTXXmuB');
background-repeat: no-repeat;
background-color: #bbb;
color: white;
}
.flip-box-back {
background-color: #3300FF;
color: white;
transform: rotateX(180deg);
}
</style>
</head>
<body>
<center>
<h3>รหัสวิชา ว23215 การสร้างเว็บไซต์ ม.3</h3>
<!--<h4>Hover over the box below:</h4>-->
<div class="flip-box">
<div class="flip-box-inner">
<div class="flip-box-front"><br><br><br>
</div>
<div class="flip-box-back"><br><br><br>
<a href="https://kruwoot.skburana.ac.th/course/%E0%B8%A723215-%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%AA%E0%B8%A3%E0%B8%B2%E0%B8%87%E0%B9%80%E0%B8%A7%E0%B8%9A%E0%B9%84%E0%B8%8B%E0%B8%95-%E0%B8%A1-3-%E0%B8%9B-64"><H2>คลิกเข้าสู่บทเรียน</H2></a>
</div>
</div>
</div>
</center>
</body>
</html>
4. การแทรกโค๊ดภาพสั่น อัตโนมัติ
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
img:hover
{
animation: shake 0.5s;
animation-iteration-count: infinite;
}
@keyframes shake {
0% { transform: translate(1px, 1px) rotate(0deg); }
10% { transform: translate(-1px, -2px) rotate(-1deg); }
20% { transform: translate(-3px, 0px) rotate(1deg); }
30% { transform: translate(3px, 2px) rotate(0deg); }
40% { transform: translate(1px, -1px) rotate(1deg); }
50% { transform: translate(-1px, 2px) rotate(-1deg); }
60% { transform: translate(-3px, 1px) rotate(0deg); }
70% { transform: translate(3px, 1px) rotate(-1deg); }
80% { transform: translate(-1px, -1px) rotate(1deg); }
90% { transform: translate(1px, 2px) rotate(0deg); }
100% { transform: translate(1px, -2px) rotate(-1deg); }
}
</style>
</head>
<body>
<!-- ถ้าเอา :hover ออกจะเป็นการเล่นอัตโนมัติ -->
<p>Hover over the image:</p>
<img src="pineapple.jpg" alt="Pineapple" width="300" height="300">
</body>
</html>