打印本文 打印本文 关闭窗口 关闭窗口
网页经典代码
作者:武汉SEO闵涛  文章来源:敏韬网  点击数2907  更新时间:2007/10/28 12:53:30  文章录入:mintao  责任编辑:mintao
while (testV < 3) {
if (!pass1)
history.go(-1);
if (pass1 == "loveorange") {
alert('密码正确!');
break;
}
testV+=1;
var pass1 =
prompt('密码错误!请勿尝试点取消退出:');
}
if (pass1!="password" & testV ==3)
history.go(-1);
return " ";
}
document.write(password());
</SCRIPT>

发送表单至邮箱(为html格式不需要启动outlook)
<form action=http://gz.ce.net.cn/sendmail/sendmail.asp method=post
name=submitform>
<input name=sendemail type=hidden
value=sales@hotel-canton.net>
<input name=tHtml type=hidden>
后面加上放置表单的表格(里面可以添加多个表单元素)
发送按钮的代码必须为 <input id=button1 name=button1 onClick="submitform.tHtml.value=submitform.innerHTML; submitform.submit();" type=submit value=发送>将邮件地址改为需要即可

个性化鼠标指针
<A style="cursor: url('/imagesnew/software/030829/stopwtch.ani')" href="http://homepage.yesky.com/";>个性指针</a>

鼠标指向单元格变色
< td onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#FFcccc'"> </td>

在输入框中输入文字每按一个键背景就变色一次
<td><input onKeyUp="this.style.backgroundColor='#b4f3c7'" onKeyDown="this.style.backgroundColor='#cc3366'" type="text" name="textfield"></td>

表格阴影
新建一个滤镜css。然后将css里的相应位置替换成
filter:progid:DXImageTransform.Microsoft.Shadow
(Color=#333333,Direction=120,strength=5)">;
把这个css给表格使用。注意一定要给表格使用一种背景色

同一个页面内不同的文字有不同的链接色彩
新建css选择器 更改a:link 为 a.k1:link
a:visited 为 a.k1:visited
a:hover 为 a.k1:hover
而后将要链接的文字应用k1的css就可以了

屏蔽滚动条
<body scroll="no" style="overflow-y:hidden">

让浏览器窗口永远都不出现滚动条<body
style="overflow:hidden">

点击文字打开真正全屏幕窗口

在<head>与</head>之间插入以下代码
<SCRIPT language=JavaScript type=text/JavaScript>
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</SCRIPT>
在文字的链接框里输入
javascript :MM_openBrWindow('enterflash.htm','','toolbar=no,fullscreen=yes,location=no,status=no,menubar=no,scrollbars=no,resizable=no')
注: enterflash.htm为要打开的全屏幕窗口的网页文件地址
改 enterflash.htm文件里的<body>为<body style="overflow:hidden">
如果是设置成不需要点文字就可以的话就将启动全屏幕页面的<body>改为<body onload=MM_openBrWindow('enterflash.htm','','toolbar=no,fullscreen=yes,location=no,status=no,menubar=no,scrollbars=no,resizable=no')

上一页  [1] [2] 

打印本文 打印本文 关闭窗口 关闭窗口