﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>博客园-我的程序员之路-最新评论</title><link>http://www.cnblogs.com/zhangsir/CommentsRSS.aspx</link><description>学无止境</description><language>zh-cn</language><pubDate>Fri, 25 Jul 2008 10:06:42 GMT</pubDate><lastBuildDate>Fri, 25 Jul 2008 10:06:42 GMT</lastBuildDate><generator>cnblogs</generator><item><title>re: js实现web中拖拽出矩形</title><link>http://www.cnblogs.com/zhangsir/archive/2008/07/19/1092522.html#1261195</link><dc:creator>zhangsir</dc:creator><author>zhangsir</author><pubDate>Sat, 19 Jul 2008 10:12:14 GMT</pubDate><guid>http://www.cnblogs.com/zhangsir/archive/2008/07/19/1092522.html#1261195</guid><description><![CDATA[下面这个例子对你有帮助：<br/><br/>&lt;!doctype html public &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;" target="_new">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;</a><br/><br/>&lt;html xmlns=&quot;<a href="http://www.w3.org/1999/xhtml&quot;" target="_new">http://www.w3.org/1999/xhtml&quot;</a> lang=&quot;gb2312&quot;&gt;<br/><br/>&lt;head&gt;<br/><br/>&lt;title&gt; 代码实例：拖动对象 Drag Object (兼容:IE、Firefox、Opera ... )&lt;/title&gt;<br/><br/>&lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=gb2312&quot; /&gt;<br/><br/>&lt;meta name=&quot;keywords&quot; content=&quot;代码实例：拖动对象&quot;&gt;<br/><br/>&lt;meta name=&quot;description&quot; content=&quot;最简短的拖动对象代码实例演示&quot;&gt;<br/><br/>&lt;style&gt;<br/><br/>.dragAble {position:relative;cursor:move;}<br/><br/>&lt;/style&gt;<br/><br/>&lt;script language=&quot;javascript&quot;&gt;<br/><br/>&lt;!--<br/><br/>var ie=document.all;<br/><br/>var nn6=document.getElementById&amp;&amp;!document.all;<br/><br/>var isdrag=false;<br/><br/>var y,x;<br/><br/>var oDragObj;<br/><br/>　<br/><br/>function moveMouse(e) {<br/><br/>if (isdrag) {<br/><br/>oDragObj.style.top = (nn6 ? nTY + e.clientY - y : nTY + event.clientY - y)+&quot;px&quot;;<br/><br/>oDragObj.style.left = (nn6 ? nTX + e.clientX - x : nTX + event.clientX - x)+&quot;px&quot;;<br/><br/>return false;<br/><br/>}<br/><br/>}<br/><br/>　<br/><br/>function initDrag(e) {<br/><br/>var oDragHandle = nn6 ? e.target : event.srcElement;<br/><br/>var topElement = &quot;HTML&quot;;<br/><br/>while (oDragHandle.tagName != topElement &amp;&amp; oDragHandle.className != &quot;dragAble&quot;) {<br/><br/>oDragHandle = nn6 ? oDragHandle.parentNode : oDragHandle.parentElement;<br/><br/>}<br/><br/>if (oDragHandle.className==&quot;dragAble&quot;) {<br/><br/>isdrag = true;<br/><br/>oDragObj = oDragHandle;<br/><br/>nTY = parseInt(oDragObj.style.top+0);<br/><br/>y = nn6 ? e.clientY : event.clientY;<br/><br/>nTX = parseInt(oDragObj.style.left+0);<br/><br/>x = nn6 ? e.clientX : event.clientX;<br/><br/>document.onmousemove=moveMouse;<br/><br/>return false;<br/><br/>}<br/><br/>}<br/><br/>document.onmousedown=initDrag;<br/><br/>document.onmouseup=new Function(&quot;isdrag=false&quot;);<br/><br/>//--&gt;<br/><br/>&lt;/script&gt;<br/><br/>&lt;/head&gt;<br/><br/>&lt;body&gt;<br/><br/>&lt;img src=&quot;<a href="<a href="<a href="http://www.iecn.net/images/user_icons/2006/10/01/u_35653.gif&quot;" target="_new">http://www.iecn.net/images/user_icons/2006/10/01/u_35653.gif&quot;</a>" target="_new"><a href="http://www.iecn.net/images/user_icons/2006/10/01/u_35653.gif&quot;" target="_new">http://www.iecn.net/images/user_icons/2006/10/01/u_35653.gif&quot;</a></a>" target="_new"><a href="<a href="http://www.iecn.net/images/user_icons/2006/10/01/u_35653.gif&quot;" target="_new">http://www.iecn.net/images/user_icons/2006/10/01/u_35653.gif&quot;</a>" target="_new"><a href="http://www.iecn.net/images/user_icons/2006/10/01/u_35653.gif&quot;" target="_new">http://www.iecn.net/images/user_icons/2006/10/01/u_35653.gif&quot;</a></a></a> class=&quot;dragAble&quot; / onclick=&quot;javascript:window.open(this.src);&quot; style=&quot;cursor: pointer&quot; alt=&quot;点此在新窗口浏览图片&quot; onmousewheel=&quot;return bbimg(this)&quot; onload=&quot;javascript:resizepic(this)&quot;&gt;<br/><br/>&lt;img src=&quot;<a href="<a href="<a href="http://www.iecn.net/images/user_icons/2006/10/01/u_35653.gif&quot;" target="_new">http://www.iecn.net/images/user_icons/2006/10/01/u_35653.gif&quot;</a>" target="_new"><a href="http://www.iecn.net/images/user_icons/2006/10/01/u_35653.gif&quot;" target="_new">http://www.iecn.net/images/user_icons/2006/10/01/u_35653.gif&quot;</a></a>" target="_new"><a href="<a href="http://www.iecn.net/images/user_icons/2006/10/01/u_35653.gif&quot;" target="_new">http://www.iecn.net/images/user_icons/2006/10/01/u_35653.gif&quot;</a>" target="_new"><a href="http://www.iecn.net/images/user_icons/2006/10/01/u_35653.gif&quot;" target="_new">http://www.iecn.net/images/user_icons/2006/10/01/u_35653.gif&quot;</a></a></a> class=&quot;dragAble&quot; / onclick=&quot;javascript:window.open(this.src);&quot; style=&quot;cursor: pointer&quot; alt=&quot;点此在新窗口浏览图片&quot; onmousewheel=&quot;return bbimg(this)&quot; onload=&quot;javascript:resizepic(this)&quot;&gt;<br/><br/>&lt;img src=&quot;<a href="<a href="<a href="http://www.iecn.net/images/user_icons/2006/10/01/u_35653.gif&quot;" target="_new">http://www.iecn.net/images/user_icons/2006/10/01/u_35653.gif&quot;</a>" target="_new"><a href="http://www.iecn.net/images/user_icons/2006/10/01/u_35653.gif&quot;" target="_new">http://www.iecn.net/images/user_icons/2006/10/01/u_35653.gif&quot;</a></a>" target="_new"><a href="<a href="http://www.iecn.net/images/user_icons/2006/10/01/u_35653.gif&quot;" target="_new">http://www.iecn.net/images/user_icons/2006/10/01/u_35653.gif&quot;</a>" target="_new"><a href="http://www.iecn.net/images/user_icons/2006/10/01/u_35653.gif&quot;" target="_new">http://www.iecn.net/images/user_icons/2006/10/01/u_35653.gif&quot;</a></a></a> class=&quot;dragAble&quot; / onclick=&quot;javascript:window.open(this.src);&quot; style=&quot;cursor: pointer&quot; alt=&quot;点此在新窗口浏览图片&quot; onmousewheel=&quot;return bbimg(this)&quot; onload=&quot;javascript:resizepic(this)&quot;&gt;&lt;br /&gt;&lt;br /&gt;<br/><br/>&lt;div style=&quot;border:1px solid #ff6d00;background:#ffd801;width:240px;padding:5px 0;&quot; class=&quot;dragAble&quot;&gt;这些都是可拖动对象&lt;/div&gt;<br/><br/>&lt;/body&gt;<br/><br/>　<br/><br/>　<br/><br/>&lt;/html&gt;<br/><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/zhangsir/" target="_blank">zhangsir</a> 2008-07-19 18:12 <a href="http://www.cnblogs.com/zhangsir/archive/2008/07/19/1092522.html#1261195#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 放一段选取treeview控件生成树形菜单复选框所有子节点的js代码</title><link>http://www.cnblogs.com/zhangsir/archive/2008/07/15/1170206.html#1255136</link><dc:creator>orangeirene</dc:creator><author>orangeirene</author><pubDate>Tue, 15 Jul 2008 03:30:30 GMT</pubDate><guid>http://www.cnblogs.com/zhangsir/archive/2008/07/15/1170206.html#1255136</guid><description><![CDATA[这段代码太棒了，强顶~~~~~~~谢谢~~~~~<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/zhangsir/" target="_blank">orangeirene</a> 2008-07-15 11:30 <a href="http://www.cnblogs.com/zhangsir/archive/2008/07/15/1170206.html#1255136#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: js实现web中拖拽出矩形</title><link>http://www.cnblogs.com/zhangsir/archive/2008/06/13/1092522.html#1225124</link><dc:creator>reaper</dc:creator><author>reaper</author><pubDate>Fri, 13 Jun 2008 08:26:53 GMT</pubDate><guid>http://www.cnblogs.com/zhangsir/archive/2008/06/13/1092522.html#1225124</guid><description><![CDATA[如何让拖拽出矩形在FIREFOX下工作呀<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/zhangsir/" target="_blank">reaper</a> 2008-06-13 16:26 <a href="http://www.cnblogs.com/zhangsir/archive/2008/06/13/1092522.html#1225124#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 防范qurestring方式的sql注入的一个方法</title><link>http://www.cnblogs.com/zhangsir/archive/2008/05/07/1186847.html#1186854</link><dc:creator>丁学</dc:creator><author>丁学</author><pubDate>Wed, 07 May 2008 06:33:00 GMT</pubDate><guid>http://www.cnblogs.com/zhangsir/archive/2008/05/07/1186847.html#1186854</guid><description><![CDATA[其实只要把空格全部过滤掉，就算是大罗神仙，也救不了他<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/zhangsir/" target="_blank">丁学</a> 2008-05-07 14:33 <a href="http://www.cnblogs.com/zhangsir/archive/2008/05/07/1186847.html#1186854#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 放一段选取treeview控件生成树形菜单复选框所有子节点的js代码</title><link>http://www.cnblogs.com/zhangsir/archive/2008/04/28/1170206.html#1175008</link><dc:creator>sasami</dc:creator><author>sasami</author><pubDate>Mon, 28 Apr 2008 10:33:00 GMT</pubDate><guid>http://www.cnblogs.com/zhangsir/archive/2008/04/28/1170206.html#1175008</guid><description><![CDATA[施主，，学海无涯，回头是岸。~~~~~~~~~~~~~~~<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/zhangsir/" target="_blank">sasami</a> 2008-04-28 18:33 <a href="http://www.cnblogs.com/zhangsir/archive/2008/04/28/1170206.html#1175008#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 放一个比较不错的flash缓动函数上来</title><link>http://www.cnblogs.com/zhangsir/archive/2008/04/07/1128232.html#1139989</link><dc:creator>zhangsir</dc:creator><author>zhangsir</author><pubDate>Mon, 07 Apr 2008 02:43:00 GMT</pubDate><guid>http://www.cnblogs.com/zhangsir/archive/2008/04/07/1128232.html#1139989</guid><description><![CDATA[sp 可以理解为缓动系数，类似于阻尼系数，值在0---1之间，可以调整大小观看效果。<br>tx是移动目标点的x坐标，ty是移动目标点的y坐标。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/zhangsir/" target="_blank">zhangsir</a> 2008-04-07 10:43 <a href="http://www.cnblogs.com/zhangsir/archive/2008/04/07/1128232.html#1139989#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 放一个比较不错的flash缓动函数上来</title><link>http://www.cnblogs.com/zhangsir/archive/2008/04/06/1128232.html#1139150</link><dc:creator>flash蔡鸟</dc:creator><author>flash蔡鸟</author><pubDate>Sun, 06 Apr 2008 06:25:00 GMT</pubDate><guid>http://www.cnblogs.com/zhangsir/archive/2008/04/06/1128232.html#1139150</guid><description><![CDATA[sp, tx,ty代表什么<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/zhangsir/" target="_blank">flash蔡鸟</a> 2008-04-06 14:25 <a href="http://www.cnblogs.com/zhangsir/archive/2008/04/06/1128232.html#1139150#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 放一个比较不错的flash缓动函数上来</title><link>http://www.cnblogs.com/zhangsir/archive/2008/04/06/1128232.html#1139148</link><dc:creator>flash蔡鸟</dc:creator><author>flash蔡鸟</author><pubDate>Sun, 06 Apr 2008 06:25:00 GMT</pubDate><guid>http://www.cnblogs.com/zhangsir/archive/2008/04/06/1128232.html#1139148</guid><description><![CDATA[请问sp, tx,ty各代表什么呢？？---求教<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/zhangsir/" target="_blank">flash蔡鸟</a> 2008-04-06 14:25 <a href="http://www.cnblogs.com/zhangsir/archive/2008/04/06/1128232.html#1139148#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: c# : 关于代码分离页  代码页面中的 Partial 详解！</title><link>http://www.cnblogs.com/zhangsir/archive/2007/12/14/980862.html#995190</link><dc:creator>叶儿轻飞</dc:creator><author>叶儿轻飞</author><pubDate>Fri, 14 Dec 2007 08:48:00 GMT</pubDate><guid>http://www.cnblogs.com/zhangsir/archive/2007/12/14/980862.html#995190</guid><description><![CDATA[学习！<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/zhangsir/" target="_blank">叶儿轻飞</a> 2007-12-14 16:48 <a href="http://www.cnblogs.com/zhangsir/archive/2007/12/14/980862.html#995190#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>