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

· 10년 전 · 1170

<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,325
10년 전 조회 1,236
10년 전 조회 1,357
10년 전 조회 1,565
10년 전 조회 1,435
10년 전 조회 1,391
10년 전 조회 1,334
10년 전 조회 1,368
10년 전 조회 1,347
10년 전 조회 1,292
10년 전 조회 1,768
10년 전 조회 1,281
10년 전 조회 1,277
10년 전 조회 1,495
10년 전 조회 1,298
10년 전 조회 1,339
10년 전 조회 1,174
10년 전 조회 1,437
10년 전 조회 1,260
10년 전 조회 1,182
10년 전 조회 1,250
10년 전 조회 1,910
10년 전 조회 1,269
10년 전 조회 1,269
10년 전 조회 1,280
10년 전 조회 1,385
10년 전 조회 1,862
10년 전 조회 1,448
10년 전 조회 1,283
10년 전 조회 1,204
10년 전 조회 1,239
10년 전 조회 1,339
10년 전 조회 1,249
10년 전 조회 1,323
10년 전 조회 1,230
10년 전 조회 1,415
10년 전 조회 1,257
10년 전 조회 1,224
10년 전 조회 1,173
10년 전 조회 1,828
10년 전 조회 1,322
10년 전 조회 1,241
10년 전 조회 1,270
10년 전 조회 1,260
10년 전 조회 1,286
10년 전 조회 1,246
10년 전 조회 1,766
10년 전 조회 1,213
10년 전 조회 1,285
10년 전 조회 1,171
10년 전 조회 1,753
10년 전 조회 1,334
10년 전 조회 1,347
10년 전 조회 1,391
10년 전 조회 1,328
10년 전 조회 1,342
10년 전 조회 1,263
10년 전 조회 1,167
10년 전 조회 1,296
10년 전 조회 1,162
10년 전 조회 1,503
10년 전 조회 1,222
10년 전 조회 1,235
10년 전 조회 1,215
10년 전 조회 1,242
10년 전 조회 1,300
10년 전 조회 1,206
10년 전 조회 1,222
10년 전 조회 1,421
10년 전 조회 1,227
10년 전 조회 1,334
10년 전 조회 1,299
10년 전 조회 1,313
10년 전 조회 1,434
10년 전 조회 1,300
10년 전 조회 1,256
10년 전 조회 1,274
10년 전 조회 1,394
10년 전 조회 1,271
10년 전 조회 1,229
10년 전 조회 1,258
10년 전 조회 1,269
10년 전 조회 1,325
10년 전 조회 1,252
10년 전 조회 1,471
10년 전 조회 1,619
10년 전 조회 1,516
10년 전 조회 1,283
10년 전 조회 1,275
10년 전 조회 1,242
10년 전 조회 1,233
10년 전 조회 1,353
10년 전 조회 1,279
10년 전 조회 1,225
10년 전 조회 1,277
10년 전 조회 1,629
10년 전 조회 2,089
10년 전 조회 1,664
10년 전 조회 1,496
10년 전 조회 1,466