JS 홈 페이지 보안 팔레트 DW 스타일

DW 팔레트var ColorHex=new Array('00','33','66','99','CC','FF')var SpColorHex=new Array('FF 0000','00FF 00','0000FF','FFFF 00','00FFFF','FF00FF')var current=null function intocolor(){var colorTable='for(i=0;i<2;i++) { for (j=0;j<6;j++) { colorTable=colorTable+'' colorTable=colorTable+'' if (i==0){ colorTable=colorTable+''} else{ colorTable=colorTable+''} colorTable=colorTable+'' for (k=0;k<3;k++) { for (l=0;l<6;l++) { colorTable=colorTable+'' } } } } colorTable='' +'
' +'' +'' +'
' +'' +colorTable+'
'; colorpanel.innerHTML=colorTable } function doOver() { if ((event.srcElement.tagName=="TD") && (current!=event.srcElement)) { if (current!=null){current.style.backgroundColor = current._background} event.srcElement._background = event.srcElement.style.backgroundColor DisColor.style.backgroundColor = event.srcElement.style.backgroundColor HexColor.value = event.srcElement.style.backgroundColor event.srcElement.style.backgroundColor = "white" current = event.srcElement } } function doOut() { if (current!=null) current.style.backgroundColor = current._background}function doclick(){if(event.srcElement.tagName=="TD"){alert("색상 선택:"+event.srcElement.background) return event.srcElement._background } }
[Ctrl+A 선택:외부 Js 를 도입 하려 면 페이지 를 새로 고침 해 야 실행 할 수 있 습 니 다.]

좋은 웹페이지 즐겨찾기