2009年12月29日 星期二

[ajax]ajax之家-ajax技術、資源 demo 及下載

ajax 之家提供 ajax 和 jQuery 的技術、資源和實例 demo 及下載。



網址:http://www.ajaxa.cn/article/

2009年12月23日 星期三

[jQuery]IxEdit-讓人驚豔的所見即所得的 jQuery 設計工具

有一陣子沒在網路上尋找有關 jQuery 的資訊了,今天讓我發現了一個讓人驚豔又好用的 jQuery 工具 IxEdit,看 demo 影片的介紹,IxEdit 可以很直覺的用點選的方式完成你想用 jQuery 來完成的動態效果,在把 jQuery 的程式碼複製貼上即可完成了,真是太神奇了。

IxEdit demo 的影片



官方網站:http://www.ixedit.com/

User Guid:http://www.ixedit.com/userguide/

Samples:http://www.ixedit.com/samples/


沒想到對岸的朋友已經將 IxEdit 翻成簡體中文版的了,還有 IxEdit 視訊教學及 IxEdit 實戰教學,真是太強了。

網址:Yes! B-S ! - 博客園

2009年12月20日 星期日

博客來優惠卷E-coupon 100元12/15全館買就送

E-coupon 100元只有1張要用快^^

E-coupon序號:CVC5n8ie

E-coupon有效期限:即日起∼20091228日止,單張訂單金額滿1000元方可抵用

E-Coupon使用說明

請在購物流程的第二步"付款方式"的下方「若您要使用E-Coupon電子折價券請先打勾,於下一頁輸入序號」處勾選,按下一步後,將出現填寫E-Coupon序號之欄位(填寫後可選擇欲抵扣的商品品項)。

一次交易限抵用一張E-Coupon,訂單中需有一項單品售價100元以上方可抵用,使用信用卡分期付款之訂單、票券商品不可抵用E-Coupon。

博客來網路書店

2009年12月18日 星期五

Achieving-Rounded-Corners-IE-jQueryUI-DD_roundies

使用 jQuery UI 與 DD_roundies 在 Internet Explorer 上實現圓角效果

什麼是 DD_roundies?
DD_roundies 是由 Drew Diller 提供的一個 javascript library。 DD_roundies 使用了 IE 專有的 VML drawing language 來完成圓角。


Demo Page:DD_roundies applied to jQuery UI

Download Demo Zip File

來源網址:http://www.filamentgroup.com/lab/achieving_rounded_corners_in_internet_explorer_for_jquery_ui_with_dd_roundi/

2009年12月14日 星期一

[Photoshop]pshero.com 教您如何使用 Photoshop 設計與創作

想學 Photoshop 的同好們有福了,pshero.com 的站長提供了許多使用 Photoshop 創作與設計教學,教您如何用 Photoshop 創作出想要的作品,如 icon 、選單和按鈕的製作和相片的修飾等。






網址:http://pshero.com/

2009年12月10日 星期四

[WordPress]WordPress中文團隊-漢化大量WordPress實用插件和主題

WordPress 中文團隊是由 Crazy Loong 發起以簡體中文化推廣 WordPress 為目標而組成的一個非盈利性組織。本團隊旨在製作和維護 WordPress 主程式以及衍生程式(WordPress Mu 和 bbPress 等)的簡體中文語言包,同時編寫或漢化大量實用插件和主題,使 WordPress 更易於國人使用。本團隊還將長期致力於 WordPress 在國內的推廣活動,讓更多的人使用這套出色的 Blog 系統。




網址:http://www.wpcng.com/

WordPress 是一種使用 PHP 和 MySQL 開發、功能強大的免費博客系統,它插件眾多,主題豐富,而且安裝和使用都非常方便。運用它,您可以輕鬆地在支持 PHP 和 MySQL 數據庫的服務器上建立完全屬於自己的博客。不僅如此,強大的可擴展性和自定義性,使其應用又不僅僅只是在個人博客方面,已經有越來越多的企業、門戶網站開始使用 WordPress 架設,或者說這些博客早已不僅僅是博客而已了。

2009年12月9日 星期三

[php]用 class.upload.php 上傳檔案

class.upload.php





<?php
include('class_upload/class.upload.php'); // 引入物件檔,路徑請自行修改

// 設置變數
$dir_dest = (isset($_GET['dir']) ? $_GET['dir'] : 'test');
$dir_pics = (isset($_GET['pics']) ? $_GET['pics'] : $dir_dest);

if (!file_exists($dir_dest)) mkdir($dir_dest);

$handle = new upload($_FILES['photo_name'],'zh_TW');// 將上傳物件實體化
if ($handle->uploaded) { // 如果檔案已經上傳到 tmp
$handle->file_new_name_body = 'image_name'; // 重新設定新檔名
$handle->image_resize = true; // 重設圖片大小
$handle->image_x = 400; // 設定寬度為 400 px
$handle->image_ratio_y = true; // 按比例縮放高度
$handle->process($dir_dest); // 檔案搬移到目的地
if ($handle->processed) { // 判斷搬移執行結果
echo 'image resized';
echo '<fieldset>';
echo ' <legend>file uploaded with success</legend>';
echo ' <p>' . round(filesize($handle->file_dst_pathname)/256)/4 . 'KB</p>';
echo '<img src="'.$dir_pics.'/' . $handle->file_dst_name . '" />';
echo ' link to the file just uploaded: <a href="'.$dir_pics.'/' . $handle->file_dst_name . '">' . $handle->file_dst_name . '</a>';
echo '</fieldset>';
$handle->clean(); // 若搬移成功,則釋放記憶體
} else {
echo 'error : ' . $handle->error; // 秀出錯誤訊息。
}
}
?>

官網:http://www.verot.net/php_class_upload.htm
教學:http://www.verot.net/res/sources/class.upload.html

[php]亂數函式 rand()

rand()函數是 php 用來產生出 INT 型態的亂數函式。

使用方法:
rand()
或是
rand(最小值 , 最大值)

Ps.注意這個函式的最大值,只有到32768。

2009年12月2日 星期三

[Free]hongkiat.com提供WordPress和Photoshop等資源

hongkiat.com提供WordPress、Icons、WEB2.0、Photoshop、Tools 和 wallpapers 等資源。




網址:http://www.hongkiat.com/

[theme]webbeta提供Wordpress模板和Plugin

webbeta 提供 Wordpress 模板(theme)、Wordpress plugin、Blog seo 和賺錢以及 web 資源等。



網址:http://webbeta.org/

2009年12月1日 星期二

[Theme]boygj提供大量joomla和wordpress模板

boygj.com 提供大量 Joomla 和 WordPress 的免費和商業模板(Template),還提供字型(font)、插圖(Graphic)、icon、向量圖(vectors)、桌布(Wallpapers)、Scripts、Style 和電子書(E-Book)等資源。



網址:http://boygj.com/