文字遇到图片行高失效解决方案
[ 2011-05-27 16:13:46 | 作者: admin ]
<style type="text/css">
<!--
#title {
font-size: 12px;
line-height: 26px;
}
#title a{zoom:1;} /*(关键) */
-->
</style>
<!--
#title {
font-size: 12px;
line-height: 26px;
}
#title a{zoom:1;} /*(关键) */
-->
</style>
nginx for windows之反向代理
[ 2011-05-27 12:30:24 | 作者: admin ]
1.编辑C:\nginx\conf\nginx.conf
添加修改以下内容:
#user nobody;
worker_processes 1;
error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
pid logs/nginx.pid;
events {
worker_connections 64;
}
http {
include mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] $request '
...
阅读全文…
添加修改以下内容:
#user nobody;
worker_processes 1;
error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
pid logs/nginx.pid;
events {
worker_connections 64;
}
http {
include mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] $request '
...
阅读全文…
一个php水印函数,支持文字和png水印图片
[ 2011-05-25 09:42:50 | 作者: admin ]
ps:使用方法很简单
将水印图片放到执行文件的目录下面,然后赋值各个参数即可,以图片水印为例
阅读全文…
将水印图片放到执行文件的目录下面,然后赋值各个参数即可,以图片水印为例
$imgSrc = “e:/obj.jpg”;
$markImg = "e:/mark.png";
$markText = "";
$TextColor = "";
$markPos = 9; //右下
$fontType = "";
$markType = "img"; //文字水印text或者图片水印img
setWater($imgSrc,$markImg,$markText,$TextColor,$markPos,$fontType,$markType)
$markImg = "e:/mark.png";
$markText = "";
$TextColor = "";
$markPos = 9; //右下
$fontType = "";
$markType = "img"; //文字水印text或者图片水印img
setWater($imgSrc,$markImg,$markText,$TextColor,$markPos,$fontType,$markType)
function setWater($imgSrc,$markImg,$markText,$TextColor,$markPos,$fontType,$markType)
...阅读全文…
遇到一个问题,onsubmit和onclick都失效了
[ 2011-05-23 17:33:02 | 作者: admin ]
本来onsubmit中用chkform()来做表单提交前的js检查,突然发现不对了,怎么改都会提交上去。
后来才发现时修改了 form1到formMember,而有一处地方没有改,导致错误
if( formMember.loginpassword2.value!=form1.loginpassword.value ) msg+="2次密码输入不一致\n";
后来才发现时修改了 form1到formMember,而有一处地方没有改,导致错误
if( formMember.loginpassword2.value!=form1.loginpassword.value ) msg+="2次密码输入不一致\n";
查找与删除重复的记录
[ 2011-05-20 17:04:27 | 作者: admin ]
//查找重复的记录
SELECT `loginname` , count( `loginname` ) AS num
FROM nth_member
GROUP BY loginname
ORDER BY num DESC
//删除重复的记录
DELETE nth_member AS a FROM nth_member AS a,
(
SELECT *
FROM nth_member
GROUP BY `loginname`
HAVING count( 1 ) >1
) AS b
WHERE a.loginname = b.loginname
AND a.id > b.id
SELECT `loginname` , count( `loginname` ) AS num
FROM nth_member
GROUP BY loginname
ORDER BY num DESC
//删除重复的记录
DELETE nth_member AS a FROM nth_member AS a,
(
SELECT *
FROM nth_member
GROUP BY `loginname`
HAVING count( 1 ) >1
) AS b
WHERE a.loginname = b.loginname
AND a.id > b.id
让fireFox支持innerText的方法
[ 2011-05-13 12:54:50 | 作者: admin ]
在head中加入下面的js代码,可以让fireFox支持innerText的方法
阅读全文…
function isIE(){ //ie?
if (window.navigator.userAgent.toLowerCase().indexOf("msie")>=1)
return true;
else
return false;
}
if(!isIE()){ //firefox innerText define
HTMLElement.prototype.__defineGetter__( "innerText",
function(){
return this.textContent.replace(/(^\s*)|(\s*$)/g, "");
...if (window.navigator.userAgent.toLowerCase().indexOf("msie")>=1)
return true;
else
return false;
}
if(!isIE()){ //firefox innerText define
HTMLElement.prototype.__defineGetter__( "innerText",
function(){
return this.textContent.replace(/(^\s*)|(\s*$)/g, "");
阅读全文…
一些js & flash的 柱状图、饼图、走势图 解决方案
[ 2011-05-12 10:38:51 | 作者: admin ]
finger chart
http://www.riameeting.com/fingerchart/
open flash chart
演示:
http://teethgrinder.co.uk/open-flash-chart/
下载:
http://teethgrinder.co.uk/open-flash-chart/download.php
演示:
http://www.fusioncharts.com/Demos/Blueprint/
下载:
http://www.board4all.cz/showthread.php?t=144858
需要注册
演示:
http://www.maani.us/xml_charts/index.php?menu=Gallery
下载:
http://kenter1643.javaeye.com/blog/161083
...
阅读全文…
http://www.riameeting.com/fingerchart/
open flash chart
演示:
http://teethgrinder.co.uk/open-flash-chart/
下载:
http://teethgrinder.co.uk/open-flash-chart/download.php
演示:
http://www.fusioncharts.com/Demos/Blueprint/
下载:
http://www.board4all.cz/showthread.php?t=144858
需要注册
演示:
http://www.maani.us/xml_charts/index.php?menu=Gallery
下载:
http://kenter1643.javaeye.com/blog/161083
...
阅读全文…
window.open弹出窗口和iframe浮动框架操作父窗口参数
[ 2011-05-07 13:48:02 | 作者: admin ]
window.open弹出窗口
opener.document.getElementById("var52New").value
iframe浮动框架
parent.document.getElementById("var52New").value
opener.document.getElementById("var52New").value
iframe浮动框架
parent.document.getElementById("var52New").value