Skip to content

Add buttons to web part pages

April 12, 2014

.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';

Advertisement

From → Web Development

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: