原创 js引用順序

當出現以下錯誤:"……is not defined”、"Uncaught TypeError: Cannot set property 'innerHTML' of null”、"document.getElementById("Cloc

原创 根據網頁的HTML內容提取網頁的Encoding

using System; using System.Net; using System.Text; using System.Text.RegularExpressions; class Program { // 獲取網頁的HTML

原创 獲取ip並判斷省市

ip查詢 //處理sina省市         public string GetNetwork2()         {             string url = "http://counter.sina.com.c

原创 js邏輯運算符和數據類型

!!xxx 是爲了判斷是否存在xxx,若不爲 0 null undefined的話 返回true。||的執行方式是,如果前面爲false則繼續判斷後面的,如果前面爲true停止執行。比如var ss = undefined||465464

原创 flash的各種兼容

ie:<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwav

原创 (轉)C#後臺調用前臺javascript的五種方法

於項目需要,用到其他項目組用VC開發的組件,在web後臺代碼無法訪問這個組件,所以只好通過後臺調用前臺的javascript,從而操作這個組件。在網上找了找,發現有三種方法可以訪問到前臺代碼: 第一種,OnClientClick    (

原创 寫js遇到的一些問題

1、getElementsByName返回數組,getElementById返回的是一個元素。所以當用getElementsByName取值時要用getElementsByName[0]。   2、javascript區分大小寫!!!一定

原创 chrome去除文本框的橘色外框

outline:none;

原创 chrome

//@ sourceURL=hello.js

原创 SQL重複記錄查詢(轉載)

SQL重複記錄查詢(轉載)  1、查找表中多餘的重複記錄,重複記錄是根據單個字段(peopleId)來判斷 select * from people where peopleId in (select  peopleId  f

原创 如何解決孤立用戶問題

如何解決孤立用戶問題     此問題出現在數據庫的移值上。移值後,數據庫的登陸名和數據庫用戶名孤立,原數據中,用建立的用戶名密碼登陸可以訪問數據庫,但是移值後就不能訪問了。而且如果您嘗試向該登錄帳戶授予數據庫訪問權限,則會因該用戶已經

原创 sql id循環設置字段值

declare @a int set @a=1 while @a<=300 begin if @a in (select id from archive_z)  update archive_z set records =(select

原创 文本框焦點樣式

input:focus { background: #ff0; } input { _onfocus: expression(onfocus=function (){this.style.backgrou

原创 破解網頁複製屏蔽

javascript:void(document.onselectstart = document.oncontextmenu = document.onmousedown = document.onkeydown = null); ja