Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->// vaild inter number function 1 function isInteger(obj, Name) 2 { 3 if( obj.value == "" ) 4 return
using System;using System.Text;namespace CCC.Utility{/// <summary>/// Summary description for JSExcel./// </summary>public class Excel4JavaScript{private string _ReportTemplate_Excel_FileName = null;private int _Used_WorkSheet_MaxIndex =
using System;using CCC.Utility;namespace CCC.BLL{/// <summary>/// Summary description for JVExcelBuilder./// </summary>public class JVExcelBuilder{private const int detailGridRowStart= 11;private const int detailGridColumnStart= 2;
上傳檔案的時候要判斷上傳檔案的類型是否符合需求,通過JavaScript擷取上傳檔案尾碼名。示範如下: 源碼如下: <input size=30 type="file" name="pic" onchange="check_type(this)"/> <script language="javascript"> function check_type(obj){ var str=$(obj).val(); var index=str.
This is how I accomplished reading a table in javascript. Basically I drilled down into the rows and then I was able to drill down into the individual cells for each row. This should give you an ideavar oTable =
製作一個類似XP的Explorer菜單,如下:圖中所需有五個圖形: htm檔案源碼如下:如需要增加菜單,可簡單複製,但需要修改紅色的地方<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type"