UTF8 -简体中文GB2312相互转换的JavaScript代码

虽然与PHP的iconv转出来的不同,但比较实用,对于使用国外免费空间出现乱码的问题,可以很好的解决。 演示地址 [coolcode] UTF-8 转换工具 使用方法:   在下面的文本框中输入中文文字,按“转化”,即可将其转化为UTF-8字符。   再按“还原”,即可将其还原为简体中文。 var mode="zhuan"; function encode(obj,btn){ if(mode=="zhuan"){ obj.value=obj.value.replace(/[^\u0...

read more..

Google Suggest–ajax动态下拉菜单提示

模仿Google Suggest的下拉菜单,不过没有后台通讯和XML,可以作为相关开发的参考。 本文转自“落伍者”,转贴请注明。 下面是程式代码: [coolcode] var intIndex=0;arrList = new Array(); arrList[intIndex++] = "1111.com"; arrList[intIndex++] = "1111.net"; arrList[intIndex++] = "22dsafsdf"; arrList[intIndex++] = "c333asdfsadf"; arrList[intIndex++] = "4444dsafasdf"; arrList[intIndex++] ...

read more..

页代码加密/解密收集

1.网页在线加密,将下面的代码保存为html文件就可以. [coolcode] It365cn.com \n"; i++; if (i=1) alert("Page compiled 1 time!"); else alert("Page compiled "+i+" times!"); } function selectCode() /* Selecting "Compilation" for Copying */ { if(document.pad.text.value.length>0) { document.pad.text.focus(); document.pad.text.select(); } else alert('Nothing for be selected!'...

read more..

XHTML+CSS兼容性解决方案小集

使用XHTML+CSS构架好处不少,但也确实存在一些问题,不论是因为使用不熟练还是思路不清晰,我就先把一些我遇到的问题写在下面,省的大家四处找。 1.在mozilla firefox和IE中的BOX模型解释不一致导致相差2px解决方法: [coolcode] div{margin:30px!important;margin:28px;}[/coolcode] 注意这两个margin的顺序一定不能写反,据阿捷的说法!important这个属性IE不能识别,但别的浏览器可以识别。所以在IE下其...

read more..

HTML特殊符号大全

░ ▒ ▬ ♦ ◊ ◦ ♠ ♣ ▣ ۰•● ❤ ●•۰ ► ◄ ▧ ▨ ♨ ◐ ◑ ↔ ↕ ▪ ▫ ☼ ♦ ♧♡♂♀♠♣♥❤☜☞☎☏⊙◎ ☺☻☼▧▨♨◐◑↔↕▪ ▒ ◊◦▣▤▥ ▦▩◘ ◈◇♬♪♩♭♪の★☆→あぃ£Ю〓§♤♥▶¤๑⊹⊱⋛⋌⋚⊰⊹ ≈ ๑۩۩.. ..۩۩๑ ๑۩۞۩๑ ✲ ❈ ✿ ✲ ❈ ➹ ~.~ ◕‿-。 ☀☂☁【】┱ ┲ ❣ ✚ ✪ ✣ ✤ ✥ ✦❉ ❥ ❦ ❧ ❃ ❂ ❁ ❀ ✄ ☪ ☣ ☢ ☠ ☭ ღღღ ▶ ▷ ◀ ◁ ☀ ☁ ☂ ☃ ☄ ★ ☆ ☇ ☈ ⊙ ☊ ☋ ☌ ☍ⓛⓞⓥⓔ ╬ 『 』∴ ☀ .。◕‿◕。 ♫ ♬ ♩ ♭ ♪ ☆ ∷ ﹌ の ★ ◎ ▶☺ ☻ ► ◄ ▧ ▨ ♨ ◐ ◑ ↔ ↕↘ ☼ ▀ ▄ █ ▌░ ▒ ▬ ♦ ◊ ☜ ☞ ▐ ░ ▒▬ ♦ ◊ ◦ ☼ ♪ の ☆→ ...

read more..

胡佳琛-拾起的布偶

[audio:http://music5.m149.com/music/20060528/1148825179697.mp3?m149s|autostart=yes] 词/曲/唱:胡佳琛 风花雪月变换的无季 让我想起你 回忆永久是那么崭新 忘不掉爱过的你 记得你那时有点顽皮 喜欢看我着急的样子 恋上你永远那么甜蜜 一时让我想不起 你说见了面会难堪 你说不见是思念 你说让我忘了这一切 才发现会改变 就像你 送我的 你最喜欢的布偶 但愿爱情可以重来一次我会很珍惜 哼着歌 古道边 ...

read more..

Div+CSS布局漫谈

1.CSS布局常用的方法: float : none | left | right 取值: none : 默认值。对象不飘浮 left : 文本流向对象的右边 right : 文本流向对象的左边 它是怎样工作的,看个一行两列的例子 xhtml: [coolcode] 这里是第一列 这里是第二列 [/coolcode] CSS:[coolcode] #wrap{ width:100%; height:auto;} #column1{ float:left; width:40%;} #column2{ float:right; width:60%;} .clear{ clear:both;} [/coo...

read more..

国外空间乱码显示问题的解决

好不容易找到了一个免费的空间,可是把网页放上去一看一些乱码,是不是很上火呢?不过看了这篇文章之后就不用上火了,我们有解决办法! [coolcode] 在数据提取页面的第一行代码换成如下代码即可: <% @language=vbscript codepage=936%> 1.若是html文件(.htm .html): 在<head></head>中加上<meta http-equiv=”Content-Type” content=”text/html; charset=gb2312...

read more..