var currentNum=0; var tipStartHtml = "
Helpful Tip:
"; var tipEndHtml = "
" var tipsArr = new Array(); function writePianoTip1(){ tipsArr[0] = "Each piano tab line should specify the octave, eg:" + "
" + "Good example:
" + "3|--a--c---a--
2|--a---a---c-
" + "
Bad example:
|--a--c---a--
2--a---a---c-
"; tipsArr[1] = "Let the person you're arguing with know you mean business by interrupting them frequently." tipsArr[2] = "UPPERcase notes are sharps
(the black keys),
lowercase notes are naturals
(the white keys):" + "
" + "Uppercase:
"F" = "F#" = "F sharp"

Lowercase:
"f" = "f natural"
" tipsArr[3] = "Marry someone rich" tipsArr[4] = "Sharps can be flat
(or natural)!" + "
" + ""C#" = "Db"
"D#" = "Eb"
"E#" = "f natural"
"F#" = "Gb"
"G#" = "Ab"
"A#" = "Bb"
"B#" = "c natural"
" tipsArr[5] = "Never trust someone who says, "Trust me"" writeTip(-1); } function writeGtrTip1(){ tipsArr[0] = "Each guitar string needs to be specified, eg:" + "
Good
e|-----1--1------
b|------0---0---0
g|----2---2-2---2
d|---------------
a|-0---0----0---0
e|---------------
" + "
Bad
|-----1--1------
|------0---0---0
|----2---2-2---2
|---------------
|-0---0----0---0
|---------------
" tipsArr[1] = "If you can't say something nice, say something surrealistic." tipsArr[2] = "Avoid butt humping numbers:
" + "In this tab line: "-121--12-" Are you are supposed to play 1-2-1, or 12-1, or 1-21? " + "Keep at least one space between each separate note, you homo. " tipsArr[3] = "If you don't know, shut the hell up." tipsArr[4] = "See the guitar tab FAQ for more life changing tips!" writeTip(-1); } function writeTip(tipNum){ if(tipNum == -1){ currentNum = Math.round(Math.random() * (tipsArr.length-1)); } if(currentNum>tipsArr.length-1) currentNum=0; nextNum=currentNum+1; if(currentNum==tipsArr.length-1) nextNum=0; setMessage('msgDIV', tipStartHtml + tipsArr[currentNum] + "

Next Tip >>" + tipEndHtml); currentNum++; } function setMessage(objName, newText){ if(document.getElementById){ if((obj = document.getElementById(objName)) != null) with (obj) innerHTML = unescape(newText); } }