Archive for 八月, 2006

消息:feedsky flash动感统计升级+发布动感flash统计源代码!!

刚刚对flash动感统计系统进行了升级
在自动按数据个数适应宽度的基础上加入了最小宽度的限制
添加滚动控制来查看溢出的部分
添加绚丽样式 紫色 和 蓝色(鼠标移动到右侧的flash统计图可以查看鼠标移动的效果)
开启对0.0.2版的源代码下载 http://www.feedsky.com/flash/feedstatview.0.0.2.fla
相关文章
 技巧:添加动感flash统计-我的花样边边2
 动感feed统计 –feedsky发布!



doc:安装blog系统 wordpress (一)

下载wp安装文件
个人版 http://wordpress.org/
多用户版 http://mu.wordpress.org/

标准版下载
http://wordpress.org/latest.zip
中文版 下载
WordPress 2.0.4 中文版
http://download.gna.org/wordpress-zh/WordPress%20%d6%f7%b3%cc%d0%f2/%b0%e6%b1%be%202.0.x/wordpress_2.0.4_zh_CN.zip
多用户版下载
wordpressmu-1.0-rc4.tar.gz
http://blogs.linux.ie/download/wpmu/wordpressmu-1.0-rc4.tar.gz

安装个人版 使用 XAMPP (apache mysql php perl ) for winxp

安装环境
下载 xampp/download.php?xampp-win32-1.5.3a-installer.exe

http://www.apachefriends.org/en/xampp.html\n

下载install版本 然后安装就可以了
安装wordpress
解压wordpress 到 xampp安装目录下的htdocs目录中
访问http://localhost/wordpress/
按照提示就可以安装了
需要使用phpmyadmin安装一个wp的数据库和操作用户wp

安装多用户版
解压wordpressmu到你想要的目录 如 d:/wordpressmu
\n修改apache/conf/httpd.conf 文件 增加域名映射

NameVirtualHost *:80

<VirtualHost *:80>
ServerName *
DocumentRoot “d:/Program Files/xampp/htdocs”
</VirtualHost>
<VirtualHost *:80>\n
ServerName test.com
ServerAlias *.test.com
DocumentRoot “d:/wordpressmu”
ErrorLog logs/wordpressmu.error.log
CustomLog logs/wordpressmu.access.log combined\n
<Directory “d:/wordpressmu”>
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

假冒的dns映射
host 文件 C:\WINDOWS\system32\drivers\etc\n
127.0.0.1 test.com

访问test.com 按照提示安装即可
mail有些问题 先到这里了

“,1] ); //–> http://www.apachefriends.org/download.php?xampp-win32-1.5.3a-installer.exe
http://www.apachefriends.org/en/xampp.html
下载install版本 然后安装就可以了
安装wordpress
解压wordpress 到 xampp安装目录下的htdocs目录中
访问http://localhost/wordpress/
按照提示就可以安装了
需要使用phpmyadmin安装一个wp的数据库和操作用户wp

安装多用户版
解压wordpressmu到你想要的目录 如 d:/wordpressmu
修改apache/conf/httpd.conf 文件 增加域名映射

NameVirtualHost *:80

〈VirtualHost *:80〉
ServerName *
DocumentRoot “d:/Program Files/xampp/htdocs”
〈/VirtualHost〉
〈VirtualHost *:80〉
ServerName test.com
ServerAlias *.test.com
DocumentRoot “d:/wordpressmu”
ErrorLog logs/wordpressmu.error.log
CustomLog logs/wordpressmu.access.log combined
〈Directory “d:/wordpressmu”〉
AllowOverride None
Options None
Order allow,deny
Allow from all
〈/Directory〉
〈/VirtualHost〉

假冒的dns映射
host 文件 C:\WINDOWS\system32\drivers\etc
127.0.0.1 test.com

访问test.com 按照提示安装即可
mail有些问题 先到这里了


郁闷:让我疯狂的js,竟然没有经过我的允许就改变我的图片的大小2

终于解决了,看了一下午的js资料发现原来解决问题只需要仔细的想想 然后修改一点点就好了
function autoSetImgSize(elemId, percent) {
if (navigator.userAgent.toLowerCase().indexOf(“ie”) > -1){
return autoSetImgSize_IE(elemId, 600);
}
var doc = document;
if( elemId != null && elemId !=”") {
try {
doc = doc.getElementById(elemId);
}catch (e1) {
doc = document;
}
}
if( percent == null || percent ==”" )
percent = “90%”;
var items = doc.getElementsByTagName(“img”);
for( var k = 0; k w1){
items[k].style.width = w1;
}else{
items[k].height = items[k].height * (w2/w1);
}
}
}
function autoSetImgSize_IE(elemId, max_width) {
var doc = document;
if( elemId != null && elemId !=”") {
try {
doc = doc.getElementById(elemId);
}catch (e1) {
doc = document;
}
}
if( max_width== null || max_width==”" )
max_width=400;
var items = doc.getElementsByTagName(“img”);
t=false;
for( var k = 0; k max_width){
items[k].width=max_width;
if(items[k].height)
items[k].height = items[k].height * (max_width/w1);
}
}
}
if(t){
setTimeout(“autoSetImgSize_IE()”, 100);
}
}

结合波波的代码对ie部分做了点修改

原来ie在加载图片时可能会有点延迟 还有对%有点问题(不知道参照物) 先这样吧!


郁闷:让我疯狂的js,竟然没有经过我的允许就改变我的图片的大小

让我疯狂的js,竟然没有经过我的允许就改变我的图片的大小

错误效果

_decorate(_ge(‘photo_notes’), _ge(‘photoImgDiv208838435′), 208838435, ‘http://static.flickr.com/71/208838435_7f9bf45059_t.jpg’, ’1.5′);

js 将图片错误的进行了拉伸

原图

让我看看我的feed上是否错误依旧。


Copyright © 1996-2010 飞扬轻狂's blog. All rights reserved.
iDream theme by Templates Next | Powered by WordPress