原创 PHP array_values

array_values() :                       返回 input 數組中所有的值並給其建立數字索引。 <?php     $array = array( "size" => "XL" , "

原创 批處理 顯示指定文件夾下文件的大小和時間

@echo off For /F "dolims=" %%i in ('dir %1 /b /a-d ') do (  for %%j in ("%1\%%i") do echo %%~nxj   %%~zj   %%~tj >> yan

原创 PHP exec 函數 及 system,exec,passthru區別用法詳解

exec     執行外部程式。           語法       :   string   exec(string   command,   string   [array],   int   [return_var]);

原创 javascript event詳解

event 代表事件的狀態,例如觸發event對象的元素、鼠標的位置及狀態、按下的鍵等等。 event對象只在事件發生的過程中才有效。 event 的某些屬性只對特定的事件有意義。比如,fromElement 和 toElement 屬

原创 CSS 文本對齊

text-align  水平對齊  right left center vertical-align 垂直對齊 top middle bottom 屬性: AbsBottom 圖像的下邊緣與同一行中最大元素的下邊緣對齊。 AbsMi

原创 vmtemplatetree (firefox ie有區別!!!)

<!--  * Created on 2010/05/19  * Created by 0373jy  * To change the template for this generated file go to  * Window -

原创 PHP require,require_once,include,include_once的區別

利用PHP的Include files維護你的網站 不管你所開發的網站的規模是大是小,你都應該要認識到重複使用程序代碼的重要性,不論你重複 使用的是 PHP 程序或者是 HTML 原始碼。舉個例子來說,網站頁尾的版權宣告至少每年都

原创 JavaScript 簡單樹型

<html> <head>  <script type="text/javascript">   function tree(treethis){    if (treethis.alt == "+"){     treethis.alt

原创 html textarea 換行(ie FireFox)

html textarea 中的換行   ie 中:       /r/n firefox 中: /n

原创 取消 map area 鏈接 手指

<html> <body> <img id= "a1" src = "perfor.png" usemap = "#check"></img> <map name = "check">     <area shape="rect" coo

原创 javascript location.reload()

功能: 重新加載文檔。 語法: location.reload(force) 參數: force:可選參數,是一個布爾值。       如果省略參數,或者參數是false,它就會用HTTP頭If-Modified-Since來檢測服務

原创 javascript 遊覽器版本判斷(IE FIREFOX)

<script type ="text/javascript">  var Version = navigator.appVersion;  alert(Version);  check_Version = Version.substr(

原创 javascript html radio 的 選擇與取消

        <input type = "radio" id = "raid" name = "raname" checked = 'checked' οnclick="radioclick();">111</input>      

原创 php 表單提交

$aaa = $_POST['aaa']; ?> <html>     <body>         <form action="RegExp.php" method="post">             <input type = "

原创 img標籤 在IE6和IE7中導致父層DIV高度多了4px

img標籤在IE6和IE7中會造成父層div的高度比理想高度高了4px   第一種:          固定div的高度,設置overflow屬性爲hidden 第二種:         設置img的displ