js网页特效代码大全(js网页特效代码大全)
急求js特效,求高手解答!
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
""
head
meta http-equiv="Content-Type" content="text/html; charset=gbk"
titletest/title
/head
body onload="init();"
table width="100%" border="0" cellpadding="0" cellspacing="0"
trtdtest page/td/tr
/table
div id="divContent" style="position: absolute; top: 200px; filter: alpha(opacity=70); background-Color:green;display:none;" !-- opacity=70调整透明度,数值自定义 --
table width="200" height="100"
tr
tdusername/td
tdinput type="text"/td
/tr
tr
tdpassword/td
tdinput type="password"/td
/tr
tr
tdinput type="button" onclick="closeWin();" value="ok"/td
tdinput type="button" onclick="closeWin();" value="cancle"/td
/tr
/table
/div
/body
script language="javascript"
function init()
{
setTimeout("showWin()", 1000); //1000表示1秒钟
}
function showWin()
{
var div = document.getElementById("divContent");
div.style.display = "block";
}
function closeWin()
{
var div = document.getElementById("divContent");
div.style.display = "none";
}
/script
/html
先试试吧,只是一个简单的特效,要移动这个对话框的话可以自己查找,baidu上很多
帮忙注释一下jquery实现网页特效的代码,谢谢
$.fn.shuffle 是创建一个prototype
$.shuffle 是定义一个函数
this.each() 是遍历this的每一项
表达式?结果1:结果2 这个结构是 表达式如果为真 返回结果1 否则 返回结果2
谁能告诉我一些有用的网页特效代码啊?
!--STATUS OK--
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
html
head
meta http-equiv="Content-Type" content="text/html; charset=gb2312"
link rel="alternate" type="application/rss+xml" title="“谁能告诉我一些有用的网页特效代码啊?”的最新回答(RSS 2.0)" href=";qid=2601349pn=65535rn=25tn=rssqb"
title谁能告诉我一些有用的网页特效代码啊?_百度知道 /title
style type="text/css"
!--
a.f12og:link{color:#ff6600}
a.f12og:visited{color:#ff6600}
--
/style
link href="/iknow.css" rel="stylesheet" type="text/css"
script language="JavaScript" type="text/JavaScript"
function ask(fn)
{document.fask.word.value=fn.word.value;
fask.submit();
}
/script
/head
body class="bgbdy" topmargin="0"
center
table width="770" border=0 align="center"
tbody
tr
td width="150" valign=topa href="/"img src="" border="0"/a/td
td height="55" style="table-layout: fixed; word-break: break-all"table cellspacing=0 cellpadding=0 border=0
tr
td nowrap class="tab"a href="" class="headTit"新闻/a???a href="" class="headTit"网页/a???a class="headTit" href=""贴吧/a???font class="headTitB"知道/font???a class="headTit" href=""MP3/a???a class="headTit" href=""图片/a/td
/tr
/table
table border="0" cellspacing="0" cellpadding="0"
tr
form action="/q" name="ftop" method="get"
td nowrap
input class=formfont maxlength=256 tabindex=1 size=42 name=word
/td
td width="30" valign="bottom" nowrapdiv align="right"span style="padding-bottom:15px; "a href=""帮助/a/span/div/td
/tr
/table
table cellspacing=0 cellpadding=0 border=0
tr valign="bottom"
td height="28" nowrap input type="submit" tabindex=2 value="搜索答案" class="bnsrh"
/td
td width="86" nowrap div align="right"
input type="hidden" name="ct" value="17"
input type="hidden" name="pn" value="0"
input type="hidden" name="tn" value="ikaslist"
input type="hidden" name="rn" value="10"
input type="button" onclick="ask(ftop);" tabindex=3 value="我要提问" class="bnsrh"
/div/td /form
/tr
/table
form name="fask" action="/q" method="get" input type="hidden" name="ct" value="17"input type="hidden" name="pn" value="0"input type="hidden" name="tn" value="ikask"input type="hidden" name="rn" value="10"input type="hidden" name="word" value="" input type="hidden" name="cm" value="1"input type="hidden" name="lm" value="394496"/form
/td/tr
/table
script
var url = escape(location.href);
function ctlSubmit(event) {
if (event.ctrlKey event.keyCode == 13) { fdf.submit() }
}
function checkco(f,des)
{ if(f.co.value=="") {alert("请输入您的"+des); return false;}}
function limitpl(f,des)
{ if(f.co.value=="") {alert("请输入您的"+des); return false;} return limitChars(f.co,des,200);}
function checkcoAndsn(f,des)
{ if(f.co.value=="") {alert("请输入您的"+des); return false;} return limitChars(f.sn,"参考资料",60);
求js特效,网页特效,能判定分辨率的代码
script?src="jquery.js"/script
script
$(".quanping").width($(window).width());
$(".quanping").height($(window).height());
/script
div?class="quanping"?style="?border:1px?solid?red;?overflow:hidden;"
/div
全屏的那个就是