Sharing and innerHTML onMouseOver

In this paper, a simple example of the use of methods and properties innerHTML onMouseOver and to dynamically change the text on the page. So the simplest example of a change of the text when you hover the links on the appropriate link (and generally any other container):
 <Html>
 <Script type = "text / javascript">
 <! -
 function change_desc () {
 //desc.innerHTML="Pomenyali contents of the paragraph with id = 'desc' ";  not universal version
 . Document.getElementById ( "desc") innerHTML = "Changed the content of the paragraph with id = 'desc'";
 }
 ->
 </ Script>

 <P id = "desc"> Passage to change the text </ p>
 <a href="#" onMouseOver="change_desc()"> Change text </a>
 </ Html>

This example may be a little easier, for example, change the text in the paragraph on the different options and to return it to its original state after the retraction of a mouse pointer using predefined string constants:

 <Html>
 <Script type = "text / javascript">

 <! -
 default_text = "Standard text";
 text1 = "Accordingly text1";
 text2 = "Accordingly text2";
 function change_desc (v) {
 //desc.innerHTML="Pomenyali contents of the paragraph with id = 'desc' ";  not universal version
 . Document.getElementById ( "desc") innerHTML = v;
 }
 ->
 </ Script>
 <P id = "desc"> Passage to change the text </ p>
 <! - Launching our microfunction with parameters in the form of name of the constant with the text ->
 <a href="#" onMouseOver="change_desc(text1)" onMouseOut="change_desc(default_text)"> Change the text on the first </a>
 <a href="#" onMouseOver="change_desc(text2)" onMouseOut="change_desc(default_text)"> Change the text on the second </a>

 </ Html>

Note:
If the test works JavaScript FireBug displays "" the name of a variable, constant or function 'is not defined "is necessary to check the correctness of your code. For example, if the contents of the unscreened constant present quotation marks ( "), and before the announcement function may be missing a semicolon (;).