pinyi 的个人资料MoW照片日志列表更多 工具 帮助

日志


9月6日

Java Plug-in Fatal Error:

昨天乱卸咚咚又卸出error来了。。。
The Java Runtime Environment cannot be loaded from <\bin\server\jvm.dll>
 
 
Just delete the following directory:
C:\Documents and Settings\<user name>\Application Data\Sun

After deleting the directory, the Java Plug-in works again.

 
4月11日

隐藏鼠标右键

oncontextmenu="return false"

4月1日

excel的生成,print friendly version

在vb最开始加一句就好了:

Response.ContentType = "application/vnd.ms-excel"

以前偶还去写个新的excel file的,晕,今天才知道

3月10日

opener

window.opener.parent.location.href="../...asp"

这句code很实用的说,比用target,action好多了,解决了同时开几个browser乱redirect的问题~~~

1月10日

Enlarge your Hotmail account to 250 MB

This method makes your inbox 25 mb at the first step and in a month or so, it's supposed to become 250 mb. So here's the step-by-step procedure for the - well, not anymore - unlucky non-US hotmail users:

1. Sign in to your hotmail account and change your personal profile in the Options as following:

Country: United States
State: Florida (choose another state if you want - http://www.50states.com/
Zip Code: 33332 (choose another zip code if you want. -
http://www.downloadzipcode.com/

Needless to say, you need to enter the zip code that belongs to the state you've chosen.

2. Then get to the Language options and make it English if it's not.

3. If you don't want to lose your Inbox, click Put in folder. From the menu, choose New Folder. Create your new folder and go back to your Inbox. Select the emails that you do not lose and click Put in folder once more. Choose the folder you have just created and the emails you have chosen will be moved to that folder. You can move them to your Inbox again later by the same method.

4. Before signing out, paste the link below into the address bar and click "Close my account". Thus your account will be deactivated.

http://by17fd.bay17.hotmail.msn.com/cgi-bin/Accountclose

5. Now visit the address http://www.hotmail.com again. Enter your username and password. The activation page will load. Activate your mail account.

6. You're done ! Now your mail account capacity has grown to 25 MB and in a month or so it will be 250 MB. Enjoy your "enlarged" hotmail account!

Source: Extreme Gmail Forums
1月7日

window.open

window.open ('page.html', 'newwindow', 'height=100, width=400, top=0,left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no,status=no')

p.s.

用单引号和双引号都可以,只是不要混用。

window.open 弹出新窗口的命令;
'page.html' 弹出窗口的文件名;
'newwindow' 弹出窗口的名字(不是文件名),非必须,可用空''代替;
height=100 窗口高度;
width=400 窗口宽度;
top=0 窗口距离屏幕上方的象素值;
left=0 窗口距离屏幕左侧的象素值;
toolbar=no 是否显示工具栏,yes为显示;
menubar,scrollbars 表示菜单栏和滚动栏。
resizable=no 是否允许改变窗口大小,yes为允许;
location=no 是否显示地址栏,yes为允许;
status=no 是否显示状态栏内的信息(通常是文件已经打开),yes为允许;

保护你的ASP页面的两种办法

有时候你只想让人们从你的站点来访问你的某些页面, 而不允许他们从其它站点的非法链接中到达这些页面
< %
if left(Request.ServerVariables("HTTP_REFERER"),24)
<> "http://www.yoursite.com/" and _
Request.ServerVariables("HTTP_REFERER") <> "" then

'We used Request.ServerVariables to get the domain name
'of the referring web page.

'If the domain name doesn't equal my domain name, then
'I want to send the user to some other site
Response.Redirect "http://www.yahoo.com"

end if
% >


第二种办法是利用IP地址来判断用户访问的合法性,当你没有域名时,
用这种办法来进行在线测试是再方便不过的.
在你的ASP页面顶部加上这些代码:

< %
if Request.ServerVariables("REMOTE_HOST") <> "195.161.73.13" and _
Request.ServerVariables("REMOTE_HOST") <> "" then

'Send them away, if you like
Response.Redirect "http://www.yahoo.com"

end if
% >

12月28日

留言版/表格避免沒斷行文字破壞 -終極版

◆很多人在留言板看過因為訪客輸入較長的英文或連續符號,表格隨著文字變寬,就破壞了版面美觀,這個CSS語法可以避免這樣的情形,不過記得表格(table及td)的寬度要設正確啦!不然加了可能更糟。
◇複製語法貼於<head></head>標籤之間

<style type="text/css">
<!--
table,td {table-layout:fixed;word-wrap:break-word;word-break:break-all}
-->
</style>

使用在單一表格時,請在<table>或<td>加上

style="table-layout:fixed;word-wrap:break-word;word-break:break-all"

例:<table width=150 style="table-layout:fixed;word-wrap:break-word;word-break:break-all">

 

      ---from http://blog.blueshop.com.tw/petlife/