当前位置:首页 » 服务器技术
开发技术指南» 文章正文
    引言: <HTML><HEAD><TITL
 

 

    摘要: 下面是js脚本(floatdiv.js) /*====================================================================== 浮动块支持脚本 design by : 彭国辉 date: 2004-02-26 site: http://kacarton.yeah.net/ email: kacarton@sohu.com======================================......
 ·用文本来表示uml图表    »显示摘要«
    摘要:martin flower在他最近的blog中大发妙论,说要用text来表示uml图表。有人会说既然是图表,当然要用图来表示。但是martin为什么要提出新的方法呢?下面一段摘录自他的最新blog: the biggest thing i would like however is to specify my uml diagrams as text. that may sound strange - after all uml diagrams are ......


JavaScript实现的Base64编码和解码

<html>

<head> 【相关文章:CLR 调试接口的架构与应用 [2] 调

【扩展阅读:CLR 调试接口的架构与应用 [1] 背

<title>base64</title> 【扩展信息:CLR 调试接口的架构与应用 [3] 调

<script language=javascript>

var base64encodechars = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz0123456789+/";

var base64decodechars = new array(

  -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,

  -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,

  -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63,

  52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, -1, -1, -1,

  -1, 0, 1, 2, 3,  4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,

  15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1,

  -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,

  41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -1, -1, -1, -1, -1);

function base64encode(str) {

  var out, i, len;

  var c1, c2, c3;

  len = str.length;

  i = 0;

  out = "";

  while(i < len) {

 c1 = str.charcodeat(i++) & 0xff;

 if(i == len)

 {

   out += base64encodechars.charat(c1 >> 2);

   out += base64encodechars.charat((c1 & 0x3) << 4);

   out += "==";

   break;

 }

 c2 = str.charcodeat(i++);

 if(i == len)

 {

   out += base64encodechars.charat(c1 >> 2);

   out += base64encodechars.charat(((c1 & 0x3)<< 4) | ((c2 & 0xf0) >> 4));


...   下一页
 ·php中实现图片的锐化    »显示摘要«
    摘要:没错,php也可以实现图片的锐化、模糊、浮雕等操作。因为php作为网页脚本特长不在此,但在对效率要求不高、又不想使用cgi的情况下,让我们来看看该怎样做。下面内容已经被收录在csdn中php的faq里:http://community.csdn.net/expert/faq/faq_index.asp?id=188506 <? //读取图像的类型 //1 = gif, 2 = jpg, 3 = png, 4 = swf, 5 = psd, 6 = b......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE