基于jquery的页面定时跳转 27 June 2010 9:25 Sunday by 小屋 浏览(2329)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>err.html</title>
   
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
    <script src="scripts/jQuery/jquery.js" type="text/javascript"></script>
    <script language="javascript">
        $(document).ready(function() {
            function jump(count) {
                window.setTimeout(function(){
                    count--;
                    if(count > 0) {

阅读全文>>

css手型 27 May 2010 14:38 Thursday by小屋 浏览(3093)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html >
<head>
<title >cursor</title >
</head>
<body>
<p style=cursor:hand>手形</p>
<p style=cursor:move>移动标志</p>
<p style=cursor:wait>等待状态 </p>
<p style=cursor:crosshair>定位指示 </p>
<p style=cursor:help>寻求帮助</p>
</body>
</html >

 

IE与Firefox中兼容html 中巧用CSS改变鼠标 为手形

<div style="cursor: pointer" mce_style="cursor: pointer"> 说明文字 内容 </div>

阅读全文>>

alert窗口弹出两次 06 May 2010 20:25 Thursday by小屋 浏览(1852)

 

这几天做项目,里面大部分是php嵌套html,晚上测试的时候,发现,有些地方的alert会弹出两次?

找了老半天没发现明显错误。最后问了一下百度妈妈,她说,是因为加载一次跟刷新一次所以两次?

分两个界面或把alert放在html标签内可解决

阅读全文>>

JSP生成静态HTML页面的3种方法 09 December 2009 21:22 Wednesday by小屋 浏览(1859)


一、从数据库中取相应数据并替换掉模板中的对应标签,下面是一个简单的示例


1.buildhtml.jsp
<%@ page contentType="text/html; charset=gb2312" import="java.util.*,java.io.*"%>
<%
try{
String title="This is Title";
String content="This is Content Area";
String editer="LaoMao";
String filePath = "";
filePath = request.getRealPath("/")+"test/template.htm";
//out.print(filePath+"<br>");
String templateContent="";
FileInputStream fileinputstream = new FileInputStream(filePath);//读取模块文件
int lenght = fileinputstream.available();
byte bytes[] = new byte[lenght];
fileinputstream.read(bytes);

阅读全文>>