网页经典代码(三)

**
** 13.内框架

 1<iframe>使用   
 2  
 3Iframe标记的使用格式是:   
 4  
 5<iframe frameborder="x" height="x" name="main" scrolling="[OPTION]" src="URL" width="x"></iframe>   
 6src:文件的路径,既可是HTML文件,也可以是文本、ASP等;   
 7width、height:"内部框架"区域的宽与高;   
 8scrolling:当SRC的指定的HTML文件在指定的区域不显不完时,   
 9滚动选项,如果设置为NO,则不出现滚动条;如为Auto:则自动出现滚动条;   
10如为Yes,则显示; FrameBorder:区域边框的宽度,为了让"内部框架"与邻近的内容相融合,常设置为0。   
11name:框架的名字,用来进行识别。   
12比如: 当你想用父框架控制内部框架时,可以使用: target="框架的名字"来控制。   
13  
14例子:<iframe ;;;="" frameborder="0" height="100%" hspace="0" marginheight="0" marginwidth="0" name="mm" scrolling="no" src="  http://www.e3i5.com" vspace="0" width="100%"></iframe>   
15  
1614.自动跳转   
17  
18在源代码中的<head>…</head>加入如下代码:   
19<meta content="3;URL=http://www.e3i5.com; charset=gb2312" http-equiv="refresh"/>   
20  
21说明:content="3 表示3秒刷新到URL   
22  
23  
2415.如何改变链接的鼠标形状   
25  
26只需在链接上加上这一代码就行的了   
27或者跟上面的用CSS写也行   
28  
29  
30style="cursor:hand" style="cursor:crosshair"   
31style="cursor:text" style="cursor:wait"   
32style="cursor:move" style="cursor:help"   
33style="cursor:e-resize" style="cursor:n-resize"   
34style="cursor:nw-resize" style="cursor:w-resize"   
35style="cursor:s-resize" style="cursor:se-resize"   
36style="cursor:sw-resize"   
37  
38  
39以上代码你只需要加到连接或是页面的STYLE区里就可以实现鼠标多样化。   
40  
41  
4216.全屏显示   
43  
44<form>
45<div align="center">
46<input name="FullScreen" onclick="window.open(document.location, 'big', 'fullscreen=yes')" type="BUTTON" value="全屏显示"/>
47</div>
48</form>   
49  
50把它放到<body>区中。</body></iframe>
Published At
Categories with 网页设计
comments powered by Disqus