Hi,
On page 7 of the JavaScript section is says that comments in javascript for single lines can be made by using: //
If though you wanted to comment out multiple lines below each other without wanting to type '//' after each line, all you need to do is:
Add /* at the start of the first line you want to comment out and */ at the final line you want to comment out.
Example:
Language: Javascript
/* function showMsg()
{
window.status = msg
msg = msg.substring(1,msg.length) + msg.substring(0,1)
scrollmsgID = setTimeout("showMsg()",150) // Inserted to have scrolling message stop when mouse pointer over rhino image.
}
*/
instead off:
Language: Javascript
// function showMsg()
// {
// window.status = msg
// msg = msg.substring(1,msg.length) + msg.substring(0,1)
// scrollmsgID = setTimeout("showMsg()",150) // Inserted to have scrolling message stop when mouse pointer over rhino image.
// }