What is AJAX
This section is for those who have no idea what AJAX is. If you don’t fall into this category, feel free to skip to the next section.
AJAX stands for asynchronous JavaScript and XML. If you see another term XHR, which is shorthand for XML HTTP request, it’s the same thing. Don’t be afraid of this jargon; AJAX is not rocket science.
In Gmail, switch from inbox to draft. Part of the page is changed, but the page is not refreshed. You remain on the same page. Url has not changed (except for the #draft at the end of the url, but that’s still the same webpage).
In Google Reader, select a feed. The content changes, but you are not redirected to another url.
In Google Maps, zoom in or zoom out. The map has changed, but you remain on the same page.
The key to AJAX’s concept is “asynchronous”. This means something happens to the page after it’s loaded. Traditionally, when a page is loaded, the content remains the same until ......
package org.fox.image;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import javax.microedition.io.Connector;
import javax.microedition.io.HttpConnection;
import javax.microedition.lcdui.Image;
/**
* 类名:ImageHandler.java 编写日期: 2007-8-17
程序功能描述:
Demo:
*
Bug:
*
* 程序变更日期 :
变更作者 :
变更说明 :
*
* @author wuhua rrq12345@163.com
*/
public class ImageHandler implements Runnable {
private HttpConnection c = null;
private InputStream is = null;
private ByteArrayOutputStream baos = new ByteArrayOutputStream();
private Image image = null;
private String iamgeUrl;
private ImageCanvas imageCanvas;
private ImagePart imagePart;
private ImageHandler(String imageUrl,ImagePart imagePart,ImageCanvas imageCanvas){
this.iamgeUrl = imageUrl;
this.imagePart = (ImagePart)imagePart;
this.imageCanvas = imageCanvas;
new Thread(this).start();
}
public static ImageHandler getIamgeHandler(String imageU ......
文本格式化标签
标签描述
<b>
定义粗体文本。
<big>
定义大号字。
<em>
定义着重文字。
<i>
定义斜体字。
<small>
定义小号字。
<strong>
定义加重语气。
<sub>
定义下标字。
<sup>
定义上标字。
<ins>
定义插入字。
<del>
定义删除字。
<s>
不赞成使用。使用 <del> 代替。
<strike>
不赞成使用。使用 <del> 代替。
<u>
不赞成使用。使用样式(style)代替。
“计算机输出”标签
标签描述
<code>
定义计算机代码。
<kbd>
定义键盘码。
<samp>
定义计算机代码样本。
<tt>
定义打字机代码。
<var>
定义变量。
<pre>
定义预格式文本。
<listing>
不赞成使用。使用 <pre> 代替。
<plaintext>
不赞成使用。使用 <pre> 代替。
<xmp>
不赞成使用。使用 <pre> 代替。
引用、引用和术语定义
标签描述
<abbr>
定义缩写。 <abbr title="United Nations">UN</abbr> (在浏览器显示UN把鼠标移上)
<acronym&g ......
最常用的字符实体
显示结果描述实体名称实体编号
空格
 
<
小于号
<
<
>
大于号
>
>
&
和号
&
&
"
引号
"
"
'
撇号
' (IE不支持)
'
其他一些常用的字符实体
显示结果描述实体名称实体编号
¢
分
¢
¢
£
镑
£
£
¥
日圆
¥
¥
§
节
§
§
©
版权
©
©
®
注册商标
®
®
×
乘号
×
×
÷
除号
÷
÷
......
nodeName、nodeValue 以及 nodeType 包含有关于节点的信息。
节点信息
每个节点都拥有包含着关于节点某些信息的属性。这些属性是:
nodeName(节点名称)
nodeValue(节点值)
nodeType(节点类型)
nodeName
nodeName 属性含有某个节点的名称。
元素节点的 nodeName 是标签名称
属性节点的 nodeName 是属性名称
文本节点的 nodeName 永远是 #text
文档节点的 nodeName 永远是 #document
注释:nodeName 所包含的 XML 元素的标签名称永远是大写的
nodeValue
对于文本节点,nodeValue 属性包含文本。
对于属性节点,nodeValue 属性包含属性值。
nodeValue 属性对于文档节点和元素节点是不可用的。
nodeType
nodeType 属性可返回节点的类型。
最重要的节点类型是:
元素类型节点类型
元素
1
属性
2
文本
3
注释
8
文档
9
......
三种引用2010-03-14 17:45:36
内联定义>外链引用>内联块定义
1.内联定义
<a stype="XXX">
2.外链引用 css文件
<head> <link rel="stylesheet" href="aa.css" /> </head> head里写
标签通过 class=" " 来引用
3.内联块 (在head 和body之间写)
<style type="text/css">
<!--
a:link{text-decoration:none; color: #FF0000; font-size:24px} //text-decoration 文字线
a:Active{text-decoration:line-through; color:#FF0033; font-size:18px}
a:Visited{ color:#FFCC33; font-size:12px}
- ......