【1】
1:在xhtnl mp 中实现锚点
头文件可以写成<html><html>也可以写成
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
"http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
2:xhtml mp 实现锚点作用 指向页面,或页面中段落,精确链接
在手持系统中,一个页面有多个图片,可以一次下载所有图片,每次只显示一个,用锚点访问别的图片,可以提速
3:完整的xhtml mp 锚点的实现
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
"http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>XHTML MP Tutorial</title></head>
<body>
<p><a id="top">Table of Contents:</a></p>
<ul>
<li>Part 1 XHTML MP Introduction</li>
<li>Part 2 Development of Wireless Markup Languages</li>
<li>Part 3 Advantages of XHTML MP</li>
........................................................
<p><a href="#top">Back to top</a></p>
4:效果 点击Back to top 链接 文档移动到有Table of Contents的地方
5:可以吧image标签放到a中 <a href="/a.html"><image src="/tupian.gif" alt=""></image></a>
【2】timer同等功能
1:定时刷新 <meta http-equiv="refresh" content="5"></meta>//5秒刷一次
2:定时刷新,且转到别的路径 <meta http-equiv="refresh" content="5;URL=s.html"></meta>
3:到服务器上去刷 <meta http-equiv="Cache-Control" content="no-cache"></meta>
4:完整timer功能实现
15秒刷一次,到服务器上去最新的
<?xml?version="1.0"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
"http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>XHTML MP 教程</title>
<meta http-equiv="Cache-Control" content="no-cache"/>
<meta http-equiv="refresh" content="15"/>
</head>
<body>
<p>此 XHTML MP 页面将每 15 秒钟被自动刷新一次.</p>
</body>
</html>
15秒刷一次,只在缓存中区值,且转到URL指向的地址
<head>
<title>XHTML MP 教程</title>
<meta http-equiv="refresh" content="15;URL=file://localhost/E:/a.html"></meta>
</head>