有时候客户有不同的要求,就必须得用iframe
但是iframe的打开速度实在是那个慢啊,后来搜搜搜,终于发现终极之道-javascipt在body 的onload的时候指定frame的location,发现速度快的不是一般的多.
for example:
1
<!
DOCTYPE html PUBLIC
"
-//W3C//DTD XHTML 1.0 Transitional//EN
"
"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
"
>
2 < html xmlns = " http://www.w3.org/1999/xhtml " >
3 < head >
4 < script language = " javascript " type = " text/javascript " >
5 function bodyLoad()
6 {
7 mp3.location ="mp3.htm";
8 myblog.location ="Default.aspx";
9 }
10
11 </ script >
12
13 </ head >
14 < body onload = " bodyLoad(); " >
15 < iframe border = " 0 " name = " mp3 " scrolling = " no " marginwidth = " 0 " framespacing = " 0 " marginheight = " 0 "
16 frameborder = " 0 " noresize width = " 100% " height = " 77px " vspale = " 0 " allowtransparency >
17 </ iframe >
18 < iframe border = " 0 " name = " myblog " scrolling = " no " marginwidth = " 0 " framespacing = " 0 "
19 marginheight = " 0 " frameborder = " 0 " noresize width = " 100% " height = " 1200 " vspale = " 0 "
20 allowtransparency ></ iframe >
21 </ body >
22 </ html >
2 < html xmlns = " http://www.w3.org/1999/xhtml " >
3 < head >
4 < script language = " javascript " type = " text/javascript " >
5 function bodyLoad()
6 {
7 mp3.location ="mp3.htm";
8 myblog.location ="Default.aspx";
9 }
10
11 </ script >
12
13 </ head >
14 < body onload = " bodyLoad(); " >
15 < iframe border = " 0 " name = " mp3 " scrolling = " no " marginwidth = " 0 " framespacing = " 0 " marginheight = " 0 "
16 frameborder = " 0 " noresize width = " 100% " height = " 77px " vspale = " 0 " allowtransparency >
17 </ iframe >
18 < iframe border = " 0 " name = " myblog " scrolling = " no " marginwidth = " 0 " framespacing = " 0 "
19 marginheight = " 0 " frameborder = " 0 " noresize width = " 100% " height = " 1200 " vspale = " 0 "
20 allowtransparency ></ iframe >
21 </ body >
22 </ html >