Time of Update: 2018-12-04
用戶端/************************************var xmlhttp function re_msgs(){ var rvalue; rvalue = document.all.re_value.value var dom = new ActiveXObject("msxml2.DOMDocument"); // 發送的xml檔案 dom.async = false; dom.resolveExternals = false; //
Time of Update: 2018-12-04
Bitmap bitmap=new Bitmap(this.pictureBox2.Width,this.pictureBox2.Height,System.Drawing.Imaging.PixelFormat.Format24bppRgb);//根據位元影像擷取畫布Graphics
Time of Update: 2018-12-04
BBS裡UBB的全碼 <%function out(str)out=Server.HTMLEncode(str)out=replace(out,vbcrlf,"<br>")out=ubbcode(out,"/[img/](.*?)/[//img/]","<img src=""$1"" border=""0"">")out=ubbcode(out,"/[img align=left/](.*?)/[//img/]","<img src=""$1"" align=
Time of Update: 2018-12-04
<script Language="JavaScript1.2">//coded by windy_sk <windy_sk@126.com> 20031218function html_trans(str) { str = str.replace(//r/g,""); str = str.replace(/on(load|click|dbclick|mouseover|mousedown|mouseup)="[^"]+"/ig,""); str =
Time of Update: 2018-12-04
<Style>A { color: #0080E0; text-decoration: none; font-weight: bold; cursor: help; filter:progid:dximagetransform.microsoft.pixelate(duration=.7, maxSquare=22, enabled=false); height: 0px; clip:
Time of Update: 2018-12-04
每當我們看到別人網頁上的開啟、列印、前進、另存新檔、後退、關閉本視窗、禁用右鍵等實現瀏覽器命令的連結,而自己苦於不能實現時,是不是感到很遺憾?是不是也想實現?如果能在網頁上能實現瀏覽器的命令,將是多麼有意思的事啊!下面我們就來看看如何用Javascript代碼實現瀏覽器功能表命令(以下代碼在Windows XP下的瀏覽器中調試通過)。 一、【檔案(F)】菜單中的命令的實現 1、〖開啟〗命令的實現 [格式]:document.execCommand("open")
Time of Update: 2018-12-04
Imports System.TextImports System.Security.Cryptography Module ModSecurity Function EnText(ByVal Text As String, ByVal sKey As String) As String Text = Text.ToLower Dim des As New DESCryptoServiceProvider Dim inputByteArray()
Time of Update: 2018-12-04
編寫思路:把本地檔案在用戶端通過base64編碼以後發送目的地.測試過程中,上傳檔案過大,導致逾時不成功.後來經過改善.把編碼分段發送.測試20M成功編寫目的:在傳統的解決方案裡面,一次一次選取上傳可以.但是在碰到把資料庫裡檔案路徑讀出來,並把這些檔案上傳到一個地方的時候就比較麻煩.如果得到路徑一個一個去找到用ftp當然也是可以的,但每次找這些檔案我看都會比較費時。這裡編寫這個主要就是為了通過資料庫裡的檔案路徑取得檔案.把檔案一次批量上傳到一個地方.其主要目的還是為了鍛煉一下自己.
Time of Update: 2018-12-04
'返回8位小寫字母數字混合隨機密碼Function GetRandomPassword() As String Dim s As String() = {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x",
Time of Update: 2018-12-04
<%'擷取訪問者的地址ip=Request.ServerVariables("REMOTE_ADDR") '允許的IP位址區段為10.0.0.0~10.68.63.255allowip1="10.0.0.0"allowip2="10.68.10.71"response.write checkip(ip,allowip1,allowip2)function checkip(ip,allowip1,allowip2)dim
Time of Update: 2018-12-04
<html><head><title>BackColor Setting</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><style>.theme { width:9; height:9; margin:0px 2px; cursor:hand; border:1px solid
Time of Update: 2018-12-04
主要利用了XMLHTTP的一些方法和屬性來擷取伺服器的資訊。XMLHTTP
Time of Update: 2018-12-04
'將貨幣的小寫轉換為大寫,例如:肆佰陸拾貳圓捌角柒分Public Function Num2Chi(ByVal txtJE As Double) As String Dim i, K As Integer Dim NC, nd, ka, chrNum, strZheng As String Dim c1, c2, c3 As String Dim K1 As Integer Dim Zheng As String Dim Xiao As String
Time of Update: 2018-12-04
現在基於WEB頁的HTML的編輯器在新聞系統,文章系統中用得越來越廣,一個網頁一粘就可以保持原來的樣式,同時圖片也可以在這個頁中保持。但是在使用過程中,如果所粘貼頁中的圖片被刪除,就會在自己的頁面上留下一個大大的“X”,影響美觀。以前只好把這個圖片儲存下來,再重新上傳到伺服器上,這樣實在麻煩。能不能讓伺服器自動去下載圖片儲存在伺服器並且替換頁面上的連結?答案是肯定的。要實現這個功能需要經過三個步驟:一,取得原頁中的圖片的地址。方法很多,可以用分割字串,也可以用正則匹配。實踐證明用正則匹配最為簡單
Time of Update: 2018-12-04
public class Bmp2Jpeg { private long lQuality=50L; private ImageCodecInfo myImageCodecInfo; private EncoderParameters myEncoderParameters;
Time of Update: 2018-12-04
window.document.createElement可以動態產生一個HTML對象,並且可以利用HTML對象的appendChild方法把自動產生的HTML對象添加到某一HTML對象中。 window.document.createElement的用法如下: var LinkObj = window.document.createElement("A");
Time of Update: 2018-12-04
'產生圖象驗證碼函數 Sub ValidateCode(ByVal VNum As String) Dim Img As System.Drawing.Bitmap Dim g As Graphics Dim ms As System.IO.MemoryStream 'gheight為圖片寬度,根據字元長度自動更改圖片寬度 Dim gheight As Integer = Int(Len(VNum) * 11.5)
Time of Update: 2018-12-04
Xml2OleDb簡介XML是互連網共用資料的最好的方法,XML格式的資料可以很輕鬆的整合到不同的Web應用中去。但如果你想將XML檔案插入到資料庫,怎麼辦?Xml2OleDb將向您說明往OleDb資料庫,比如SQL Server, Access, Excel, Visual FoxPro, FoxPro, and dBase等插入XML檔案的資料是如何輕鬆。首先,將XML檔案裝載進DataSet,並得到第一個表,這個表就是我們要加入到資料庫的DataTable;接下來,去除XML檔案的副檔名,
Time of Update: 2018-12-04
一.自訂控制項完成列印 利用IE 內建的WebBrowser 控制項實現列印 利用第三方控制項實現列印 1、 自訂控制項方式 自訂控制項方式就是利用VB 或VC 等工具產生COM 組件,用定義好的列印格式來分析列印源檔案從而實現列印。只有將產生的組件下載並註冊到客戶機上,才能實現在用戶端的 列印。 痛點主要是定義列印格式、如何來分析列印源檔案。現有的比較好的方法是利用XML 技術來全面的解決問題,利用XML 可以非常容易地定義列印目標的文本、表格等內容的格式。
Time of Update: 2018-12-04
<SCRIPT>var sInitColor = null;function callColorDlg(){if (sInitColor == null) var sColor = dlgHelper.ChooseColorDlg();else var sColor = dlgHelper.ChooseColorDlg(sInitColor); sColor = sColor.toString(16);if (sColor.length &