随笔分类 - javascript
摘要:JavaScript 版本中可以通过 encodeURI, encodeURIComponent 实现 UTF-8 的 URL 编码与解码,但要实现 ANSI 的就得自己写代码了。之前有一个 JavaScript 与 VBScript 混合的 ANSI 的 URL 编码与解码,遗憾的是某些浏览器无法支持 VBScript,所以才有了本文纯 JavaScript 版的。 <script language="javascript">function UnicodeChr(){ return '00A4,00A7,00A8,00B0,00B1,00B7,00D
阅读全文
摘要:<html><head> <title>JS学习</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body>js prototype 详解<script>//例子一/*Object.prototype.Peoperty = 1;Object.prototype.Method = function(){ alert("this met
阅读全文
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=u
阅读全文
摘要:今天刚网上看的 不多说直接帖代码----<head><-----></head><body><!--向下滚动代码开始--><div id="colee" style="overflow:hidden;height:253px;width:410px;"><div id="colee1"><p><img src=""></p><p><img src="">
阅读全文