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

· 10년 전 · 1166

<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,324
10년 전 조회 1,231
10년 전 조회 1,353
10년 전 조회 1,563
10년 전 조회 1,434
10년 전 조회 1,387
10년 전 조회 1,331
10년 전 조회 1,363
10년 전 조회 1,342
10년 전 조회 1,290
10년 전 조회 1,764
10년 전 조회 1,277
10년 전 조회 1,274
10년 전 조회 1,491
10년 전 조회 1,292
10년 전 조회 1,331
10년 전 조회 1,169
10년 전 조회 1,431
10년 전 조회 1,257
10년 전 조회 1,181
10년 전 조회 1,246
10년 전 조회 1,907
10년 전 조회 1,263
10년 전 조회 1,263
10년 전 조회 1,277
10년 전 조회 1,379
10년 전 조회 1,859
10년 전 조회 1,447
10년 전 조회 1,276
10년 전 조회 1,203
10년 전 조회 1,236
10년 전 조회 1,338
10년 전 조회 1,245
10년 전 조회 1,319
10년 전 조회 1,224
10년 전 조회 1,410
10년 전 조회 1,254
10년 전 조회 1,222
10년 전 조회 1,168
10년 전 조회 1,826
10년 전 조회 1,319
10년 전 조회 1,237
10년 전 조회 1,266
10년 전 조회 1,256
10년 전 조회 1,282
10년 전 조회 1,245
10년 전 조회 1,762
10년 전 조회 1,207
10년 전 조회 1,282
10년 전 조회 1,167
10년 전 조회 1,750
10년 전 조회 1,330
10년 전 조회 1,342
10년 전 조회 1,386
10년 전 조회 1,325
10년 전 조회 1,340
10년 전 조회 1,261
10년 전 조회 1,165
10년 전 조회 1,293
10년 전 조회 1,159
10년 전 조회 1,500
10년 전 조회 1,214
10년 전 조회 1,230
10년 전 조회 1,213
10년 전 조회 1,235
10년 전 조회 1,295
10년 전 조회 1,204
10년 전 조회 1,219
10년 전 조회 1,417
10년 전 조회 1,220
10년 전 조회 1,328
10년 전 조회 1,295
10년 전 조회 1,311
10년 전 조회 1,426
10년 전 조회 1,296
10년 전 조회 1,253
10년 전 조회 1,272
10년 전 조회 1,386
10년 전 조회 1,268
10년 전 조회 1,224
10년 전 조회 1,249
10년 전 조회 1,262
10년 전 조회 1,323
10년 전 조회 1,245
10년 전 조회 1,464
10년 전 조회 1,618
10년 전 조회 1,510
10년 전 조회 1,276
10년 전 조회 1,270
10년 전 조회 1,234
10년 전 조회 1,226
10년 전 조회 1,351
10년 전 조회 1,278
10년 전 조회 1,222
10년 전 조회 1,273
10년 전 조회 1,623
10년 전 조회 2,082
10년 전 조회 1,660
10년 전 조회 1,490
10년 전 조회 1,460