There is a way to change the connected iframe to include files, and then remember to change the file name to shtml, or asp. Code is as follows:
Copy codeThe Code is as follows:
<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<Html xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312"/>
<Title> untitled document </title>
<Meta http-equiv = "refresh" content = "3; URL = #"/>
</Head>
<Script type = "text/javascript">
Function change (){
Var a = document. getElementById ("iframea ");
Var B = document. getElementById ("iframeb ");
A. setAttribute ("src", "http://www.163.com ");
B. setAttribute ("src", "http://www.sina.com ");
}
</Script>
<Body>
<! -- # Include file = "z.html" -->
<Iframe id = "iframea" src = "http://www.baidu.com/" width = "450" height = "300"> </iframe>
<Iframe id = "iframeb" src = "http://www.g.cn/" width = "450" height = "300"> </iframe>
</Body>
</Html>
Included file code:
<A href = "#" onclick = "change ()"> click the content link to update two iframe files. </a> <br/>