Add buttons to web part pages
.BOSSReports {
BACKGROUND-COLOR: blue; FONT-WEIGHT: normal
}
#DailyReports {
BACKGROUND-COLOR: yellow
}
#RangeReports {
BACKGROUND-COLOR: yellow
}
#AdminScreen {
BACKGROUND-COLOR: yellow
}
var buttontarget=””
function change(e, color){
var el=window.event? event.srcElement: e.target
if (el.tagName==”INPUT”&&el.type==”button”)
el.style.backgroundColor=color
}
function jumpto2(url){
if (buttontarget==””)
window.location=url
else if (buttontarget==”_new”)
window.open(url)
else
parent[buttontarget].location=url
}
function selectBtn(IDS) {
var sel = document.getElementById(‘BOSS’).getElementsByTagName(‘input’);
for (var i=0; i<sel.length; i++) {
sel[i].style.backgroundColor = "yellow";
}
document.getElementById(IDS).style.backgroundColor = 'da2128';
}