COMING SOON 🚀

글씨의 색을 자동으로 변환시켜주는 자바스크립트 입니다.

· 10년 전 · 1132

<html>
<head>
<style type="text/css">
.hym{
color:black;
font-weight:400;
margin:10px 0px 10px 0px;
cursor:help;
width:140px;
height:25px;
padding:3px;
border:1px solid red;
background-color:lightyellow;
}
</style>
<script language="javascript">
var colorArray = ["#cedfff","#b0acff","#ee311c","#8e60dd","#c875b5","#de8faf","#25dc8e","#61e274","#becb21","#dd7ce4"];
var display;
var colorNum = 0;

function setColor(aObj){
    temp = 'setInterval(function(){ showColor(aObj); },60)';
    display = eval(temp);
}

function showColor(aObj){    
    colorNum = colorNum == colorArray.length -1 ? 0:colorNum+=1;    
    aObj.style.color=colorArray[colorNum];    
    aObj.style.fontWeight = 700;
}

function BreakColor(aObj){
    clearInterval(display);
    aObj.style.fontWeight = 400;
    aObj.style.color="black";
}
</script>
</head>

<body>
<div class="hym" onMouseover="setColor(this);" onMouseout="BreakColor(this);">Change Color..</div>
<div class="hym" onMouseover="setColor(this);" onMouseout="BreakColor(this);">Style Color...</div>
<div class="hym" onMouseover="setColor(this);" onMouseout="BreakColor(this);">Bye Bye Bye...</div>
</body>
</html>

|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
10년 전 조회 1,288
10년 전 조회 1,205
10년 전 조회 1,328
10년 전 조회 1,532
10년 전 조회 1,414
10년 전 조회 1,346
10년 전 조회 1,303
10년 전 조회 1,332
10년 전 조회 1,303
10년 전 조회 1,256
10년 전 조회 1,720
10년 전 조회 1,237
10년 전 조회 1,236
10년 전 조회 1,457
10년 전 조회 1,260
10년 전 조회 1,294
10년 전 조회 1,127
10년 전 조회 1,393
10년 전 조회 1,217
10년 전 조회 1,142
10년 전 조회 1,202
10년 전 조회 1,880
10년 전 조회 1,217
10년 전 조회 1,228
10년 전 조회 1,225
10년 전 조회 1,344
10년 전 조회 1,823
10년 전 조회 1,413
10년 전 조회 1,235
10년 전 조회 1,172
10년 전 조회 1,207
10년 전 조회 1,299
10년 전 조회 1,205
10년 전 조회 1,282
10년 전 조회 1,195
10년 전 조회 1,367
10년 전 조회 1,224
10년 전 조회 1,197
10년 전 조회 1,141
10년 전 조회 1,787
10년 전 조회 1,286
10년 전 조회 1,201
10년 전 조회 1,242
10년 전 조회 1,229
10년 전 조회 1,245
10년 전 조회 1,219
10년 전 조회 1,727
10년 전 조회 1,172
10년 전 조회 1,255
10년 전 조회 1,133
10년 전 조회 1,711
10년 전 조회 1,304
10년 전 조회 1,307
10년 전 조회 1,347
10년 전 조회 1,292
10년 전 조회 1,290
10년 전 조회 1,237
10년 전 조회 1,125
10년 전 조회 1,258
10년 전 조회 1,124
10년 전 조회 1,459
10년 전 조회 1,181
10년 전 조회 1,200
10년 전 조회 1,175
10년 전 조회 1,201
10년 전 조회 1,256
10년 전 조회 1,171
10년 전 조회 1,195
10년 전 조회 1,379
10년 전 조회 1,194
10년 전 조회 1,298
10년 전 조회 1,252
10년 전 조회 1,278
10년 전 조회 1,396
10년 전 조회 1,267
10년 전 조회 1,224
10년 전 조회 1,229
10년 전 조회 1,341
10년 전 조회 1,234
10년 전 조회 1,197
10년 전 조회 1,208
10년 전 조회 1,226
10년 전 조회 1,283
10년 전 조회 1,198
10년 전 조회 1,429
10년 전 조회 1,584
10년 전 조회 1,486
10년 전 조회 1,238
10년 전 조회 1,244
10년 전 조회 1,196
10년 전 조회 1,192
10년 전 조회 1,310
10년 전 조회 1,241
10년 전 조회 1,179
10년 전 조회 1,239
10년 전 조회 1,589
10년 전 조회 2,049
10년 전 조회 1,627
10년 전 조회 1,448
10년 전 조회 1,411