Skip to content

Instantly share code, notes, and snippets.

@mdinstuhl
Created September 29, 2013 21:24
Show Gist options
  • Save mdinstuhl/6756674 to your computer and use it in GitHub Desktop.
Save mdinstuhl/6756674 to your computer and use it in GitHub Desktop.
When I was your age we didn't HAVE no fancy prototypes or jquerys!
function mnuRollover(mnuName){
mnuName.style.color = 'red';
mnuName.style.cursor = 'hand';
}
function mnuRollout(mnuName){
mnuName.style.color = 'darkred';
mnuName.style.cursor = 'default';
}
function mnuOnClick(pageName){
var sPageName;
sPageName = pageName;
window.location = sPageName;
}
function switchPic(picName){
var sPicName;
sPicName = "/images/" + picName + ".jpg";
imgProfile.src = sPicName;
}
function noPic(){
imgProfile.src = "/images/nopic.jpg";
}
function mnuS_Rollover(mnuName){
mnuName.style.fontWeight = 600;
mnuName.style.cursor = 'hand';
}
function mnuS_Rollout(mnuName){
mnuName.style.fontWeight = 400;
mnuName.style.cursor = 'default';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment