inicio mail me! sindicaci;ón

jQuery plugin

jQuery Right-click Plugin
$(“#selector”).rightClick( function(el) {// Do something});
http://abeautifulsite.net/notebook/68#download

ContextMenu plugin
右键菜单
http://www.trendskitchens.co.nz/jquery/contextmenu/

NiceJForms
表单美化
http://www.lexcat.ro/nicejforms/nicejforms.html

A Cool CSS Effect - Dashboard [Updated x2]

Ever want to alert your users to a really important message? Ever care to have some effect that looked like dasboard?

I wanted to do this for numerous sites so I finally I decided to scan the web for some resources. I didn’t find any real conclusive matches on Google. I mean what do you search for?

So, I started thinking about what we were actually doing and then finally I got code working. I’ll post the code and then briefly explain it. Here is a picture so you can get the idea of what it does, or you can simply go to my new website and click on either “About” or on “Contact.”

Dashboard CSS Effect

Add this to your css file or inside your “head” tags:

.darkenBackground {
background-color: rgb(0, 0, 0);
opacity: 0.7; /* Safari, Opera */
-moz-opacity:0.70; /* FireFox */
filter: alpha(opacity=70); /* IE */

z-index: 20;
height: 100%;
width: 100%;
background-repeat:repeat;
position:fixed;
top: 0px;
left: 0px;
}

Basically, this says set a style in CSS to have a black background, 70% transparent, filling the entire screen.

We then add this code anywhere inside our “body” tag:


This places our black box on the screen, and then the javascript hides it. We can then show it later on by putting this javascript in an event handler like onclick:

document.getElementsById(”darkBackgroundLayer”).style.display = “”;

This will show our darkened layer using javascript.

You can then use javascript to show a different window like the above code. This effect is really great and extremely useful in drawing the user’s attention.

I hope that helps you make some neat effects. Post in the comments if you have any interesting twists.

[Updated] One problem I have run into with this is that the dark black shade cuts off at the end of the browser window, meaning that if you scroll down the page, the effect does not continue. This has to do with how css repeats vertically. If any one knows a fix, please comment as well.

[Updated x2] Fixed the scrolling bug. Thanks to all the great comments. Also changed the opacity options so hopefully works on more browsers. Changes are in red. Thanks to digg, story is here.

Thanks

http://dbachrach.com/blog/2006/10/09/a-cool-css-effect-dashboard/

JavaScript Object Notation Support for .NET 2.0

JavaScript Object Notation, or JSON, is meant as a light weight alternative to XML when XML is just a bit heavy weight for what you are trying to achieve. Although JSON is not extensible, as it makes use of a fixed set of data types, it can be used to textually represent complex objects. JSON is a perfect data-interchange format when using technologies such as AJAX as your server side objects can be converted to JSON, sent to the client, evaluated in a client script and then manipulated to build dynamic adverts, menus etc.

http://www.codeproject.com/KB/recipes/JSON.aspx

Js lib

MessageBox Dialogs
http://www.extjs.com/deploy/dev/examples/message-box/msg-box.html

div图片垂直居中

   

日期时间正则表达式

^((((19|20)(([02468][048])|([13579][26]))-0?2-29))|((20[0-9][0-9])|(19[0-9][0-9]))-((((0?[1-9])|(1[0-2]))-((0?[1-9])|(1\d)|(2[0-8])))|((((0?[13578])|(1[02]))-31)|(((0?[1,3-9])|(1[0-2]))-(29|30)))))(\x20(0?[0-9]|1[0-9]|2[0-3])(:[0-5][0-9]){1,2})?$

总结一下自己的缺点

武断。
抱有做一天和尚撞一天钟的不肯面对残酷现实的心理想法。
喜欢质问他人。没有好脾气。冲动。

创建优美的页面滑动块效果 - Glider.js

本文转载自:http://5key.net/blog/index.php/2007/09/26/javascript-glider/ 

曾经看到http://www.panic.com/coda/ 上的滑动块,非常喜欢。可惜自己多JS了解不深,没法模拟出来。

早上发现Google code上的一个JsFrame - Glider.js。很容易的实现http://www.panic.com/coda/ 上的滑动块效果。
演示地址:http://5key.net/ex/glider
下载地址:http://5key.net/ex/glider/glider-0.0.3.rar

Google code上的项目地址:http://code.google.com/p/missingmethod-projects/
uploads/200709/26_102259_1.jpg

用户体验:新窗口还是原窗口

自从W3C的XHTML标准被我们了解了以来,这个问题便被讨论不断。
http://bbs.blueidea.com/thread-2452838-1-1.html

到底网页是在新窗口中打开好,还是在原窗口中打开?这个问题是要根据网站目标用户来决定的。

首先,总是使用_blank确实是会引起一些老资格互联网用户的讨厌,认为“被强奸了”,我没让你弹出新窗口,却非要弹出来,还制止不了。
如果不使用_blank,一些不懂使用右键>新窗口打开或是Ctrl+点击的用户又不干了,干嘛老是要我后退,甚至他根本不懂得后退。

我拥护W3C,但如果我看新闻时总是要我Ctrl的话我也是会受不了的——习惯总是很难被改变的。
于是便有人提出,可个性化的,如果你希望新窗口打开,便设置为新窗口打开,默认是遵循标准原窗口打开的。
可是,很多不懂右键或是Ctrl打开新窗口的人,根本是不会也不知道这是可以设置的,这个功能就如鸡肋了,怎么办?
最好的办法还是根据目标用户来决定。如果目标用户已经习惯了新窗口打开或是新窗口会便方便,还是默认为新窗口吧,提供一个设置不使用新窗口打开的功能给怕“被强奸了”的用户就好了(如Google中国)。反之亦然。

在PHP中使用IIS SMTP Service发送邮件

服务器环境为Windows2003+Apache2.2+PHP5。
最常采见的办法是使用免费邮件供应商的SMTP服务发送邮件,如126.com等。但经测试后发现这是不可行的,原因在于大多免费邮箱都会封杀或不允许频繁使用SMTP来发送邮件。
如果需要在本地服务器提供SMTP服务,最快捷的方法便是使用IIS自带的SMTP Service。
先在添加/删除Windows组件中将SMTP Service选上并安装。
测试SMTP正常后,修改php.ini
SMTP = localhost
smtp_port = 25
sendmail_from = 你的邮箱名称@你的域名.com
保存后重新启动Apache即可直接使用PHP的Mail函数来发送邮件。
需要说明的是,这样发出的邮件很可能会被归为“垃圾邮件”,一般原因是sendmail_from中“你的域名”的DNS MX记录与服务器IP不符。解决办法比较简单,将域名的MX记录指向服务器IP即可。

· Next entries »
Close
E-mail It