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>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-CN" />
<meta name="Design Corp" content="李军" />
<meta name="Designer mail" content="lijunabcxy@163.com" />
</head>
<mce:style type="text/css"><!--
/*<!--[CDATA[*/
ul,li{margin:0;padding:0;list-style-type:none;}
ul{width:450px;padding:10px;border:1px solid #ccc;background:#fafafa;line-height:25px; margin:10px;font-size:12px;}
#news_list li{border-bottom:1px dashed #cde;}
#news_list span{float:right;}
#news_list li a{color:#006;}
/*]]>*/
--></mce:style><mce:style type="text/css" mce_bogus="1"><!--
/*<![CDATA[*/
ul,li{margin:0;padding:0;list-style-type:none;}
ul{width:450px;padding:10px;border:1px solid #ccc;background:#fafafa;line-height:25px; margin:10px;font-size:12px;}
#news_list li{border-bottom:1px dashed #cde;}
#news_list span{float:right;}
#news_list li a{color:#006;}
/*
*/
--></mce:style><style type="text/css" mce_bogus="1" mce_bogus="1">/*<![CDATA[*/
ul,li{margin:0;padding:0;list-style-type:none;}
ul{width:450px;padding:10px;border:1px solid #ccc;background:#fafafa;line-height:25px; margin:10px;font-size:12px;}
#news_list li{border-bottom:1px dashed #cde;}
#news_list span{float:right;}
#news_list li a{color:#006;}
/*
*/</style>
<mce:script type="text/<a href="http://www<a href=" mce_href="ht
相关文档:
在实际应用中,可能会碰到这样的情况,需要在Java代码中执行JavaScript。
例如:
import java.io.IOException;
import java.io.PrintWriter;
import javax.faces.context.FacesContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public cl ......
第一步:在IE的“Internet设置”中选择“高级”——“安全”——“启用集成windows身份验证”。
第二步:在需要调试的页面的脚本中加上debugger; 然后运行这个页面,就会在这里停下来
例如:
function BtnSubmit_Click()
{
var aaa;
aaa='aaa';
debugg ......
演示地址: http://www.wowo-design.com/view/51_01/index.htm
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>css菜单演示</title>
<style type="text/css">
<!--
*{margin:0;padding:0;border:0;}
body {
......
The ExternalInterface API
之前我们使用flash调用javascript函数,一般使用这样的方法:
代码:
getURL(“javascript:alert(‘hello zhang-chao.com’);”); //注意字符串 双引号 里面加单引号
但是使用这种方法从flash调用javascript函数仍存在许多困难 ......
<!-- 学习自javaeye的文章 请转贴者注自出处 learner:nilinfa -->
<HTML>
<script>
/*定义一个新的对象*/
var emptyObject1 = {};
/*定义一个新的对象*/
var emptyObject2 = new Object();
/*定义一个新的对象,键值对应*/
v ......