Saturday, July 2, 2016

atnbgcreatereadout

function atnbgcreatereadout(location,styles,id,initval) {

var readout = createreadout()
idreadout(button);stylereadout(button);initializereadout(button)

function createreadout(location) {
var readout = document.createElement("div")
document.getElementById(location).appendChild(readout)
return readout}

function idreadout(readout,id) {
var at = document.createAttribute("id")
readout.setAttributeNode(at)
at.value = id}

function stylereadout(readout,styles) {
var at = document.createAttribute("style")
readout.setAttributeNode(at)
at.value = styles}

function innitializereadout(readout,initval) {
var n = document.createTextNode(initval)
readout.appendChild(n)}

}