html 一些基本方法
1. 超链接的图片去掉边框的方法:
在 语句里加上 border=0
如:<img border=0
src="sadf.jpg">
2.鼠标放上去图片变色的方法:
用到了标签的事件功能,调用方法是 function="this.src='asdf.jpg'"
如:<img border=0 src="a.jpg" onmousemove="this.src='a_on.jpg'"
onmouseout="this.src='a.jpg'"
/>
相关文档:
<html>
<frameset rows="50%,50%">
<frame src="/example/html/frame_a.html">
<frameset cols="25%,75%">
<frame src="/example/html/frame_b.html">
<frame src="/example/html/frame_c.html">
</frameset>
</frameset>
</html> ......
将彻底屏蔽鼠标右键
<body oncontextmenu="window.event.returnValue=false">
IE地址栏前换成自己的图标
<link rel="Shortcut Icon" href="favicon.ico">
状态栏动态显示现在时间
<script>
function see()
{
window.setTimeout("see()",1000);
& ......
用apache 2的mod_ext_filter给html文件加广告。
想在静态页面上自动加个广告条,而不必手动修改每个静态页面。
按照这个需求在google上找了一段时候,不得要领。
后来想起来tomcat里有filter的概念的。
就到apache的文档里找。
瞎猫碰到了这个死耗子。
http://httpd.apache.org/docs/2.0/mod/mod_ext_filter.html
由 ......
Html文件的基本框架如下:
<html>
<head>
<title></title>
&nbs ......