2008-04-27

javaScript DOM特性/方法

关键字: dom javascript高级程序设计
❑ DOM的核心: Node 由于DOM是树形结构,所以一个节点被抽象为对象Node,这是DOM的核心对象: Node的种类一共有12种,通过Node.nodeType的取值来确定(为1-12),分为: Node.ELEMENT_NODE (1) Node.ATTRIBUTE_NODE (2) Node.TEXT_NODE (3) //<![CDATA[ ]]>中括着的纯文本,它没有子节点 Node.CDATA_SECTION_NODE (4) //子节点一定为TextNode Node.ENTITY_REFERENCE_NODE (5) Node.ENTITY_ ...
2008-04-17

分页效果

关键字: js分页
还不错的分页效果,暂时用不上,收藏一下,见附件
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>move</title> <style type="text/css"> body{ font-size:12px; color:#849BCA; } #btn{ float:left; } #move{ width:500px; height:200px; background:#ED ...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/Strict.dtd"> <html lang="en"> <head> <style> <!-- body{ margin:1% 0 0 1%; font-family:Arial,Verdana,Helvetica,sans-serif;font-size:75%;} img{ border:0; } ...
2008-04-03

实用的js动画

关键字: javascript 动画
<!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> <script type="text/javascript"> <!-- function addLoadEv ...
2008-03-27

用js给input传值

关键字: javascript jquery input 传值
<style> #name{ float:left; height:25px;*height:24px;margin-right:10px;} #btn{ cursor:pointer; background:#a5a5a5; border:1px solid #666666;padding:1px 3px 3px 3px;float:left;} #box{ border:1px solid #a5a5a5; background:#a5a5a5; width:144px; color:#000;*margin-top:-15px;*width:146px;} #box ...
2008-03-16

常用js语句——大全

关键字: javascript 大全
1.document.write(""); 输出语句 2.JS中的注释为// 3.传统的HTML文档顺序是: document->html->(head,body) 4.一个浏览器窗口中的DOM顺序是: window->(navigator,screen,history,location,document) 5.得到表单中元素的名称和值: document.getElementById("表单中元素的ID号").name(或value) 6.一个小写转大写的JS: document.getElementById("output ...
2008-03-06

用javascript来充实文档的内容

关键字: javascript 充实文档的内容
<!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" xml:lang="en"> <head> <meta http-equiv="Content-Type" content ...
2008-03-04

javascript美术馆改进版

关键字: javascript 美术馆 改进版
<!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" xml:lang="en"> <head> <meta http-equiv="Content-Type" content ...
2008-02-29

javascript美术馆

关键字: javascript 美术馆 css
<!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" xml:lang="en"> <head> <meta http-equiv="Content-Type" content ...
2008-02-26

js日历

<html> <head> <title>日历</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <style> <!-- body, p, div,td,input {font:menu;line-height: 150%} .div { font-family: 宋体; font-size: 12px; line-height: 150% } --> ...
2008-02-25

javascript的IE和Firefox兼容性问题

关键字: ie和firefox兼容
以 IE 代替 Internet Explorer,以 MF 代替 Mozzila Firefox 1. document.form.item 问题 (1)现有问题: 现有代码中存在许多 document.formName.item("itemName") 这样的语句,不能在 MF 下运行 (2)解决方法: 改用 document.formName.elements["elementName"] 2. 集合类对象问题 (1)现有问题: 现有代码中许多集合类对象取用时使用 (),IE 能接受,MF 不能。 (2) ...
2008-02-25

javascript事件查询综合

关键字: javascript事件
click() 对象.click() 使对象被点击。 closed 对象.closed 对象窗口是否已关闭true/false clearTimeout(对象) 清除已设置的setTimeout对象 clearInterval(对象) 清除已设置的setInterval对象 confirm("提示信息") 弹出确认框,确定返回true取消返回false cursor:样式 更改鼠标样式 hand crosshair text wait help default auto e/s/w/n-resize event.clientX 返回最后一次点击鼠标X坐标值; event.clientY 返回最 ...
连续英文换行(没有空格):1.IE中:word-break:break-all;和word-wrap:break-word;2.FF中:<div id="ff">abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz</div> <script> function toBrea ...
All text links are opened in a new window. You can use one of the followings: 1.target=”_blank” 2.<a href="javascript:openWindow('http://');"></a> function openWindow(link) { window.open(link, '_blank', 'width=800,height=600,toolbar=yes,status=yes,location=yes,menubar=yes,directories=ye ...
2008-01-29

IF...ELSE

[% IF phase_num == 1 %]                            [% copydeck.intro.body_copy_1 %]                ...
<!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; charse ...
<!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; charse ...
readonly="readonly"; or <select onfocus="this.blur()" onmouseover="this.setCapture()" onmouseout="this.releaseCapture()" disabled> <option>1</option> <option>2</option> <option>3</option> <option>4& ...
ice-cream
搜索本博客
我的相册
存档
最新评论