rem: (function(id){ Ext.get(id).on("mouseover",function(){ if($(id).style.backgroundImage.indexOf("selectedMask") == -1){ $(id).style.backgroundImage = "url("+imgURL+"/buttonMask.png)" } 
add: ajaxanimator.onReady(function(){  $("fillcolor").style.backgroundImage = "url('"+imgURL+"/bucket.png')" $("linecolor").style.backgroundImage = "url('"+imgURL+"/pencil.png')"  $("fillcolor").style.backgroundColor =  "#ff0000" $("linecolor").style.backgroundColor = " #000000"  var genDB = [ "select|select.gif", "rect|rectangle.gif", "roundrect|roundrect.gif", "ellipse|circle.gif", "line|line.gif", "delete|delete.gif" ] var tbdiv = document.getElementById("tbIcon") var toolTable = document.createElement("table") var toolTBody = document.createElement("tbody") var tObjCnt = 0; for(var tRowN = 0; tRowN < 3; tRowN++){ var tRow = document.createElement("tr") for(var tColN = 0; tColN < 2; tColN++){ var tCol = document.createElement("td") var tsAD = genDB[tObjCnt].split("|") tObjCnt++; var tCDiv = document.createElement("div") tCDiv.id = tsAD[0] tCDiv.className = "toolbarItem" var tcvDiv = document.createElement("div") tcvDiv.className = "centerVertical" var tvImg = document.createElement("img") tvImg.src = imgURL+"/"+tsAD[1] tvImg.className = "toolbarItem"; tcvDiv.appendChild(tvImg) tCDiv.appendChild(tcvDiv) tCol.appendChild(tCDiv) tRow.appendChild(tCol) } toolTBody.appendChild(tRow) } toolTable.appendChild(toolTBody) tbdiv.appendChild(toolTable) 
context: (function(id){Ext.get(id).on("mouseover",function(){if($(id).style.backgroundImage.indexOf("selectedMask") == -1){$(id).style.backgroundImage = "url("+imgURL+"/buttonMask.png)"}})Ext.get(id).on("mouseout",function(){if($(id).style.backgroundImage.indexOf("buttonMask") != -1){$(id).style.backgroundImage = ""}})Ext.get(id).on("click",function(){if(id == "delete"){changeSelectedUI("delete")deleteShape()setTimeout("drawTools.select();",100);//some eyecandy}else{drawTools[id]()}})})(iconId[iid])
meta: 5269	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5269/af9f096c35280c572f3a344cbbc4dee702b4ef92/jsOut.js/clean/Animator/dev/tmp/jsOut.js