易截截图软件、单文件、免安装、纯绿色、仅160KB
热门标签: c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 最新文章 :

Ajax异步刷新

注意:
1、<div id="iframe">显示刷新的内容</div>
2、调用异步刷新:javascript:OnLink('地址')
<!--ajax异步刷新-->
<script type="text/javascript">
 //创建XMLHttpRequestc对象
  var  xmlHttp=false;
  //判断浏览器
  function createXMLHttpRequest(){
    if(window.ActiveXObject){//IE浏览器
      try{
        xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }catch(e){
        try{
          xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
        }catch(e){}
      }
    }else{//其他浏览器:如mozilla 的 fireFox(火狐) 或者 netscape 7
      xmlHttp=new XMLHttpRequest();
    }
  }
  //提交获得值后的方法
&nb ......

Google Ajax Search API的基本使用方法

Google Search API
参考书籍:Google API大全—编程?开发?实例
书籍对几十种Google常用API进行了梳理和介绍,辅以行之有效的代码实例
http://code.google.com/intl/zh-CN/apis/ajaxsearch/documentation/
1)Google Site Search
Google站点内嵌搜索的使用方法
<%@ page language="java" contentType="text/html; charset=GBK"%>
<html>
<head>
<title>首页</title>
</head>
<body>
站内全文搜索,谷歌合作提供
<!-- SiteSearch Google -->
<form method="get" action="http://www.google.com/custom"
        target="google_window">
<table border="0" bgcolor="#ffffff">
        <tr>
                <td nowrap="nowrap" valign="top" align="left" height="32"></td>
        </tr>
        <tr>
  &nb ......

jsForm Html Form via JSON with jQuery

/* 1 construct html form 2 bind data to form 3 validate form data 4 collect data from form */  (function($){     var controlTypes = ['textbox','password','checkbox','radio','button','combo','list','panel'];     $.fn.jForm = function(options){         var self = this;         // each form          this.each(function(){             var form = $(this);             var data = eval("(" +form.attr('data') + ")");           &nbs ......

下拉框树,HTML代码

     很多时候,我们需要将下拉框里面的数据用树显示出来,这样会便于客户得到清晰的数据,而且比较直接,晾出以下HTML代码,可以直接复制到HTML代码里面运行!
    <!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=utf-8" />
<title></title>
<script>
/*****************************************
auth: polarbear
data: 2009.04.17
******************************************/
//ucstar select
//id: select id
//name: select attribute name
//rootSelectname: select first option value
//sign: iterator options's prefix sign
//selectid: about the selected option id
function UcstarSelectObj(id,name,rootSelectname,sign,selectedid) {
 this.id = id;
 this.name = name;
 this.rootSelectname = rootSelectname;
 this.sign = s ......

XML文档的显示 CSS

Product.xml
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="product.css" ?>
<productata>
<product prodid="p001" category="toy">
<productname>Mini Bus</productname>
<description>This is a toy for childern aged 4 and above</description>
<price>75</price>
<quantity>54</quantity>
</product>
<product prodid="p002" category="toy">
<productname>Barbie Doll</productname>
<description>This is a toy for childern in the age group of 5-10</description>
<price>20</price>
<quantity>200</quantity>
</product>
</productata>
Product.css
@charset "utf-8";
/* CSS Document */
productname
{
font-family:Arial;
font-size:20px;
font-weight:bold;
color:red;
display:block;
padding-top:6px;
padding-bottom:6px;
}
price,description,quantity
{
font-family:Arial;
font-size:10px;
color:teal;
display:bl ......

XML与CSS类选择符的使用

Class.xml
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="class.css"?>
<bookdetail>
<book class="A">
<author>曹雪芹</author>
<title>红楼梦</title>
<price>60.00</price>
</book>
<book class="A">
<author>罗贯中</author>
<title>三国演义</title>
<price>40.00</price>
</book>
<book class="M">
<author>琼瑶</author>
<title>一帘幽梦</title>
<price>20.00</price>
</book>
</bookdetail>
Class.css
@charset "utf-8";
/* CSS Document */
bookdetail
{
display:block
}
book.a
{
color:blue;
}
book
{
display:block
}
price
{
font-style:italic
}

......

XML与CSS类选择符的使用

Class.xml
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="class.css"?>
<bookdetail>
<book class="A">
<author>曹雪芹</author>
<title>红楼梦</title>
<price>60.00</price>
</book>
<book class="A">
<author>罗贯中</author>
<title>三国演义</title>
<price>40.00</price>
</book>
<book class="M">
<author>琼瑶</author>
<title>一帘幽梦</title>
<price>20.00</price>
</book>
</bookdetail>
Class.css
@charset "utf-8";
/* CSS Document */
bookdetail
{
display:block
}
book.a
{
color:blue;
}
book
{
display:block
}
price
{
font-style:italic
}

......
总记录数:40319; 总页数:6720; 每页6 条; 首页 上一页 [347] [348] [349] [350] 351 [352] [353] [354] [355] [356]  下一页 尾页
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号