2013年10月15日 星期二

網站簡介



1.fever38 發燒網 http://www.fever38.com/
簡介:Fever38 發燒網是一個社群行銷活動的平台,提供社群網站上各種整合行銷工具,
協助商家輕鬆舉辦各種網路活動,如留言抽獎、徵件票選、有獎徵答等等的方式招募粉絲推廣
商家知名度,並在每次的活動過程中建立品牌形象,經營粉絲關係博取粉絲對品牌的好感及認
同,最終達到粉絲成為顧客,粉絲與商家各得所需的雙贏模式。

2013年5月31日 星期五

非法字符

function safe_string($str){ //過濾安全字符
$str=str_replace("'","",$str);
$str=str_replace('"',"",$str);
$str=str_replace(" ","$nbsp;",$str);
$str=str_replace("\n;","
",$str);

$str=str_replace("<","<",$str);
$str=str_replace(">",">",$str);
$str=str_replace("\t"," ",$str);
$str=str_replace("\r","",$str);
$str=str_replace("/[\s\v]+/"," ",$str);
return $str;
}

2013年5月29日 星期三

網站 壓力測試

ab - Apache HTTP server benchmarking tool
http://httpd.apache.org/docs/2.2/programs/ab.html
ab 工具程式是 Apache 網站伺服器軟體的一個附帶的工具軟體,專門用來執行網站伺服器的運行效能

說明:http://blog.miniasp.com/post/2008/06/30/Using-ApacheBench-ab-to-to-Web-stress-test.aspx

2013年5月14日 星期二

jQuery.ptTimeSelectA jQuery Plugin

網址:http://pttimeselect.sourceforge.net/example/index.html
功能:用來選擇時間的功能。
簡述:使用UI來做。

2013年4月30日 星期二

針對IE 改寫 table

使用時機:table 沒有特定下使用

//針對div .mintabletwo底下數個table 且沒有class。
$(function(){
 var version = $.browser.msie;
  
 if(version){ //因為ie會把表格線弄的很淡,所以在這邊動點手腳。如果會影響到表格的影響,請更改之。
  $('.mintabletwo table').each(function(index){
   var wid_var=$(this).attr('border');
   if (typeof wid_var === "undefined"|| wid_var=='0'){
    $('.mintabletwo table:eq('+index+')').addClass('noLine');
   }else{
    $('.mintabletwo table:eq('+index+')').addClass('haveLine');
   }
  })
  $('.haveLine').css('border', '1px solid black');
 }
})


補充說明:
.eq() 教學連結
.find() 教學連結
.addClass() 教學連結

2013年4月29日 星期一

水平menu

網址:http://css.maxdesign.com.au/listutorial/horizontal_master.htm

CSS CODE
#navcontainer ul
{
margin: 0;
padding: 0;
list-style-type: none;
text-align: center;
}

#navcontainer ul li { display: inline; }

#navcontainer ul li a
{
text-decoration: none;
padding: .2em 1em;
color: #fff;
background-color: #036;
}

#navcontainer ul li a:hover
{
color: #fff;
background-color: #369;
}


HTML CODE
<div id="navcontainer">
<ul>
<li><a href="#">Milk</a></li>
<li><a href="#">Eggs</a></li>
<li><a href="#">Cheese</a></li>
<li><a href="#">Vegetables</a></li>
<li><a href="#">Fruit</a></li>
</ul>
</div>


微軟作業系統 關機指令 shutdown

一直忘記,所以寫這篇,方便自己檢索。

方法1:


  • 立即關機:shutdown -s -t 0
  • 登出:shutdown -l
  • 立即重新啟動:shutdown -r -t 0
  • 30秒後關機:shutdown -s -t 30
  • 1小時後關機:shutdown -s -t 3600
  • 3小時後關機:shutdown -s -t 10800
  • 取消關機 SHUTDOWN -a


方法2:

開始→執行→輸入『taskmgr』→WINDOWS工作管理員→工具列有一個選項『關機』