var currentlyActiveInputRef = false; var currentlyActiveInputClassName = false; function highlightActiveInput() { if(currentlyActiveInputRef){ currentlyActiveInputRef.className = currentlyActiveInputClassName; } currentlyActiveInputClassName = this.className; this.className = 'inputHighlighted'; if( this.value == "[在此输入问题题目]" || this.value == "[段落小节标题]") this.value = ''; currentlyActiveInputRef = this; } function blurActiveInput() { this.className = currentlyActiveInputClassName; } function initInputHighlightScript() { var tags = ['INPUT','TEXTAREA']; for(tagCounter=0;tagCounter