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

· 10년 전 · 1184

<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,334
10년 전 조회 1,250
10년 전 조회 1,366
10년 전 조회 1,574
10년 전 조회 1,445
10년 전 조회 1,403
10년 전 조회 1,343
10년 전 조회 1,383
10년 전 조회 1,358
10년 전 조회 1,302
10년 전 조회 1,774
10년 전 조회 1,290
10년 전 조회 1,286
10년 전 조회 1,505
10년 전 조회 1,307
10년 전 조회 1,352
10년 전 조회 1,184
10년 전 조회 1,455
10년 전 조회 1,271
10년 전 조회 1,194
10년 전 조회 1,264
10년 전 조회 1,921
10년 전 조회 1,287
10년 전 조회 1,281
10년 전 조회 1,297
10년 전 조회 1,400
10년 전 조회 1,870
10년 전 조회 1,462
10년 전 조회 1,292
10년 전 조회 1,212
10년 전 조회 1,248
10년 전 조회 1,356
10년 전 조회 1,264
10년 전 조회 1,333
10년 전 조회 1,234
10년 전 조회 1,424
10년 전 조회 1,269
10년 전 조회 1,238
10년 전 조회 1,179
10년 전 조회 1,839
10년 전 조회 1,333
10년 전 조회 1,253
10년 전 조회 1,278
10년 전 조회 1,273
10년 전 조회 1,295
10년 전 조회 1,262
10년 전 조회 1,773
10년 전 조회 1,233
10년 전 조회 1,300
10년 전 조회 1,185
10년 전 조회 1,767
10년 전 조회 1,350
10년 전 조회 1,362
10년 전 조회 1,400
10년 전 조회 1,339
10년 전 조회 1,357
10년 전 조회 1,275
10년 전 조회 1,174
10년 전 조회 1,306
10년 전 조회 1,170
10년 전 조회 1,512
10년 전 조회 1,230
10년 전 조회 1,245
10년 전 조회 1,225
10년 전 조회 1,251
10년 전 조회 1,314
10년 전 조회 1,217
10년 전 조회 1,242
10년 전 조회 1,432
10년 전 조회 1,239
10년 전 조회 1,347
10년 전 조회 1,305
10년 전 조회 1,325
10년 전 조회 1,451
10년 전 조회 1,317
10년 전 조회 1,278
10년 전 조회 1,289
10년 전 조회 1,409
10년 전 조회 1,286
10년 전 조회 1,244
10년 전 조회 1,273
10년 전 조회 1,284
10년 전 조회 1,334
10년 전 조회 1,262
10년 전 조회 1,491
10년 전 조회 1,627
10년 전 조회 1,532
10년 전 조회 1,299
10년 전 조회 1,291
10년 전 조회 1,257
10년 전 조회 1,248
10년 전 조회 1,374
10년 전 조회 1,289
10년 전 조회 1,240
10년 전 조회 1,290
10년 전 조회 1,638
10년 전 조회 2,110
10년 전 조회 1,679
10년 전 조회 1,506
10년 전 조회 1,473