MapleStory Finger Point Cute Line Smiley Blinking Hello Kitty Angel MapleStory Finger Point

๐Ÿ’ŽWEB/Web_Code

หšโ‚Šโœฉโ€งโ‚Š 05/01 web ์‹ค์Šต หšโ‚Šโœฉโ€งโ‚Š

HYEJU01 2024. 5. 1. 17:16

 

๐Ÿ“ ๋ฉ”๋‰ด ๋งŒ๋“ค๊ธฐ 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="css/index4.css">
    <script src="js/index4.js"> </script>
</head>
<body>
    
   <header> ์Šคํƒ€๋ฒ…์Šค ์ฒด์ธ์  </header>
   <nav>
    <div>์•„๋ฉ”๋ฆฌ์นด๋…ธ</div>
    <div>์นดํ‘ธ์น˜๋…ธ</div>
    <div>๋ฐ€ํฌ์ปคํ”ผ</div>
    <div>๋”ธ๊ธฐ์ปคํ”ผ</div>
    <div>๋ธ”๋ž™์ปคํ”ผ</div>
   </nav>

</body>
</html>

 

* {
    margin: 0; padding: 0;
    list-style: none;
}

header {
    margin: 0 auto;
    width: 1000px; height: 150px;
    background-image: url('img.png');
    border: 1px solid green;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    background-size: 200px;
    background-position: 150px;
    background-repeat: no-repeat;
    font-size: 3rem;
    text-align: center;
    line-height: 150px;
}

nav {
    margin: 0 auto;
    width: 1000px; height: 150px;
    background-color: rgb(182, 204, 182);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid ;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;

}

nav div{
    margin: 0px 5px;
    width: 150px; height: 50px;
    text-align: center;
    line-height: 50px;
    border: 1px solid #111f0c;
    color:beige;
    background-color: #2b6d2b;
    border-radius: 20px;
    cursor: pointer;;
    font-size: 20px;
}


nav div:hover {
    box-shadow: 2px 2px 5px #5d6b58;
    color: black;
    background-color: rgb(219, 233, 215);
}

 


๐Ÿ“  img ์ •๋ ฌ ํ•˜๊ธฐ

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="css/index4.css">
    <script src="js/index4.js"> </script>
</head>
<body>

   <header> ๊ณ ์–‘์ด ๋™๋ฌผ ๋ณ‘์› </header>
   <div class="pic_img">
    <div><img src="img/cat1.jpg"></div>
    <div><img src="img/cat2.jpg"></div>
    <div><img src="img/cat3.jpg"></div>
</div>

</body>
</html>

 

* { 
    margin : 0; padding:0;
    list-style: none;
}

header {
    width: 1000px; height: 100px;
    border: 1px solid #ffffff;
    margin: 0 auto;
    font-size: 3rem;
    text-align: center;
    line-height: 100px;
    background-color: rgb(255, 186, 186);
}

.pic_img {
    width: 1000px; height: 200px;
    margin : 0 auto;
    top : -50%;
    border: 1px solid rgb(255, 186, 186);
    overflow: hidden;
    display: flex;
    justify-content: space-between;
}


img {
    width: 300px; height: 200px;
}

img:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

 


๐Ÿ“  JS 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="index4.css">
    <script src="index4-1.js"> </script>
</head>
<body>
    
    <header> ์ปคํ”ผ ์ฃผ๋ฌธ ํ™”๋ฉด ํ”„๋กœ๊ทธ๋žจ </header>
    
    <div class="btnBox"> 
    <input type="button" value="์ปคํ”ผ์ฃผ๋ฌธ" id="btn1">
    <input type="button" value="์ฃผ์Šค์ฃผ๋ฌธ" id="btn2">
    <input type="button" value="๋ฐ€ํฌ์ฃผ๋ฌธ" id="btn3">   
    </div>

    <div class="txt-box">
        <div class="txt"> ๋ฉ”์„ธ์ง€ ํ‘œ์‹œ </div>
    <div class="txt2"> <img src="img123.jpg"> </div>

    </div>
    
    

</body>
</html>
let btn1,btn2,btn3,txt;

window.onload = function(){

    btn1 = document.querySelector('#btn1');
    btn2 = document.querySelector('#btn2');
    btn3 = document.querySelector('#btn3');

    txt = document.querySelector('.txt');    

    btn1.addEventListener("click", function(){
        txt.innerHTML = "์ฃผ๋ฌธํ•˜์‹  ์ปคํ”ผ ๋‚˜์™”์Šต๋‹ˆ๋‹ค";
    })
    btn2.addEventListener("click", function(){
        txt.innerHTML = "์ฃผ๋ฌธํ•˜์‹  ์ฃผ์Šค ๋‚˜์™”์Šต๋‹ˆ๋‹ค";
    })
    btn3.addEventListener("click", function(){
        txt.innerHTML = "์ฃผ๋ฌธํ•˜์‹  ๋ฐ€ํฌ ๋‚˜์™”์Šต๋‹ˆ๋‹ค";
    })



}
* {
    margin: 0; padding: 0;
    list-style: none;
}

header {
    margin: 0 auto;
    width: 1000px; height: 150px;
    background-color: rgb(238, 205, 231);
    font-size: 3rem;
    text-align: center;
    line-height: 150px;
}

.btnBox {
    margin: 10px auto;
    width: 1000px; height: 150px;
    border: 1px solid rgb(126, 77, 77);
    display: flex;
    justify-content: space-between;
    align-items: center;
 
}

.btnBox input {
    display: block;
    width: 150px; height: 50px;
    border: 1px solid rgb(126, 77, 77);
    font-size: 20px;
    border-radius: 5px;
    background-color: rgb(255, 242, 246);
}
.btnBox input:hover {
    background-color: rgb(231, 163, 183);
    color: #fff;
    cursor: pointer;
}

.txt-box {
    width: 1000px; height: 100%;
    margin: 0 auto;
    display: flex;
}

.txt {
    margin: 10px auto;
    width: 1000px; height: 50px;
    font-size: 20px;
    line-height: 50px;
    text-align: center;
    border: 1px solid rgb(126, 77, 77);
    border-radius: 100px;
    border-bottom-right-radius: 0px;
}