用javascript就可以了:http://blog.csdn.net/johnsuna/archive/2008/07/12/2643294.aspx

解决方案 »

  1.   


    主要是你怎样确定body内的内容
    if($_GET['language']=='tw')
    {
    include("tw.html");
    }
    else
    {
    include("zh.html");
    }可能我理解错了楼主的意思,呵呵。
    }
      

  2.   


    <?
    /***********************************************************************
                           Written by caocao
                           [email protected]
                           http://nethermit.yeah.net
                           
                           簡體中文轉換為繁體中文類
                           使用方法:
                           $convert=new gtob;
                           $str=$convert->gbtobig5($str);
    ***********************************************************************/
    class gtob
    {
        var $data;
        function gbtobig5($str)
        {
            $output="";
            $length=strlen($str);
            for ($i=0;$i<$length;++$i)
            {
                if ($i==$length-1)
                {
                    $output.=$str[$i];
                    break;
                }
                $code1=ord($str[$i]);
                $code2=ord($str[$i+1]);
                if ($code1>=0x81&&$code1<=0xFE&&$code2>=0x40&&$code2<=0xFE&&$code2!=0x7F)
                {
                    $offset=($code1-0x81)*190;
                    $offset+=$code2>0x7F?$code2-0x41:$code2-0x40;
                    $offset<<=1;
                    $output.=substr($this->data, $offset, 2);
                    ++$i;
                }
                else
                    $output.=$str[$i];
            }
            return $output;
        }
        function gtob()
        {
            $this->data魎魘拍魃鴟鴝【【【篦篪魈鴠跺□鵩□□霍翹耖簌□□睛鑭鑭耜篾兜簏蹙□鹺舍踅跫腦躉鬧鬧惱鱸鯰□舑【玶牌魍排【□□□□芓【□□□芐鵪鳹鵬鵫【徑□耜□纏胑□胑蹩穌【徘魑【艷□纓□啪□饗□□【□睥【□綟【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【蒍【【【盩【躚摟【【【【【【【【【【【【【【【【【【貊【【【【【【【【【【【【【【【【【【【【【甌【驟【【【【【【【鏎【【【【砢鱣【【【【【酊【【【□【【【【【【【【【【【【【【銃筵酩【□【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【";
        }
    }
    $convert=new gtob;
    ?> 
      

  3.   

    http://www.shuro.cn/article.asp?id=330
    在这里搜到了一个完整的, 但是用起来还是乱码. 不知道 有人帮忙看看没
      

  4.   

    http://download.csdn.net/source/588054
    看咱们csdn就有  :D
      

  5.   

    这个是JavaScript的 我要的是 php的类.
      

  6.   

    http://blog.verymore.com/show-960-1.html