Use JS to do a web-to-color palette

xiaoxiao2021-03-06  82

' IF (i == 0) {colorTable = colorTable ''} else {colorTable = ColorTable '' for (k = 0; k <3; k ) {for (l = 0; l <6; l ) {colorTable = ColorTable ''}}}} colorTable = '

' '
' ' ' < Td width = "3">
' '

Style = "cursor: hand;"> colorTable ''; colorPanel.innerhtml = colorTable} Function doover () {ix ((at.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.Background.style.BackgroundColor = "White" current = event.srcelement}}

Function doout () {

IF (current! = null) current.style.backgroundcolor = current._background}

Function doClick () {if (event.srcelement.tagname == "td") {alert ("Select Color:" Event.Srcelement._Background) Return Event.Srcelement._background}}

转载请注明原文地址:https://www.9cbs.com/read-107434.html

New Post(0)
CopyRight © 2020 All Rights Reserved
Processed: 0.065, SQL: 9