预览模式: 普通 | 列表

美女

美女,

Tags: 美女

分类:美图欣赏 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 3111

Javascript 如何实现对象的拖动?

 
解决思路
    这个效果并不算常见,通常用于游戏或个人站点中。因为拖曳是靠鼠标来操作的,所以对鼠标的位置的捕获是问题的重点,然后才是根据鼠标的位置设置层的位置。


具体步骤:
1.在对象(层)上按下鼠标时,先捕获到需要拖曳的对象,然后获取或设置该对象的相关属性。

obj=event.srcElement
obj.setCapture()
z=obj.style.zIndex
obj.style.zIndex=100
x=event.offsetX
y=event.offsetY
down=true

2.开始拖曳时,捕获鼠标当前位置,并根据该数值设置被拖曳对象的位置。

查看更多...

分类:Javascript | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 2954

有钱没钱来郑州吧.

如果你有钱就来郑州吧
去金水路边上买一套高高的宅子
看汽车的流水如何在你脚下淌过
打一辆7块钱以上的豪的
到纬一路的酒吧去喝一杯爱尔兰咖啡
和浑身散发着异国情调的亮妞们调情
把泡过啤酒的钞票帖在她们的大腿上
去丹尼斯或者裕达置办一身时尚的行头
路过经三路的时候
设想一下被里边的某个人邀请共进午餐的滋味
晚上到未来大厦去找一个希腊女郎
触摸一下古典的线条和温度


----------
如果你没有钱就来郑州吧
到小铺租一间没有窗户的小平房
坐公交28路1块钱就能到德化街
挑一栋最最气派的银行大楼
坐在不冷不热的大堂沙发上看大款们如何畏缩地进进出出
做一个自己当了大楼主人的黄粱梦
然后去银基服装市场批发一身时髦的假名牌
到未来花园附近去狩猎一个牵着名贵洋狗的孤独的富婆
设法向她炫耀你发达而性感的肌肉
或者到涉外宾馆去当一名侍者
外币小费和偶尔的跨国艳遇
随时都可能在一扇沉重的豪门后边向你张望

Tags: 郑州

分类:杂文烩萃 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 2766

2007经典词汇

1、詞汇量越來越少了 (破鞋的詞基本不用了)

2、社會複杂了,儿女都找不到親爹了

3、交通擁擠了,男女外出的次數增加了

4、房子越來越緊俏了,(單親家庭增多了)

5、男人的體格越來越虛弱了(都說和經濟一樣疲(車欠)了都陽盛陽衰了)

查看更多...

Tags: 2007 经典词汇

分类:杂文烩萃 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 3392

Javascript计算两个日期差

方法一

<script>  
  var   str   =   "2006-5-12";  
  var   re   =   /^(\d{4})\S(\d{1,2})\S(\d{1,2})$/;  
  var   dt;  
  if   (re.test(str))  
  {  
    dt   =   new   Date(RegExp.$1,RegExp.$2   -   1,RegExp.$3);  
  }  
  var dt2 = new Date();
  alert(Math.floor((dt2-dt)/(1000 * 60 * 60 * 24)));  
  </script>

 

原文 http://www.cnblogs.com/yesun/archive/2006/05/25/408993.html 

查看更多...

Tags: javascript 日期差 js日期天数差

分类:Javascript | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 9865

在asp.net中获得某月的天数

在asp.net中获得某月的天数
DateTime.DaysInMonth(2007,08)

取出当前年、月的天数  
  DateTime.DaysInMonth(DateTime.Now.Year,DateTime.Now.Month);
int   tianshu=DateTime.DaysInMonth(DateTime.Today.Year,DateTime.Today.Month);

资料收集整理by airzen 20070801

http://blog.csdn.net/airzen

http://www.haixiaIT.com

查看更多...

分类:Asp.Net | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 5460

javascript - parseInt 做两位日期月份转换整型时的一个问题(已经解决)

如题:想要得到这两个表达式的月份相差.

var startDate ="2007-07-01";

var endDate=="2007-08-01"

查看更多...

Tags: web开发(脚本和动态语言) 转换 月份 parseint

分类:Javascript | 固定链接 | 评论: 4 | 引用: 0 | 查看次数: 6266

互联网的未来是社区化

  尽管VC对Web2.0的投资热度正急速降温,但网络社区却日益火爆。随着三大门户、中国雅虎、腾讯、百度等互联网巨头纷纷加大社区的投入,网络社区化越来越受人关注。近日,有互联网专家预测分析认为,继门户和搜索之后,社区将是未来中国互联网的发展趋势。

查看更多...

Tags: 互联网

分类:IT咨讯 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 2619

[不错不错]常用的一些SQL语句

[不错不错]常用的一些SQL语句


1. 行列转换--普通

假设有张学生成绩表(CJ)如下
Name    Subject     Result
张三    语文        80
张三    数学        90
张三    物理        85
李四    语文        85
李四    数学        92
李四    物理        82

想变成   
姓名   语文   数学   物理
张三   80     90     85
李四   85     92     82

查看更多...

Tags: sql语句

分类:MS-SqlServer | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 2929

英文经典好文

  money is not everything. there‘s mastercard & visa.
  钞票不是万能的,有时还需要信用卡.
  one should love animals. they are so tasty.
  每个人都应该热爱动物,因为它们很好吃.
  save water. shower with your girlfriend.
  要节约用水,尽量和女友一起洗澡.
  love the neighbor. but don‘t get caught.
  要用心去爱你的邻居,不过不要让她的老公知道.
  behind every successful man, there is a woman. and behind every
  unsuccessful man, there are two.
  每个成功男人的背后,都有一个女人. 每个不成功男人的背后, 都有两个.
  every man should marry. after all, happiness is not the only thing in life.
  再快乐的单身汉迟早也会结婚,幸福不是永久的嘛.
  the wise never marry, and when they marry they become otherwise.
  聪明人都是未婚的,结婚的人很难再聪明起来.
  success is a relative term. it brings so many relatives.
  成功是一个相关名词,他会给你带来很多不相关的亲戚(联系).
  never put off the work till tomorrow what you can put off today.
  不要等明天交不上差再找借口, 今天就要找好.
  love is photogenic. it needs darkness to develop.
  爱情就象照片,需要大量的暗房时间来培养. (老外也保守,要摸黑办事,哈哈)
  children in backseats cause accidents. accidents in backseats cause children.
  后排座位上的小孩会生出意外, 后排座位上的意外会生出小孩.
  your future depends on your dreams. so go to sleep.
  现在的梦想决定着你的将来,所以还是再睡一会吧.
  there should be a better way to start a day than waking up every morning.
  应该有更好的方式开始新一天,而不是千篇一律的在每个上午都醒来.
  hard work never killed anybody. but why take the risk?
  努力工作不会导致死亡!不过我不会用自己去证明.
  work fascinates me. i can look at it for hours!
  工作好有意思耶!尤其是看着别人工作.
  god made relatives; thank god we can choose our friends.
  神决定了谁是你的亲戚,幸运的是在选择朋友方面他给了你留了余地.
  when two‘s company, three‘s the result!
  两个人的状态是不稳定的,三个人才是!
  a dress is like a barbed fence. it protects the premises without restricting the view.
  服饰就象铁丝网,它阻止你冒然行动但并不妨碍你尽情的观看.
  the more you learn, the more you know, the more you know, the more you forget. the more you forget, the less you know. so why bother to learn.
  学的越多,知道的越多, 知道的越多,忘记的越多, 忘记的越多,知道的越少,为什么学来着?!谁了解女人?
  the nice women are ugly.
  好女人不漂亮。
  the beautiful women are not nice.
  漂亮女人不好。
  the beautiful and nice women are general stupid.
  又漂亮又好的女人一般都很愚蠢。
  the beautiful, nice and clever women are married.
  又漂亮又好又不愚蠢的女人都结婚了。
  the women who are not so beautiful but are nice women are born in poverty.
  不是很漂亮但是很好的女人都出身贫寒。
  the women who are not so beautiful but are nice women born in noble think we areonly after their lordliness.
  不是很漂亮但是很好又出身高贵的女人会认为我们看上的是他们的权势。
  the beautiful women without lordliness are after our lordliness.
  而没有权势但是很漂亮的女人看上的是我们的权势。
  com the clever women, who are not so nice and somewhat beautiful don‘t think we are clever enough.
  不是很好但是很漂亮又很聪明的女人却嫌我们不够聪明。
  the women who think we are clever, that are nice, somewhat clever and have lordliness have a lot of pursuers.
  又好又聪明又出身高贵又觉得我们聪明的女人都有很多追求者。
  the women who are somewhat beautiful, somewhat nice and have some lordliness and thank god are clever are always maintain many candidates!!!!!
  又好又漂亮又出身高贵而且又聪明的女人总是脚踩几条船。
  the women who always maintain many candidates, automatically complain us when westand off them.
  那些脚踩几条船的女人一旦我们疏远她们就对我们充满怨言抱怨。
  now,who in the hell understands women?
  现在,到底有谁了解女人这东西?

Tags: 英文,经典好文

分类:杂文烩萃 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 2665