Display web JSP page section by section

来源:互联网 发布:淘宝评价记录能删除吗 编辑:程序博客网 时间:2024/06/09 16:44

<?xml version="1.0" encoding="ISO-8859-1" ?><%@ page language="java" contentType="text/html; charset=ISO-8859-1"    pageEncoding="ISO-8859-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; charset=ISO-8859-1" /><title>Insert title here</title></head><body><h1>Part A</h1><% out.flush(); Thread.sleep(5000);%><h1>Part B</h1><div id="showImage"></div></body><script type="text/javascript">function activeDisplay(){document.getElementById('showImage').innerHTML = "<img src='./Qnarutom.jpg' alt='show now' />";}activeDisplay();</script></html>



"Enter the URL, "Part A" will be showed immediately. Then sleep (loading) for 5 seconds, "Part B" shows eventually.


I think this's useful for BIG page. 有没有人说下这方面的应用?API? 其他方法?


Lazy loading image when user scrolls to it:

http://code.google.com/p/jquery-appear/

 

http://www.jb51.net/article/39896.htm

原创粉丝点击