摘要: /*****************************************根据表名、过程名、视图名查找对应的数据库**例:sp_find_databasename 'SP_BBSList_Select'******************************************/alter proc sp_find_databasename@findname nvarchar(200) = '' --表名、过程名、视图名asdeclare @database_name nvarchar(200)declare @table table(name 阅读全文
posted @ 2011-10-10 17:14 奇幻男孩 阅读(512) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript"> function showUserInfo(obj) { var authort; var point = absolutePoint(obj); var div = document.getElementById('divshow'); div.style.position = 'absolute'; div.style.left = point.x + 127 + "px"; di... 阅读全文
posted @ 2011-10-09 18:42 奇幻男孩 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 今天遇到这个问题,解决方法是ALTER DATABASE DB_name SET ARITHABORT ON//查询数据库is_ARITHABORT_on 标识SELECT is_ARITHABORT_on FROM sys.databases where database_id = 36 阅读全文
posted @ 2011-10-09 18:40 奇幻男孩 阅读(229) 评论(0) 推荐(0) 编辑
摘要: /*************************************访微博滚动代码(需要引用jquery) *2011-10-09************************************/$(function() { var scrtime; $("#div_babyhome").hover(function() { clearInterval(scrtime); }, function() { scrtime = setInterval(function() { var $ul = $("#div_... 阅读全文
posted @ 2011-10-09 18:35 奇幻男孩 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 今天遇到一个onload报错问题,原因是<body onload=""> 里面存在一个方法所以报错,以后最好将onload方法写在body里 ,而不要window.onload,ie6下可能不兼容 阅读全文
posted @ 2011-10-08 11:45 奇幻男孩 阅读(167) 评论(0) 推荐(0) 编辑
摘要: //过滤<pre > </pre> str = Regex.Replace(str, @"\<(pre)[^>]*>|<\/pre>", "", RegexOptions.IgnoreCase); //返回顶部var BROWSER = {};var USERAGENT = navigator.userAgent.toLowerCase();browserVersion({ 'ie': 'msie', 'firefox': '',  阅读全文
posted @ 2011-10-08 11:22 奇幻男孩 阅读(732) 评论(0) 推荐(0) 编辑
摘要: 编辑器加载中...<div id="div_babyhome" style="overflow: hidden; height: 253px; width: 100%;"> <div id="div_scorlltop1"> </div> </div> <div id="div_scorlltop2"> </div> <script type="text/javascript"> var speed = 30; 阅读全文
posted @ 2011-09-30 11:01 奇幻男孩 阅读(1703) 评论(0) 推荐(0) 编辑
摘要: function GetDateFormat(value) { var str = value.toString().replace(/-/g, "/"); //var times = Date.parse(str); var times = new Date(str); return times.getHours().toString() + ";" + times.getMinutes().toString(); } 阅读全文
posted @ 2011-09-30 09:42 奇幻男孩 阅读(4135) 评论(0) 推荐(1) 编辑
摘要: <%@ Control Language="C#" AutoEventWireup="true" CodeFile="Head_Index.ascx.cs" Inherits="Head_Index" %><%@ Register Src="TopBoards.ascx" TagName="TopBoards" TagPrefix="uc1" %> <!--#include file=" /Common/head/h 阅读全文
posted @ 2011-09-28 21:35 奇幻男孩 阅读(288) 评论(0) 推荐(0) 编辑
摘要: <asp:Repeater runat="server" ID="rptHotList"> <ItemTemplate> <li><a href="#" onclick="SetEncodeURL('<%# Eval("Value") %>')"> <%# Eval("Value") %></a></li> </ItemTemplate> </as 阅读全文
posted @ 2011-09-28 13:15 奇幻男孩 阅读(167) 评论(0) 推荐(0) 编辑