http://www.google.com/calendar/render?pli=1
解决方案 »
- javascript判断文件大小的一个问题(image.dynsrc)
- js obj.attachEvent() 怎么样添加参数 急~~~~
- 平行符号在ie7的显示问题
- 各位大哥救命啊~!!在线等答案!~~~
- 请问这段javascript代码什么意思??表格导入word!!
- 共有四个复选框,当有两个选中,在点击第三个时,提示只能选两个。怎么实现?
- 输入某一天,求出这一天是一年中的第几周的问题,各位看看!
- 应该是个简单的问题吧。谢谢了。
- 今天又加一级,散个代码(rainbow text)
- 如何能让图片在放大缩小之间来回切换???
- javascript 表单中checkbox全选
- 为什么老是提示这样一句话?
csdn 的简历确实如此,但不知还有什么其它的,多一些参考更好?
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> - http://www.never-online.net </title>
<meta http-equiv="ImageToolbar" content="no" />
<meta name="author" content="never-online, BlueDestiny"/>
<meta name="keywords" content="never modules, Mozilla CSS, C#, .net, Reference, BlueDestiny, never-online"/>
<meta name="description" content="javascript reference, c sharp artilces"/>
<meta name="creator.name" content="never-online, BlueDestiny" />
<style type="text/css" media="all" title="Default">
* { font-size:10pt; font-family:Arial; }
#myDiv { background-color:appworkspace; width:200px; height:100px; color:#fff; text-align:center; }
</style>
</head> <body id="www.never-online.net">
<div align="center"><div id="myDiv">Easy to write the dray code, <br/>this is a simple demo, <br/>by never-online,<br/> http://www.never-online.net</div></div>
<script type="text/javascript">
//<![CDATA[
var getAbsolute = function (e) {
var width = e.offsetWidth;
var height = e.offsetHeight;
var left = e.offsetLeft;
var top = e.offsetTop;
while (e=e.offsetParent) {
left += e.offsetLeft;
top += e.offsetTop;
}
var right = left+width;
var bottom = top+height;
return {
'width': width,
'height': height,
'left': left,
'top': top,
'right': right,
'bottom': bottom
}
}; /* Kernel code, drag div change the coords */
/* by never-online, http://www.never-online.net */ var wrapId = "myDiv"; var wrap = document.getElementById(wrapId);
wrap.onmouseover = function () {
wrap.style.cursor = "se-resize";
document.onmousedown = function (evt) {
/* save the original coordinates */
evt = window.event||evt; var a=getAbsolute(wrap);
wrap.cx=evt.clientX-a.width; wrap.cy=evt.clientY-a.height;
document.onmousemove = function (evt) {
/* change the coords when mouse is moveing */
evt = window.event||evt; try {
wrap.style.width = (evt.clientX-wrap.cx)+"px";
wrap.style.height = (evt.clientY-wrap.cy)+"px";
} catch (ex) {};
};
document.onmouseup = function () {
/* drag end release the event */
document.onmousemove = null;
document.onmouseup = null;
wrap.style.cursor="default";
};
};
} //]]>
</script>
</body>
</html>
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> - http://www.never-online.net </title>
<meta http-equiv="ImageToolbar" content="no" />
<meta name="author" content="never-online, BlueDestiny"/>
<meta name="keywords" content="never modules, Mozilla CSS, C#, .net, Reference, BlueDestiny, never-online"/>
<meta name="description" content="javascript reference, c sharp artilces"/>
<meta name="creator.name" content="never-online, BlueDestiny" />
<style type="text/css" media="all" title="Default">
* { font-size:10pt; font-family:Arial; }
#myDiv { background-color:appworkspace; width:200px; height:100px; color:#fff; text-align:center; }
</style>
</head> <body id="www.never-online.net">
<div id="myDiv">Easy to write the dray code, <br/>this is a simple demo, <br/>by never-online,<br/> http://www.never-online.net</div>
<script type="text/javascript">
//<![CDATA[
var getAbsolute = function (e) {
var width = e.offsetWidth;
var height = e.offsetHeight;
var left = e.offsetLeft;
var top = e.offsetTop;
while (e=e.offsetParent) {
left += e.offsetLeft;
top += e.offsetTop;
}
var right = left+width;
var bottom = top+height;
return {
'width': width,
'height': height,
'left': left,
'top': top,
'right': right,
'bottom': bottom
}
}; /* Kernel code, drag div change the coords */
/* by never-online, http://www.never-online.net */ var wrapId = "myDiv"; var wrap = document.getElementById(wrapId);
wrap.onmouseover = function () {
wrap.style.cursor = "se-resize";
document.onmousedown = function (evt) {
/* save the original coordinates */
evt = window.event||evt; var a=getAbsolute(wrap);
wrap.cx=evt.clientX-a.width; wrap.cy=evt.clientY-a.height;
document.onmousemove = function (evt) {
/* change the coords when mouse is moveing */
evt = window.event||evt; try {
wrap.style.width = (evt.clientX-wrap.cx)+"px";
wrap.style.height = (evt.clientY-wrap.cy)+"px";
} catch (ex) {};
};
document.onmouseup = function () {
/* drag end release the event */
document.onmousedown = null;
document.onmousemove = null;
document.onmouseup = null;
wrap.style.cursor="default";
};
};
} //]]>
</script>
</body>
</html>