'***********************************************
'函数名:alerturl
'作  用:提示信息
'参  数:str----提示信息,url-----放的网址
'返回值:一个信息,回到网站
'***********************************************
function alerturl(str,url)
 response.Write("<script>alert("""&str&""");window.document.location.href='"&url&"';</script>")  
end function
'***********************************************
'函数名:trimchr
'作  用:把双引号转换成单引号放在主要在网站配置方面
'参  数:trimstrchr----被引入的字符
'返回值:过滤掉chr(34)的字符
'***********************************************
function trimchr(trimstrchr)
 if trimstrchr="" then
   exit function
 end if
trimchr=replace(trim(trimstrchr),chr(34),chr(39))
end Function

'***********************************************
'函数名:brtochr
'作  用:把vbcrlf转换成<br>,
'参  数:chrstr----这个是字符串
'返回值:字符串
'***********************************************
function chrtobr(chrstr)
 if chrstr="" then
   exit function
 end if
chrtobr=replace(chrstr,vbcrlf,"[br]")
end Function
'***********************************************
'函数名:brtochr
'作  用:把[br]转换成chr(10)
'参  数:brstr----这个是字符串
'返回值:字符串
'***********************************************
function brtochr(brstr)
 if brstr="" then
   exit function
 end if
brtochr=replace(brstr,"[br]",chr(10))
end Function

'***********************************************
'函数名:tobr
'作  用:把|转换成<br>
'参  数:strbr----这个是字符串
'返回值:字符串
'***********************************************
function tobr(strbr)
 if strbr="" then
   exit function
 end if
tobr=replace(strbr,"|","<br>")
end Function
%>
Tags:
Open in new window
Tags:
错误去黑头方法:
1、用手挤:很多人都会用手挤,但由于指甲易藏细菌,所以容易引致皮肤发炎,而且毛孔会越变越大。
2、用刷擦:这种方法只适用于去死皮,如去黑头,作用不大,若大力擦会擦损皮肤。
Tags:
转自Sina Blog.

程序员每天总结自己一天任务的完成情况
最好的方式是写工作日志,把自己今天完成了什么事情,遇见了什么问题都记录下来,日后翻看好处多多
Tags:

你知道吗? 不指定

Else , 2006/07/29 23:55 , 不拘一格的内容 , Comments(0) , Reads(2159) , Via Original
不要说什么要一个人好好的活下去
你明知道我做不到
不要对我期望过高了
我只是一个爱着你的凡夫俗子而已
Tags:
Open in new window
Tags:

'***********************************************
'函数名:splitaddress
'作  用:把字符串变成select
'参  数:addressstr  ----字符串
'返回值:select里面的原素
'***********************************************

function splitaddress(addressstr)
  if addressstr="" then
    exit function
  else
    Transactions=split(addressstr,"|")
    for i=0 to ubound(Transactions)
    splitaddress=splitaddress& "<option value="&chr(34)&Transactions(i)&chr(34)&">"&Transactions(i)&"</option>"&chr(10)
    next
  end if
end function
Tags:
<script language="JavaScript"><!--
function WindowClose()
{
    if(document.all)
    {
        if(parseFloat(window.navigator.appVersion.substr(window.navigator.appVersion.indexOf("MSIE")+5, 3)) < 5.5)
        {
            var str  = '<object id=meizzMax classid="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11">'
                str += '<param name="Command" value="Close"></object>';
            document.body.insertAdjacentHTML("beforeEnd", str);
            document.all.meizzClose.Click();
        }
        else
        {
            window.opener = "meizz";
            window.close();
        }
    }
    else    window.close();
}
//--></script>

<!--<input type=button value=关闭 onclick="WindowClose()">-->
Tags:

'=========================================================
'函数:alert(str)
'作用:弹出对话框信息
'参数:str      ---要弹出的信息
'参数:nexti    ---弹出后的动作0=无,1=返回,2=关闭
'=========================================================
Function alertstr(str,nexti)
dim nextStr
select case(nexti)
  case(0)
    response.Write("<script>alert("""&str&""");</script>")
    response.End()
  case(1)
    response.Write("<script>alert("""&str&""");history.back();</script>")
    response.End()
  case(2)
    response.Write("<script>alert("""&str&""");window.close();</script>")
    response.End()
end select  
end Function
Tags:
软件的质量属性
鲁棒 - Solid and Robust Code
简洁 - Maintainable and Simple Code
高效 - Fast Code
简短 - Small Code
共享 - Re-usable Code
可测试 - Testable Code
可移植 - Portable Code
Tags:
Pages: 1/9 First page 1 2 3 4 5 6 7 8 9 Next page Final page [ View by Articles | List ]