Code :
Copy code The Code is as follows: <HTML>
<Head>
<SCRIPT type = "text/JavaScript"> <! --
Function setmode (newmode)
{
VaR text1 = Document. getelementbyid ("text1 ");
VaR cont;
Btextmode = newmode;
If (btextmode ){
Cont = text1.innerhtml;
Text1.innertext = cont;
}
Else {
Cont = text1.innertext;
Text1.innerhtml = cont;
}
}
// --> </SCRIPT>
</Head>
<Body>
<Div>
<Input id = "editmode" onclick = "setmode (this. Checked)" type = "checkbox">
View HTML Source code </Div>
<Div id = text1 name = text1>
<Object width = 500 Height = 300 classid = CLSID: 22d6f312-b0f6-11d0-94ab-0080c74c7e95>
<Param name = filename value?text=>
</Object>
</Div>
</Html>
Browse in IE6:
In IE7:
IE7 deletes all the param labels in the object, which makes us puzzled. When using innerhtml to obtain the object and the HTML code, it does not simply extract the original code, but is "modified. In IE6, The Modification result is that it gives us a fairly complete Param code, and IE7 deletes the param code. This difference brings a lot of trouble to compile code on our webpage. The solution is still being conceived. I hope you will discuss the problem together.