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

· 10년 전 · 1090

<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,229
10년 전 조회 1,164
10년 전 조회 1,278
10년 전 조회 1,468
10년 전 조회 1,367
10년 전 조회 1,289
10년 전 조회 1,250
10년 전 조회 1,283
10년 전 조회 1,252
10년 전 조회 1,192
10년 전 조회 1,671
10년 전 조회 1,164
10년 전 조회 1,179
10년 전 조회 1,400
10년 전 조회 1,206
10년 전 조회 1,236
10년 전 조회 1,078
10년 전 조회 1,338
10년 전 조회 1,170
10년 전 조회 1,095
10년 전 조회 1,135
10년 전 조회 1,832
10년 전 조회 1,166
10년 전 조회 1,176
10년 전 조회 1,169
10년 전 조회 1,287
10년 전 조회 1,777
10년 전 조회 1,367
10년 전 조회 1,177
10년 전 조회 1,116
10년 전 조회 1,159
10년 전 조회 1,253
10년 전 조회 1,161
10년 전 조회 1,233
10년 전 조회 1,157
10년 전 조회 1,320
10년 전 조회 1,174
10년 전 조회 1,148
10년 전 조회 1,085
10년 전 조회 1,735
10년 전 조회 1,232
10년 전 조회 1,170
10년 전 조회 1,194
10년 전 조회 1,187
10년 전 조회 1,208
10년 전 조회 1,186
10년 전 조회 1,689
10년 전 조회 1,135
10년 전 조회 1,214
10년 전 조회 1,091
10년 전 조회 1,670
10년 전 조회 1,265
10년 전 조회 1,255
10년 전 조회 1,300
10년 전 조회 1,240
10년 전 조회 1,250
10년 전 조회 1,185
10년 전 조회 1,076
10년 전 조회 1,215
10년 전 조회 1,080
10년 전 조회 1,397
10년 전 조회 1,144
10년 전 조회 1,150
10년 전 조회 1,139
10년 전 조회 1,166
10년 전 조회 1,210
10년 전 조회 1,129
10년 전 조회 1,155
10년 전 조회 1,341
10년 전 조회 1,146
10년 전 조회 1,259
10년 전 조회 1,202
10년 전 조회 1,244
10년 전 조회 1,349
10년 전 조회 1,206
10년 전 조회 1,181
10년 전 조회 1,194
10년 전 조회 1,291
10년 전 조회 1,188
10년 전 조회 1,145
10년 전 조회 1,173
10년 전 조회 1,178
10년 전 조회 1,230
10년 전 조회 1,157
10년 전 조회 1,370
10년 전 조회 1,536
10년 전 조회 1,426
10년 전 조회 1,196
10년 전 조회 1,189
10년 전 조회 1,148
10년 전 조회 1,160
10년 전 조회 1,269
10년 전 조회 1,198
10년 전 조회 1,131
10년 전 조회 1,193
10년 전 조회 1,543
10년 전 조회 1,995
10년 전 조회 1,579
10년 전 조회 1,395
10년 전 조회 1,363