Sampson-Li
Sampson.Li学习经验总结博客 学历代表过去,能力代表现在.学习力代表未来!
摘要: js实现div跟谁鼠标悬浮移动显示1<!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.0Transitional//EN">2<HTML>3<style>4#hint{5width:198px;6border:1pxsolid#000000;7background:#99ff33;8position:absolute;9z-index:9;10padding:6px;11line-height:17px;12text-align:left;13top:1520px;14}15</style>16< 阅读全文
posted @ 2011-11-07 16:56 Sampson 阅读(3593) 评论(0) 推荐(0) 编辑
摘要: 网站开发最让我们头疼的就是数据的架构.本地开发很轻松.程序只需要打包dll就可以了,但是数据库要架设到空间服务器上,就要转移.一不小心就会忘了一些存储过程,触发器,约束.这里为大家提供几个查用的检查.能够快速找出有哪些东西是忘记传了.很实用.有好的方法,请知道.该条语句查询返回所有的用户表select * from sysobjects where xtype='u' ---查询所有触发器select * from sysobjects where xtype='TR' ---查询所有触发器--读取库中的所有表名select name from sysobjec 阅读全文
posted @ 2011-11-07 15:09 Sampson 阅读(763) 评论(0) 推荐(0) 编辑
摘要: 基于网站seo,做了一采集百度和Google搜索关键字结果的采集.在这里与大家分享一下先看先效果图代码附加:View Code1privatevoidbaidu_Click(objectsender,EventArgse)2{3intnum=100;//搜索条数4stringurl="http://www.baidu.com/s?wd="+txtSearch.Text.Trim()+"&rn="+num+"";5stringhtml=search(url,"gb2312");6BaiduSearchbaid 阅读全文
posted @ 2011-11-07 13:44 Sampson 阅读(6604) 评论(88) 推荐(5) 编辑
摘要: //简单使用的水印类.public class WaterMark { private bool _textMark = false; private bool _imgMark = false; private string _text = ""; private string _imgPath = ""; private int _markX = 0; private int _markY = 0; private float _transparency = 1; private string _fontFamily = "宋体" 阅读全文
posted @ 2011-11-07 11:53 Sampson 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 最近老是遗忘很多sql函数.今天就花时间总结一下,也方便以后查找.也为各位同行们提供一个方便最常用的就是日期函数1 select getdate() as 'wawa_getdate' --当前时间2 select getutcdate() as 'wawa_getutcdate' --获取utc时间3 select day(getdate()) as 'wawa_day' --取出天4 select month(getdate()) as 'wawa_month' --取出月5 select year(getdate()) as 阅读全文
posted @ 2011-11-07 09:18 Sampson 阅读(441) 评论(0) 推荐(0) 编辑