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

· 10년 전 · 1286

<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,467
10년 전 조회 1,367
10년 전 조회 1,487
10년 전 조회 1,703
10년 전 조회 1,569
10년 전 조회 1,515
10년 전 조회 1,463
10년 전 조회 1,492
10년 전 조회 1,478
10년 전 조회 1,430
10년 전 조회 1,892
10년 전 조회 1,414
10년 전 조회 1,392
10년 전 조회 1,641
10년 전 조회 1,427
10년 전 조회 1,459
10년 전 조회 1,312
10년 전 조회 1,578
10년 전 조회 1,384
10년 전 조회 1,300
10년 전 조회 1,410
10년 전 조회 2,056
10년 전 조회 1,406
10년 전 조회 1,386
10년 전 조회 1,444
10년 전 조회 1,514
10년 전 조회 1,986
10년 전 조회 1,574
10년 전 조회 1,426
10년 전 조회 1,324
10년 전 조회 1,351
10년 전 조회 1,462
10년 전 조회 1,396
10년 전 조회 1,458
10년 전 조회 1,351
10년 전 조회 1,521
10년 전 조회 1,375
10년 전 조회 1,353
10년 전 조회 1,301
10년 전 조회 1,973
10년 전 조회 1,463
10년 전 조회 1,367
10년 전 조회 1,386
10년 전 조회 1,377
10년 전 조회 1,397
10년 전 조회 1,373
10년 전 조회 1,879
10년 전 조회 1,348
10년 전 조회 1,403
10년 전 조회 1,287
10년 전 조회 1,876
10년 전 조회 1,462
10년 전 조회 1,454
10년 전 조회 1,493
10년 전 조회 1,436
10년 전 조회 1,446
10년 전 조회 1,374
10년 전 조회 1,268
10년 전 조회 1,405
10년 전 조회 1,260
10년 전 조회 1,642
10년 전 조회 1,336
10년 전 조회 1,332
10년 전 조회 1,327
10년 전 조회 1,350
10년 전 조회 1,412
10년 전 조회 1,317
10년 전 조회 1,351
10년 전 조회 1,541
10년 전 조회 1,331
10년 전 조회 1,438
10년 전 조회 1,414
10년 전 조회 1,434
10년 전 조회 1,583
10년 전 조회 1,416
10년 전 조회 1,419
10년 전 조회 1,403
10년 전 조회 1,512
10년 전 조회 1,412
10년 전 조회 1,369
10년 전 조회 1,383
10년 전 조회 1,402
10년 전 조회 1,449
10년 전 조회 1,378
10년 전 조회 1,595
10년 전 조회 1,746
10년 전 조회 1,656
10년 전 조회 1,423
10년 전 조회 1,418
10년 전 조회 1,372
10년 전 조회 1,365
10년 전 조회 1,472
10년 전 조회 1,385
10년 전 조회 1,338
10년 전 조회 1,403
10년 전 조회 1,746
10년 전 조회 2,219
10년 전 조회 1,780
10년 전 조회 1,578
10년 전 조회 1,455