Which of the following changes will make this code function correctly?

Consider the following VBScript code:
<P><FONT COLOR=”crimson” FACE=”Arial” SIZE=”4″ >Hi </FONT></P>
<SCRIPT>

<!–coloredfont.style.color = “ourcolor”
–>
</SCRIPT>
<SCRIPT>
Sub coloredfont_onmouseover ()
coloredfont.style.color =”Green”
End Sub
Sub coloredfont_onmouseout ()
coloredfont.style.color =”crimson”
End Sub
</SCRIPT>
Which of the following changes will make this code function correctly?

Consider the following VBScript code:
<P><FONT COLOR=”crimson” FACE=”Arial” SIZE=”4″ >Hi </FONT></P>
<SCRIPT>

<!–coloredfont.style.color = “ourcolor”
–>
</SCRIPT>
<SCRIPT>
Sub coloredfont_onmouseover ()
coloredfont.style.color =”Green”
End Sub
Sub coloredfont_onmouseout ()
coloredfont.style.color =”crimson”
End Sub
</SCRIPT>
Which of the following changes will make this code function correctly?

A.
End each line of code with a semicolon.

B.
Combine the two scripts into one script.

C.
Run the scripts on a server, not a client.

D.
Specify the script language.



Leave a Reply 0

Your email address will not be published. Required fields are marked *