
html & css & js
okie-dokie
...
展开
-
小细节备忘
用于页面内定位的 <a id="x" name="x"></a>简写的话在 firefox 的 firebug 中会被认为标签没结束 <script src="x.js"></script>绝对不能简写 checkbox 不设置 name 属性的话不能选中 <form onsubmit=&q2008-08-01 15:30:17 · 108 阅读 · 0 评论 -
用DOM生成表格
x.jsfunction addX(){ var oTBody = document.createElement("tbody"); x.appendChild(oTBody); var oTr = document.createElement("tr"); oTBody.appendChild(oTr); var oTd1 = document.cr...2008-05-20 15:53:24 · 150 阅读 · 0 评论 -
样式表贴图
<table cellspacing="0" style="border: 0; margin: 0pt; padding: 0pt; visibility: visible; position: absolute; border-collapse: collapse; z-index: 99;"> <tbody style="border: 0; margin: 0pt; ...2008-05-20 16:00:51 · 107 阅读 · 0 评论 -
Rico 圆角
requirment--prototype 1.5.1、rico 2.0 betaattention--<div id="r" ...> 这个元素的background-color样式很关键哦 必须是rgb数字格式--因为rico2还是beta版 rico的js文件是按模块分开的 所以得包含多个rico的js文件 圆角用到两个roco.js、ricoStyles.js <h...2008-05-20 16:03:49 · 116 阅读 · 0 评论 -
取 cookies
<html><head><script>function listCookies(){ var items = new Array(); var cookies = document.cookie.split(";"); for(var i = 0; i < cookies.length; i++){ var pair...2008-05-20 16:06:00 · 153 阅读 · 0 评论 -
正则表达式取 html标签
function listTags(){ str = document.getElementsByTagName("body")[0].outerHTML; regExp = /<([\w]+)(?:\s+|\s+[^>\/]+)>/gi; while (null != (temp = regExp.exec(str))) { alert(...2008-05-20 16:06:47 · 162 阅读 · 0 评论 -
flash: 设置文本字段的属性
var txt:TextField = "faint";var txtFmt:TextFormat = new TextFormat();txtFmt.size = 10;txt.setTextFormat(txtFmt); trace(""); // a very useful instruction2008-05-20 16:08:02 · 450 阅读 · 0 评论 -
javascript 事件
- 3- 我呸 - 不守规矩的IE 4心眼儿的FF <html><head><title> event test </title><script>function broswerType(){ return "FF";}function whichOne(e){ var element; var ...原创 2008-05-20 16:10:17 · 126 阅读 · 0 评论 -
tab page step-by-step
[size=xx-large;][b]Preface[/b] [/size][b][i]prototype[/i] [/b]& [i][b]script.aculo.us[/b] [b][/b][/i][b]are so powerful[i][b] [/b][/i][/b][b][/b][b][b][si...2008-12-15 16:21:47 · 149 阅读 · 0 评论