- 浏览: 130268 次
- 性别:
- 来自: 青岛
最新评论
-
wangyu1221:
汉字字符和英文字符混排的话,英文字符貌似会被漏掉。
js EncodeUtf8
文章列表
http://hi.baidu.com/greatmaster/blog/item/af801138930b5e26b8998fa3.html
(上一篇,下一篇)
1.line(直线)a.示例:<html xmlns:v="urn:schemas-microsoft-com:vml"><head><title>创建一条从(0,0)到(200,200)的红色的边框为2px的直线</title><style>v\:* { behavior: url(#default#VML);} </style> ...
- 2008-06-18 16:45
- 浏览 2007
- 评论(0)
http://www.51windows.net/myjs/?u=/myjs/JsList.asp
- 2008-06-18 16:21
- 浏览 772
- 评论(0)
<SPAN class="bold">古代美女欣?</SPAN><BR>
<BR>
<DIV style="FONT-SIZE: 12pt">
<DIV class="t_msgfont" id="message1331825">
<DIV style="LEFT: 30px; OVERFLOW: hidden; WIDTH: 600px; POSITION: relative; TOP: 10px; ...
- 2008-06-18 14:29
- 浏览 1363
- 评论(0)
function EncodeUtf8(s1)
{
var s = escape(s1);
var sa = s.split("%");
var retV ="";
if(sa[0] != "")
{
retV = sa[0];
}
for(var i = 1; i < sa.length; i ++)
{
if(sa[i].substring(0,1) == "u")
...
- 2008-06-17 08:40
- 浏览 1665
- 评论(1)
http://www.blueidea.com/tech/web/2006/3791_5.asp
document.onmousemove = mouseMove;document.onmouseup = mouseUp;
var dragObject = null;var mouseOffset = null;
function getMouseOffset(target, ev){ ev = ev || window.event;
var docPos = getPosition(target); var mousePos = mouseCoords(ev); r ...
- 2008-06-16 13:25
- 浏览 979
- 评论(0)
让自己的网页禁止右键菜单及禁止全选。
<script language="JavaScript">
document.oncontextmenu=new Function("event.returnValue=false;");
document.onselectstart=new Function("event.returnValue=false;");
</script>
ctrl || shift+滚轮
document.onmousewheel=function()
{
if( e ...
- 2008-06-13 15:40
- 浏览 1148
- 评论(0)
<OBJECT style="DISPLAY: none" type="application/pdf" height="0" width="0" VIEWASTEXT>
<DIV id="PDFNotKnown" style="display:none"></DIV>
</OBJECT>
var aa=document.all.PDFNotKnown?"IfNoAcrobat":"If ...
- 2008-06-11 18:29
- 浏览 737
- 评论(0)
局限性:
1、不适合数据交换,里面有html代码,比较乱,没有固定格式
2、datagrid不能有分页、排序等,否则出错
实现方法:
Response.Clear();
???Response.Buffer= false;
???Response.Charset="GB2312";
???Response.AppendHeader("Content-Disposition","attachment;filename=test.xls");
???Response.ContentEncoding=System.Text.Encoding ...
- 2008-06-03 18:06
- 浏览 1196
- 评论(0)
function toExcel(tablename) //导出到excel
{
var mysheet=new ActiveXObject("OWC.Spreadsheet");
with(mysheet)
{
DataType = "HTMLData";
HTMLData =tablename.outerHTML;
try
{
//fileDialog.CancelError=true;
// ActiveSheet.Cells(1,1).value=&quo ...
- 2008-05-29 17:32
- 浏览 1357
- 评论(0)
<asp:datagrid id="dgrdS" runat="server" Width="470px" ShowHeader="false" CellPadding="0" AutoGenerateColumns="False">
<HeaderStyle Fon ...
- 2008-05-21 16:51
- 浏览 1004
- 评论(0)
<a>标签
1. <a href=”test.aspx”></a>
2. 这是最常见的一种转向方法;
HyperLink控件
1. Asp.net 服务器端控件 属性NavigateUrl指定要跳转到的Url地址
2. NavigateUrl是可以在服务器端 ...
- 2008-05-20 11:25
- 浏览 2689
- 评论(0)
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<div id="divChoice">
<div id="divOver">
<div id="divCompany"><span class="title">支店</ ...
- 2008-05-19 18:07
- 浏览 1130
- 评论(0)
<%@ Page language="c#" Codebehind="UpLoad.aspx.cs" AutoEventWireup="false" Inherits="WebPortal.Upload" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>多文件上传</title>
...
- 2008-05-12 16:07
- 浏览 1235
- 评论(0)
using System.Text.RegularExpressions;
using System;
class Validation
{
public static void Main()
{
String strToTest;
Validation objValidate=new Validation();
Console.Write("Enter a String to Test for Alphabets:");
strToTest=Console.ReadLine();
if(objValidate.IsAlp ...
- 2008-05-12 13:35
- 浏览 783
- 评论(0)
JS的正则表达式
(轉)JS的正则表达式
//校验是否全由数字组成function isDigit(s){var patrn=/^[0-9]{1,20}$/;if (!patrn.exec(s)) return falsereturn true}
//校验登录名:只能输入5-20个以字母开头、可带数字、“_”、“.”的字串function isRegisterUserName(s){var patrn=/^[a-zA-Z]{1}([a-zA-Z0-9]|[._]){4,19}$/;if (!patrn.exec(s)) return falsereturn true}
//校验用户姓名:只能 ...
- 2008-05-12 10:07
- 浏览 775
- 评论(0)