易截截图软件、单文件、免安装、纯绿色、仅160KB

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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>JavaScript模块随意拖动</title>
 <style type="text/css">
 html{
  width:100%;
  overflow-x:hidden;
 }
 body{
  font-family: Trebuchet MS, Lucida Sans Unicode, Arial, sans-serif;
  width:100%;
  margin:0px;
  padding:0px;
  text-align:center;
  background-color:#E2EBED; 
  font-size:0.7em; 
  overflow-x:hidden;
 }
  
 #mainContainer{
  width:600px;
  margin:0 auto;
  text-align:left;
  background-color:#FFF;
 }
 h4{
  margin:0px;
 }
 p{
  margin-top:5px;
 }
 #dragableElementsParentBox{
  padding:10px;
 }
 
 .smallArticle,.bigArticle{
  float:left;
  border:1px solid #000;
  background-color:#DDD;
  padding:2px;
  margin-right:10px;
  margin-bottom:5px;
 }
 .smallArticle img,.bigArticle img{
  float:left;
  padding:5px;
 }
 .smallArticle .rightImage,.bigArticle .rightImage{
  float:right;
 }
 .smallArticle{
  width:274px;  
 }
 .bigArticle{
  width:564px;
 }
 .clear{
  clear:both;
 }
 
 #rectangle{
  float:left;
  border:1px dotted #F00;
  background-color:#FFF;
 }
 #insertionMarker{
  width:6px;
  position:absolute;
  display:none;
 }
 #insertionMarker img{
  float:left


相关文档:

JavaScript 获取对象的高度和宽度详细说明

scrollHeight: 获取对象的滚动高度。
scrollLeft:设置或获取位于对象左边界和窗口中目前可见内容的最左端之间的距离
scrollTop:设置或获取位于对象最顶端和窗口中可见内容的最顶端之间的距离
scrollWidth:获取对象的滚动宽度
offsetHeight:获取对象相对于版面或由父坐标 offsetParent 属性指定的父坐标的高度
offsetL ......

javascript中createTextRange用法

<script language="javascript">
function test()
{
var rng=document.body.createTextRange();
alert(rng.text)
}
function test1()
{
var rng=document.body.createTextRange();
alert(rng.htmlText)
}
</script>
<input type="button" onclick="test()"& ......

动态添加表格一行(javascript)

<%&#64; page language="java" import="java.util.*,com.page.wash.giveclothing.*" pageEncoding="gbk"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>添加表格信息</title>
<meta http-equiv="pragma" content="no-c ......

javascript除去数组中的重复元素【转】

 function unique(data){debugger;
    data = data || [];  
       var a = {};  
    for (var i=0; i<data.length; i++) {  
        var v = data[i];  
......

几个不错的JavaScript跨平台图表库

1. timeplot
地址:http://www.simile-widgets.org/timeplot/
下载:http://code.google.com/p/simile-widgets/downloads/list
2.flot
是一个jquery插件,效果不错。
地址:http://code.google.com/p/flot/
3.Highcharts
地址:http://www.highcharts.com/
好像只对个人免费。
......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号