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

· 10년 전 · 1290

<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,475
10년 전 조회 1,377
10년 전 조회 1,494
10년 전 조회 1,711
10년 전 조회 1,578
10년 전 조회 1,520
10년 전 조회 1,476
10년 전 조회 1,504
10년 전 조회 1,489
10년 전 조회 1,442
10년 전 조회 1,903
10년 전 조회 1,427
10년 전 조회 1,399
10년 전 조회 1,655
10년 전 조회 1,437
10년 전 조회 1,466
10년 전 조회 1,322
10년 전 조회 1,593
10년 전 조회 1,395
10년 전 조회 1,310
10년 전 조회 1,419
10년 전 조회 2,069
10년 전 조회 1,415
10년 전 조회 1,392
10년 전 조회 1,453
10년 전 조회 1,520
10년 전 조회 1,992
10년 전 조회 1,580
10년 전 조회 1,434
10년 전 조회 1,335
10년 전 조회 1,357
10년 전 조회 1,471
10년 전 조회 1,407
10년 전 조회 1,466
10년 전 조회 1,360
10년 전 조회 1,527
10년 전 조회 1,384
10년 전 조회 1,360
10년 전 조회 1,311
10년 전 조회 1,979
10년 전 조회 1,472
10년 전 조회 1,373
10년 전 조회 1,399
10년 전 조회 1,384
10년 전 조회 1,402
10년 전 조회 1,382
10년 전 조회 1,888
10년 전 조회 1,352
10년 전 조회 1,407
10년 전 조회 1,291
10년 전 조회 1,887
10년 전 조회 1,469
10년 전 조회 1,460
10년 전 조회 1,499
10년 전 조회 1,446
10년 전 조회 1,451
10년 전 조회 1,383
10년 전 조회 1,279
10년 전 조회 1,413
10년 전 조회 1,267
10년 전 조회 1,646
10년 전 조회 1,342
10년 전 조회 1,341
10년 전 조회 1,335
10년 전 조회 1,361
10년 전 조회 1,417
10년 전 조회 1,326
10년 전 조회 1,359
10년 전 조회 1,551
10년 전 조회 1,338
10년 전 조회 1,445
10년 전 조회 1,418
10년 전 조회 1,447
10년 전 조회 1,588
10년 전 조회 1,422
10년 전 조회 1,425
10년 전 조회 1,411
10년 전 조회 1,519
10년 전 조회 1,425
10년 전 조회 1,376
10년 전 조회 1,390
10년 전 조회 1,414
10년 전 조회 1,453
10년 전 조회 1,388
10년 전 조회 1,599
10년 전 조회 1,752
10년 전 조회 1,662
10년 전 조회 1,429
10년 전 조회 1,428
10년 전 조회 1,382
10년 전 조회 1,374
10년 전 조회 1,482
10년 전 조회 1,397
10년 전 조회 1,347
10년 전 조회 1,413
10년 전 조회 1,755
10년 전 조회 2,225
10년 전 조회 1,788
10년 전 조회 1,589
10년 전 조회 1,463