分类: Js预览模式: 普通 | 列表

多条件查询

sql="select * from user where"
if username<>"" then
sql=sql&" username like'%"&username&"%'"
flag=1
elseif tel<>"" and flag=1 then
sql=sql&" and tel like '%"&tel&"%'"
flag=1

查看更多...

分类:Js | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 414

表单验证制作方法!

  <form name="theform" action="aaa" method="POST" enctype=text/plain" onSubmit="return formCheck()">
    <script language="javascript">
    function formCheck() {      if ("" == document.theform.name.value) {
        alert("请输入你的姓名")
        document.theform.name.focus()
        return false
      }      if ("" == document.theform.address.value) {

查看更多...

分类:Js | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 449

表单验证类

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
<!--

查看更多...

分类:Js | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 519

年月日 表单

<td><select name=iyear><%
  dim bires,birse
  for i=1990 to year(now)
    birse=""
    if int(year(bires))=int(i) then
      birse=" selected"
    end if

查看更多...

分类:Js | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 481

网站首页向上滑动广告

<SCRIPT language=javascript>
<!--
var bwidth=800;
var bheight=400;
function go() {
 bwidth = bwidth - 10;
 bheight = bheight - 5;

查看更多...

分类:Js | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 613

全国哀悼日 建议站点换素装(附代码)

为方便站点哀悼,特提供素装代码,以表哀悼。以下为全站CSS代码。


html { filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); } 

查看更多...

分类:Js | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 547

[私密日志] 私密日志

该日志是私密日志,只有管理员或发布者可以查看!
分类:Js | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 606

像163网站顶部展出的大幅广告

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>像163网站顶部展出的大幅广告-wsoul.net</title>
   <script type="text/javascript" language="javascript">
    var time = 500;
    var h = 0;

查看更多...

分类:Js | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 547

网摘的插件 (通过js调用)

在浏览页模版的适当位置加入<SCRIPT language="javascript" src="/路径/readannals.js"></SCRIPT>

这个网摘调用包括了Google书签、Yahoo书签、新浪ViVi、搜狐网摘、365Key网摘、天极网摘、我摘、POCO网摘、博采网摘、YouNote网摘、和讯网摘、博拉网、亿友响享、I2Key网摘、百特门网摘、igooi网摘。

当然,您也可以通过修改readannals.js 来添加和删除网摘地址~~~


查看更多...

分类:Js | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 620

收藏本文

<!-- 添加网摘 -->
收藏本文:
<script language="JavaScript" src="http://www.dzlo.com/images/wangzhai/wangzhai.js"></script>
<a href="http://del.icio.us/post" onclick="window.open('http://del.icio.us/post?v=4&noui&jump=close&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title), 'delicious','toolbar=no,width=700,height=400 '); return false;"><img src="/images/delicious.gif" alt="Del.icio.us" title="添加到Delicious" border="0" /></a> <a href="javascript:location.href='http://www.google.com/bookmarks/mark?op=add&bkmk='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)"><img src="/images//google.png" alt="Google书签" title="添加到Google书签" border="0" /></a> 
<a href="javascript:u=location.href;t=document.title;c = %22%22 + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&iu=%22+encodeURIComponent(u)+%22&dc=%22+encodeURIComponent(c)+%22&fr=ien#nw=1%22;window.open(url,%22_blank%22,%22scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes%22); void 0"><img src="/images/baidu.gif"  alt="百度搜藏" title="添加到百度搜藏" border="0" /></a> <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();"><img src="/images/vivi.gif" alt="新浪ViVi" title="添加到新浪ViVi" border="0" /></a> <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();"><img src="/images/365key.gif"  alt="365Key网摘" title="添加到365网摘" border="0" /></a> <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(yesky=window.open('http://hot.yesky.com/dp.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t)+'&st=2','yesky','scrollbars=no,width=400,height=480,left=75,top=20,status=no,resizable=yes'));yesky.focus();"><img src="/images/yesky.gif" alt="天极网摘" title="添加到天极网摘" border="0"/></a> <a href="javascript:t=document.title;u=location.href;e=document.selection?(document.selection.type!='None'?document.selection.createRange().text:''):(document.getSelection?document.getSelection():'');void(open('http://bookmark.hexun.com/post.aspx?title='+escape(t)+'&url='+escape(u)+'&excerpt='+escape(e),'HexunBookmark','scrollbars=no,width=600,height=450,left=80,top=80,status=no,resizable=yes'));"><img src="/images/hexun.gif" alt="和讯网摘" title="添加到和讯网摘" border="0"/></a> <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(blog=window.open('http://www5.bolaa.com/CommendBlog/SmallLogin.aspx?title='+escape(d.title)+'&newspath='+escape(d.location.href)+'&subtitle='+escape(t),'bolaa','width=400px,height=400px'));blog.focus();"><img src="/images/bolaa.gif" alt="博拉网" title="添加到博拉网" border="0"/></a> <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://my.poco.cn/fav/storeIt.php?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t)+'&img=http://www.h-strong.com/blog/logo.gif','keyit','scrollbars=no,width=475,height=575,status=no,resizable=yes'));keyit.focus();"><img src="/images/poco.gif" alt="POCO网摘" title="添加到POCO网摘" border="0"/></a> <a href="javascript:var d=document,w=window,f='http://fanfou.com/share',l=d.location,e=encodeURIComponent,p='?u='+e(l.href)+'&t='+e(d.title)+'&d='+e(w.getSelection?w.getSelection().toString():d.getSelection?d.getSelection():d.selection.createRange().text)+'&s=bm';a=function(){if(!w.open(f+'r'+p,'sharer','toolbar=0,status=0,resizable=0,width=600,height=400'))l.href=f+'.new'+p};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else{a()}void(0)"><img src="/images/fanfou.gif" alt="添加到饭否"  title="添加到饭否" border="0"/></a> <a href="javascript:q=(document.location.href);void(open('http://www.digbuzz.com/submit.php?url='+escape(q),'','resizable,location,menubar,toolbar,scrollbars,status'));"><img src="/images/digbuzz.gif" border="0" alt="Digbuzz我挖网" title="添加到Digbuzz我挖网" /></a>
<a title="推荐到diglog" href="javascript://" onclick="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.diglog.com/submit.aspx?title='+escape(d.title)+'&url='+escape(d.location.href)+'&description='+escape(t),'keyit','resizable,location,menubar,toolbar,scrollbars,status'));keyit.focus();"><img src="http://img.diglog.com/images/tools-diglogit-4.gif" border="0"></a>
<a href="http://www.mister-wong.cn/add_url/" onClick="location.href="http://www.mister-wong.cn/index.php?action=addurl&bm_url="+encodeURIComponent(location.href)+"&bm_description="+encodeURIComponent(document.title)+"";return false" title="该页面添加到 Mister Wong" target="_top"><img src="http://www.mister-wong.cn/img/cn/buttons/wong18.gif" alt="该页面添加到 Mister Wong" border="0" /></a>

查看更多...

分类:Js | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 879