'======================================
'This procedure is called when the
'user selects a language.
'
'It displays an appropriate select
'item based on their language choice.
'
'The method choices are each contained
'in a separate div.
'======================================
Dim vntCurrLang
vntCurrLang = document.all.langselect.value
Select Case vntCurrLang
Case "C"
document.all.cdiv.style.display = ""
Case "VB"
document.all.vbdiv.style.display = ""
Case "J"
document.all.javadiv.style.display = ""
End Select
End Sub
Jscript中多行注释以/*开始,以*/结束。比较大的,多语句的注释块的格式见下面的例子。
例子:
function showIt()
/*******************************************
** This is a large comment block.
**
** This procedure is called when the user
** selects a language.
**
** It displays an appropriate select item
** based on their language choice.
**
** The method choices are each contained
** in a separate div.
*******************************************/