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

· 10년 전 · 1196

<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,351
10년 전 조회 1,260
10년 전 조회 1,374
10년 전 조회 1,584
10년 전 조회 1,464
10년 전 조회 1,411
10년 전 조회 1,358
10년 전 조회 1,393
10년 전 조회 1,371
10년 전 조회 1,316
10년 전 조회 1,786
10년 전 조회 1,303
10년 전 조회 1,299
10년 전 조회 1,520
10년 전 조회 1,318
10년 전 조회 1,365
10년 전 조회 1,191
10년 전 조회 1,466
10년 전 조회 1,285
10년 전 조회 1,211
10년 전 조회 1,280
10년 전 조회 1,930
10년 전 조회 1,299
10년 전 조회 1,293
10년 전 조회 1,315
10년 전 조회 1,412
10년 전 조회 1,879
10년 전 조회 1,472
10년 전 조회 1,308
10년 전 조회 1,222
10년 전 조회 1,259
10년 전 조회 1,364
10년 전 조회 1,278
10년 전 조회 1,346
10년 전 조회 1,254
10년 전 조회 1,432
10년 전 조회 1,278
10년 전 조회 1,257
10년 전 조회 1,190
10년 전 조회 1,861
10년 전 조회 1,350
10년 전 조회 1,263
10년 전 조회 1,287
10년 전 조회 1,281
10년 전 조회 1,307
10년 전 조회 1,273
10년 전 조회 1,784
10년 전 조회 1,246
10년 전 조회 1,310
10년 전 조회 1,197
10년 전 조회 1,773
10년 전 조회 1,362
10년 전 조회 1,369
10년 전 조회 1,412
10년 전 조회 1,346
10년 전 조회 1,366
10년 전 조회 1,285
10년 전 조회 1,182
10년 전 조회 1,316
10년 전 조회 1,177
10년 전 조회 1,529
10년 전 조회 1,242
10년 전 조회 1,255
10년 전 조회 1,240
10년 전 조회 1,259
10년 전 조회 1,332
10년 전 조회 1,230
10년 전 조회 1,249
10년 전 조회 1,446
10년 전 조회 1,249
10년 전 조회 1,359
10년 전 조회 1,322
10년 전 조회 1,339
10년 전 조회 1,470
10년 전 조회 1,325
10년 전 조회 1,293
10년 전 조회 1,301
10년 전 조회 1,423
10년 전 조회 1,296
10년 전 조회 1,258
10년 전 조회 1,289
10년 전 조회 1,303
10년 전 조회 1,349
10년 전 조회 1,275
10년 전 조회 1,504
10년 전 조회 1,640
10년 전 조회 1,554
10년 전 조회 1,311
10년 전 조회 1,303
10년 전 조회 1,268
10년 전 조회 1,261
10년 전 조회 1,383
10년 전 조회 1,301
10년 전 조회 1,257
10년 전 조회 1,306
10년 전 조회 1,649
10년 전 조회 2,128
10년 전 조회 1,693
10년 전 조회 1,486
10년 전 조회 1,344