Ò»¡¢Ó÷¨¾ÙÀý£º
1¡¢½«XMLÎļþ½âÊͳɱãÓÚʹÓõÄÊý×飺
<?php
include('xml.php'); //ÒýÓÃPHP XML²Ù×÷Àà
$xml = file_get_contents('data.xml'); //¶ÁÈ¡XMLÎļþ
//$xml = file_get_contents("php://input"); //¶ÁÈ¡POST¹ýÀ´µÄÊäÈëÁ÷
$data=XML_unserialize($xml);
echo '<pre>';
print_r($data);
echo '</pre>';
?>
data.xmlÎļþ£º
<?xml version="1.0" encoding="GBK"?>
<video>
<upload>
<videoid>998</videoid>
<name><![CDATA[»ØÒäδÀ´]]></name>
<memo><![CDATA[def]]></memo>
<up_userid>11317</up_userid>
</upload>
</video>
<?xml version="1.0" encoding="GBK"?>
<video>
<upload>
<videoid>998</videoid>
<name><![CDATA[»ØÒäδÀ´]]></name>
<memo><![CDATA[def]]></memo>
<up_userid>11317</up_userid>
</upload> ......
1. ½ØÈ¡GB2312ÖÐÎÄ×Ö·û´®
<?php
< ?php
//½ØÈ¡ÖÐÎÄ×Ö·û´®
function mysubstr($str, $start, $len) {
$tmpstr = "";
$strlen = $start + $len;
for($i = 0; $i < $strlen; $i++) {
if(ord(substr($str, $i, 1)) > 0xa0) {
$tmpstr .= substr($str, $i, 2);
$i++;
} else
$tmpstr .= substr($str, $i, 1);
}
return $tmpstr;
}
?>
2. ½ØÈ¡utf8±àÂëµÄ¶à×Ö½Ú×Ö·û´®
<?php
< ?php
//½ØÈ¡utf8×Ö·û´®
function utf8Substr($str, $from, $len)
{
return preg_replace('#^(?:[\x00-\x7F]|[\x ......
PHPµÄÓŵ㣺
¡¡¡¡1. ¿çƽ̨£¬ÐÔÄÜÓÅÔ½£¬¸úLinux/Unix½áºÏ±ð¸úWindows½áºÏÐÔÄÜÇ¿45%£¬²¢ÇҺͺܶàÃâ·ÑµÄƽ̨½áºÏ·Ç³£Ê¡Ç®£¬±ÈÈçLAMP(Linux/Apache/Mysql/PHP)»òÕßFAMP(FreeBSD/Apache/Mysql/PHP)½áºÏ£¬»òÕßÊý¾ÝÓ¦Óù»´ó¿ÉÒÔ¿¼ÂÇ»»PostgreSQL»òÕßOracle£¬Ö§³ÖNÖÖÊý¾Ý¿â¡£(N >= 10)
¡¡¡¡2. Óï·¨¼òµ¥£¬Èç¹ûÓÐѧϰCºÍPerlµÄºÜÈÝÒ×ÉÏÊÖ£¬²¢ÇÒ¸úASPÓв¿·ÖÀàËÆ¡£ÓгÉÊìµÄ¿ª·¢¹¤¾ß£¬±ÈÈçNuPHPed£¬»òÕßZend StudioµÈµÈ£¬ÔÙLinuxƽ̨Ï¿ÉÒÔʹÓÃEclipseµÈµÈ¡£
¡¡¡¡3. Ä¿Ç°Ö÷Á÷¼¼Êõ¶¼Ö§³Ö£¬±ÈÈçWebService¡¢Ajax¡¢XMLµÈµÈ£¬×ã¹»Ó¦Óá£
¡¡¡¡4. ÓбȽÏÍêÕûµÄÖ§³Ö£¬±ÈÈçʹÓÃADODB»òÕßPEAR::DB×öÊý¾Ý¿â³éÏó²ã£¬ÓÃSmarty»òÕßsmart template×öÄ£°å²ã£¬Èç¹ûÊÇPHP 5.1µÄ»°£¬»¹Äܹ»Ê¹ÓÃPDO(PHP Data Object)À´·ÃÎÊÊý¾Ý¿â¡£
¡¡¡¡5. Óкܶà³ÉÊìµÄ¿ò¼Ü£¬±ÈÈçÖ§³ÖMVCµÄ¿ò¼Ü£ºphpMVC£¬Ö§³ÖÀàËÆASP.netµÄʼþÇý¶¯µÄ¿ò¼Ü£ºPrado£¬Ö§³ÖÀàËÆRuby On RailsµÄ¿ìËÙ¿ª·¢µÄ¿ò¼Ü£ºCakeµÈµÈ£¬×ã¹»Âú×ãÄãµÄÓ¦ÓÃÐèÇó¡£
¡¡¡¡6. PHP 5ÒѾÓгÉÊìµÄÃæÏò¶ÔÏóÌåϵ£¬Äܹ»ÊÊÓ¦»ù±¾µÄÃæÏò¶ÔÏóÒªÇó¡£ÊʺϿª·¢´óÐÍÏîÄ¿¡£
¡¡¡¡7. ÓгÉÊìµÄÉçÇøÀ´Ö§³ÖPHPµÄ¿ª·¢£¬±ÈÈç¹úÄÚµÄCSDN£¬Ï²Ôùú¼Ê´åµÈµÈ¡£
¡¡¡¡8. Ä¿Ç°ÒѾºÜ¶à´óÐ ......
9ÔÂ6ÈÕÏûÏ¢£¬Tiobe½ñÌì·¢²¼ÁË2009Äê9Ôµıà³ÌÓïÑÔÅÅÐаñ£¬PHPÔÚ±¾ÆÚ°ñµ¥ÖлñµÃÀúÊ·ÐÔÍ»ÆÆ£¬ÒÔ½üÒ»¸ö°Ù·ÖµãµÄÔö·ù³É¹¦½øÈëÇ°ÈýÃû£¬C++ϽµÒ»Î»£¬ÅÅÃûµÚËÄ¡£±¾ÆÚ±à³ÌÓïÑÔÅÅÐаñ£¬ÎÒÃǽ«»Ø¹ËPHPµÄ³É³¤£¬·ÖÎöPHPµÄ·¢Õ¹Ç°¾°¡£
±¾ÆÚ±à³Ì°ñÇ°¶þÊ®Ãû°ñµ¥
¼òµ¥Ö®µÀ
1994Ä꣬Rasmus Lerdorf²¢Ã»Ïëµ½×Ô¼ºÎªÁËά»¤¸öÈËÍøÒ³¶ø·¢Ã÷µÄ½Å±¾ÓïÑÔ»áÔÚ½ñÌìµÄWeb¿ª·¢ÁìÓò´ó·ÅÒì²Ê¡£ÔÚÕâÔçÆڵİ汾ÖУ¬PHPÖ»ÌṩÁ˷ÿÍÁôÑÔ±¾¡¢·Ã¿Í¼ÆÊýÆ÷µÈ¼òµ¥µÄ¹¦ÄÜ¡£ÒÔºóÔ½À´Ô½¶àµÄÍøվʹÓÃÁËPHP£¬²¢ÇÒÇ¿ÁÒÒªÇÒÔö¼ÓһЩÌØÐÔ£¬±ÈÈçÑ»·Óï¾äºÍÊý×é±äÁ¿µÈµÈ¡£1995Äê·¢²¼µÄPHP2.0¶¨ÃûΪPHP/FI(Form Interpreter)¡£PHP/FI¼ÓÈëÁ˶ÔMySQLµÄÖ§³Ö£¬´Ó´Ë½¨Á¢ÁËPHPÔÚ¶¯Ì¬ÍøÒ³¿ª·¢ÉϵĵØλ¡£
PHPÖ®¸¸Rasmus Lerdorf
µ½ÁË1996Äêµ×£¬ÒÑÓÐ15000¸öÍøվʹÓà PHP/FI£»Ê±¼äµ½ÁË1997Ä꣬ʹÓÃPHP/FIµÄÍøÕ¾Êý×Ö³¬¹ýÎåÍò¸ö¡£¶øÔÚ1997ÄêÖУ¬¿ªÊ¼Á˵ÚÈý°æµÄ¿ª·¢¼Æ»®£¬¿ª·¢Ð¡×é¼ÓÈëÁË Zeev Suraski ¼° Andi Gutmans£¬¶øµÚÈý°æ¾Í¶¨ÃûΪPHP3¡£2000Ä꣬PHP4.0ÎÊÊÀÁË£¬ÆäÖÐÔö¼ÓÁËÐí¶àеÄÌØÐÔ£¬¶øÕâЩÌØÐÔ¶¼ÊÇ¿ª·¢Õߺ͵±Ê±µÄÏîÄ¿Ç¿ÁÒÐèÒªµÄ¡£
´Ó1.0°æ±¾µ½4.0°æ±¾£¬PHPÔÚ¿ªÔ´ÉçÇøºÍZend¹«Ë¾µÄÖ§³Öϱ£³ÖÎȶ¨µÄÔö³¤ºÍ½ø²½¡£ÔÚÕâÖÖ¿ìËٵijɳ¤ ......
ºÜ¶àSOHOER¶¼Ï£ÍûÓиö×Ô¼ºµÄÍøÕ¾,¶ø¶ÔÍøÕ¾½¨ÉèÒ»ÎÞËùÖª,»òÕßÒ»Öª°ë½â.½ñÌìÎÒÏȽ²³ÌÐò·½ÃæµÄÇø±ð,ÏàÐźܶàÈËÅöµ½ÁËÓÐЩ¹«Ë¾Ëµphp±ÈAsp,Asp.Net¶¼ÒªºÃ,»òÕßAsp±ÈÆäËûÓïÑÔ¶¼ÒªºÃ¡£Æäʵ,³ÌÐòµÄÓÅÂÔÓëÍøÕ¾¿ª·¢ÈËÔ±µÄ¾Ñé\¼¼ÊõˮƽÏà¹Ø£¬¶øÓïÑÔ±¾Éí²¢Ã»ÓÐʲôÓÅÂÔÖ®·Ö.¾Ñé¶àµÄ³ÌÐòÔ±,²»¹ÜʹÓõÄÄÄÖÖÓïÑÔ£¬¶¼¿ÉÒÔ¿ª·¢³öÒ»Ì׷dz£ÓÅÐãµÄ³ÌÐò.PhpÄÜ×öµ½µÄ£¬AspÒ²ÄÜ×öµ½,AspÄÜ×öµ½µÄ£¬PhpÒ»Ñù¿ÉÒÔ×öµ½.Äܲ»ÄÜ×öµ½£¬Ö÷Òª¿´³ÌÐòÔ±µÄÄÜÁ¦¡£
Ä¿Ç°¹úÄÚÓõñȽ϶àµÄ»¹ÊÇAsp,ΪʲôÄØ?Ò»·½Ã棬Asp±È½ÏÈÝÒ×ÉÏÊÖ£¬Ò²±È½ÏÈÝÒ×½øÐпª·¢;ÁíÍâÒ»·½Ã棬WindowsϵͳÔÚÄÚµØÓõñȽÏÆÕ¼°.¶ø²¢²»ÊÇÒòΪasp±ÈphpÒªºÃ.¶øHtmlÊÇÿ¸öÍøÕ¾½¨ÉèÈËÔ±µÄ»ù´¡ÖªÊ¶£¬²»»áHtml,¾Í²»ÒªÈ¥×öÍøÕ¾,ÒòΪ³ÌÐò×îºóÊä³öµÄ»¹ÊÇHtmlÄÚÈÝ.
ÏÂÃæÎÒ·Ö±ð°Ñ¸÷ÓïÑÔµÄÓŵ㣬ȱµãÒ»Ò»Áгö£¬Èç¹ûÄÄλͬÐп´µ½ÄÄÀïÓÐȱ©£¬Çë¸úÌû²¹³ä¡£
Ãû´Ê¶¨Ò壺
Êý¾Ý¿â½»»¥£ºÆäʵ¾ÍÊdzÌÐòÍùÊý¾Ý¿âдÊý¾Ý»òÕß´ÓÊý¾Ý¿â¶ÁÊý¾ÝµÄ¹ý³Ì¡£ //Ô˵Ã÷: ÊÇÖ¸ÍøÒ³ÀïµÄ³ÌÐò½Å±¾£¬¶ÁÈ¡Êý¾Ý¿âÄÚÈÝ£¬È»ºóÏÔʾµ½Ç°Ì¨Ò³Ãæ ......
ºÜ¶àSOHOER¶¼Ï£ÍûÓиö×Ô¼ºµÄÍøÕ¾,¶ø¶ÔÍøÕ¾½¨ÉèÒ»ÎÞËùÖª,»òÕßÒ»Öª°ë½â.½ñÌìÎÒÏȽ²³ÌÐò·½ÃæµÄÇø±ð,ÏàÐźܶàÈËÅöµ½ÁËÓÐЩ¹«Ë¾Ëµphp±ÈAsp,Asp.Net¶¼ÒªºÃ,»òÕßAsp±ÈÆäËûÓïÑÔ¶¼ÒªºÃ¡£Æäʵ,³ÌÐòµÄÓÅÂÔÓëÍøÕ¾¿ª·¢ÈËÔ±µÄ¾Ñé\¼¼ÊõˮƽÏà¹Ø£¬¶øÓïÑÔ±¾Éí²¢Ã»ÓÐʲôÓÅÂÔÖ®·Ö.¾Ñé¶àµÄ³ÌÐòÔ±,²»¹ÜʹÓõÄÄÄÖÖÓïÑÔ£¬¶¼¿ÉÒÔ¿ª·¢³öÒ»Ì׷dz£ÓÅÐãµÄ³ÌÐò.PhpÄÜ×öµ½µÄ£¬AspÒ²ÄÜ×öµ½,AspÄÜ×öµ½µÄ£¬PhpÒ»Ñù¿ÉÒÔ×öµ½.Äܲ»ÄÜ×öµ½£¬Ö÷Òª¿´³ÌÐòÔ±µÄÄÜÁ¦¡£
Ä¿Ç°¹úÄÚÓõñȽ϶àµÄ»¹ÊÇAsp,ΪʲôÄØ?Ò»·½Ã棬Asp±È½ÏÈÝÒ×ÉÏÊÖ£¬Ò²±È½ÏÈÝÒ×½øÐпª·¢;ÁíÍâÒ»·½Ã棬WindowsϵͳÔÚÄÚµØÓõñȽÏÆÕ¼°.¶ø²¢²»ÊÇÒòΪasp±ÈphpÒªºÃ.¶øHtmlÊÇÿ¸öÍøÕ¾½¨ÉèÈËÔ±µÄ»ù´¡ÖªÊ¶£¬²»»áHtml,¾Í²»ÒªÈ¥×öÍøÕ¾,ÒòΪ³ÌÐò×îºóÊä³öµÄ»¹ÊÇHtmlÄÚÈÝ.
ÏÂÃæÎÒ·Ö±ð°Ñ¸÷ÓïÑÔµÄÓŵ㣬ȱµãÒ»Ò»Áгö£¬Èç¹ûÄÄλͬÐп´µ½ÄÄÀïÓÐȱ©£¬Çë¸úÌû²¹³ä¡£
Ãû´Ê¶¨Ò壺
Êý¾Ý¿â½»»¥£ºÆäʵ¾ÍÊdzÌÐòÍùÊý¾Ý¿âдÊý¾Ý»òÕß´ÓÊý¾Ý¿â¶ÁÊý¾ÝµÄ¹ý³Ì¡£ //Ô˵Ã÷: ÊÇÖ¸ÍøÒ³ÀïµÄ³ÌÐò½Å±¾£¬¶ÁÈ¡Êý¾Ý¿âÄÚÈÝ£¬È»ºóÏÔʾµ½Ç°Ì¨Ò³Ãæ ......
ºÜ¶àSOHOER¶¼Ï£ÍûÓиö×Ô¼ºµÄÍøÕ¾,¶ø¶ÔÍøÕ¾½¨ÉèÒ»ÎÞËùÖª,»òÕßÒ»Öª°ë½â.½ñÌìÎÒÏȽ²³ÌÐò·½ÃæµÄÇø±ð,ÏàÐźܶàÈËÅöµ½ÁËÓÐЩ¹«Ë¾Ëµphp±ÈAsp,Asp.Net¶¼ÒªºÃ,»òÕßAsp±ÈÆäËûÓïÑÔ¶¼ÒªºÃ¡£Æäʵ,³ÌÐòµÄÓÅÂÔÓëÍøÕ¾¿ª·¢ÈËÔ±µÄ¾Ñé\¼¼ÊõˮƽÏà¹Ø£¬¶øÓïÑÔ±¾Éí²¢Ã»ÓÐʲôÓÅÂÔÖ®·Ö.¾Ñé¶àµÄ³ÌÐòÔ±,²»¹ÜʹÓõÄÄÄÖÖÓïÑÔ£¬¶¼¿ÉÒÔ¿ª·¢³öÒ»Ì׷dz£ÓÅÐãµÄ³ÌÐò.PhpÄÜ×öµ½µÄ£¬AspÒ²ÄÜ×öµ½,AspÄÜ×öµ½µÄ£¬PhpÒ»Ñù¿ÉÒÔ×öµ½.Äܲ»ÄÜ×öµ½£¬Ö÷Òª¿´³ÌÐòÔ±µÄÄÜÁ¦¡£
Ä¿Ç°¹úÄÚÓõñȽ϶àµÄ»¹ÊÇAsp,ΪʲôÄØ?Ò»·½Ã棬Asp±È½ÏÈÝÒ×ÉÏÊÖ£¬Ò²±È½ÏÈÝÒ×½øÐпª·¢;ÁíÍâÒ»·½Ã棬WindowsϵͳÔÚÄÚµØÓõñȽÏÆÕ¼°.¶ø²¢²»ÊÇÒòΪasp±ÈphpÒªºÃ.¶øHtmlÊÇÿ¸öÍøÕ¾½¨ÉèÈËÔ±µÄ»ù´¡ÖªÊ¶£¬²»»áHtml,¾Í²»ÒªÈ¥×öÍøÕ¾,ÒòΪ³ÌÐò×îºóÊä³öµÄ»¹ÊÇHtmlÄÚÈÝ.
ÏÂÃæÎÒ·Ö±ð°Ñ¸÷ÓïÑÔµÄÓŵ㣬ȱµãÒ»Ò»Áгö£¬Èç¹ûÄÄλͬÐп´µ½ÄÄÀïÓÐȱ©£¬Çë¸úÌû²¹³ä¡£
Ãû´Ê¶¨Ò壺
Êý¾Ý¿â½»»¥£ºÆäʵ¾ÍÊdzÌÐòÍùÊý¾Ý¿âдÊý¾Ý»òÕß´ÓÊý¾Ý¿â¶ÁÊý¾ÝµÄ¹ý³Ì¡£ //Ô˵Ã÷: ÊÇÖ¸ÍøÒ³ÀïµÄ³ÌÐò½Å±¾£¬¶ÁÈ¡Êý¾Ý¿âÄÚÈÝ£¬È»ºóÏÔʾµ½Ç°Ì¨Ò³Ãæ ......
ajax+asp.net+mssqlʵÏÖµÄajaxÎÞË¢ÐÂÁÄÌìÊÒ£¬Ö§³Öhtml web±à¼Æ÷¡£
ΪÁ˼ӿìËٶȣ¬Ê¹ÓÃÁË´æ´¢¹ý³Ì¡£
asp¼°php°æ±¾Çë¿´ÏÂÃæµÄÎÄÕÂ
ajax+asp+mssqlÎÞË¢ÐÂÁÄÌìÊÒ
ajax+php+mssqlÎÞË¢ÐÂÁÄÌìÊÒ
´ËÀý×ÓÒ²¿ÉÒÔ×÷Ϊmssql´æ´¢¹ý³ÌʹÓõÄʾÀý£¬Èçphpµ÷ÓÃmssqlµÄ´æ´¢¹ý³Ì£¬php»ñÈ¡mssqlÊý¾Ý¿âµÄÊä³ö²ÎÊý¡£
ҪʹÓò»Í¬µÄ¶¯Ì¬Ò³Ã棬ֻÐèÒª¸ü¸Älib.jsÎļþÖÐRequstUrl±äÁ¿µÄÖµ¼´¿É¡£
ÍêÕûʾÀýÏÂÔØ
Ч¹ûÈçÏÂ
var Showbo={author:'showbo',homepage:'http://www.code-design.cn'};
Showbo.IsIE=!!document.all;
Showbo.IsFireFox=navigator.userAgent.indexOf("Firefox")!=-1;
Showbo.trim=function(v,reg){if(reg)return v.replace(reg,'');else return v.replace(/^\s*|\s*$/,'');}
Showbo.getJson=function(v){return eval('('+v+')');}
//»ñȡij¸ö¶ÔÏóµÄ¾ø¶ÔλÖÃ
Showbo.getAbsPos=function(o,addXY){o=Showbo.$(o);var p=new Object();p.x=o.offsetLeft;p.y=o.offsetTop;while(o=o.offsetParent){p.x+=o.offsetLeft;p.y+=o.offsetTop;}if(addXY){if(!isNaN(addXY.x))p.x+=addXY.x;if(!isNaN(addXY.y))p.y+=addXY.y;}return p;}
Showbo.$=function(Id,isFrame){
var o ......
ajax+asp.net+mssqlʵÏÖµÄajaxÎÞË¢ÐÂÁÄÌìÊÒ£¬Ö§³Öhtml web±à¼Æ÷¡£
ΪÁ˼ӿìËٶȣ¬Ê¹ÓÃÁË´æ´¢¹ý³Ì¡£
asp¼°php°æ±¾Çë¿´ÏÂÃæµÄÎÄÕÂ
ajax+asp+mssqlÎÞË¢ÐÂÁÄÌìÊÒ
ajax+php+mssqlÎÞË¢ÐÂÁÄÌìÊÒ
´ËÀý×ÓÒ²¿ÉÒÔ×÷Ϊmssql´æ´¢¹ý³ÌʹÓõÄʾÀý£¬Èçphpµ÷ÓÃmssqlµÄ´æ´¢¹ý³Ì£¬php»ñÈ¡mssqlÊý¾Ý¿âµÄÊä³ö²ÎÊý¡£
ҪʹÓò»Í¬µÄ¶¯Ì¬Ò³Ã棬ֻÐèÒª¸ü¸Älib.jsÎļþÖÐRequstUrl±äÁ¿µÄÖµ¼´¿É¡£
ÍêÕûʾÀýÏÂÔØ
Ч¹ûÈçÏÂ
var Showbo={author:'showbo',homepage:'http://www.code-design.cn'};
Showbo.IsIE=!!document.all;
Showbo.IsFireFox=navigator.userAgent.indexOf("Firefox")!=-1;
Showbo.trim=function(v,reg){if(reg)return v.replace(reg,'');else return v.replace(/^\s*|\s*$/,'');}
Showbo.getJson=function(v){return eval('('+v+')');}
//»ñȡij¸ö¶ÔÏóµÄ¾ø¶ÔλÖÃ
Showbo.getAbsPos=function(o,addXY){o=Showbo.$(o);var p=new Object();p.x=o.offsetLeft;p.y=o.offsetTop;while(o=o.offsetParent){p.x+=o.offsetLeft;p.y+=o.offsetTop;}if(addXY){if(!isNaN(addXY.x))p.x+=addXY.x;if(!isNaN(addXY.y))p.y+=addXY.y;}return p;}
Showbo.$=function(Id,isFrame){
var o ......
ajax+asp.net+mssqlʵÏÖµÄajaxÎÞË¢ÐÂÁÄÌìÊÒ£¬Ö§³Öhtml web±à¼Æ÷¡£
ΪÁ˼ӿìËٶȣ¬Ê¹ÓÃÁË´æ´¢¹ý³Ì¡£
asp¼°php°æ±¾Çë¿´ÏÂÃæµÄÎÄÕÂ
ajax+asp+mssqlÎÞË¢ÐÂÁÄÌìÊÒ
ajax+php+mssqlÎÞË¢ÐÂÁÄÌìÊÒ
´ËÀý×ÓÒ²¿ÉÒÔ×÷Ϊmssql´æ´¢¹ý³ÌʹÓõÄʾÀý£¬Èçphpµ÷ÓÃmssqlµÄ´æ´¢¹ý³Ì£¬php»ñÈ¡mssqlÊý¾Ý¿âµÄÊä³ö²ÎÊý¡£
ҪʹÓò»Í¬µÄ¶¯Ì¬Ò³Ã棬ֻÐèÒª¸ü¸Älib.jsÎļþÖÐRequstUrl±äÁ¿µÄÖµ¼´¿É¡£
ÍêÕûʾÀýÏÂÔØ
Ч¹ûÈçÏÂ
var Showbo={author:'showbo',homepage:'http://www.code-design.cn'};
Showbo.IsIE=!!document.all;
Showbo.IsFireFox=navigator.userAgent.indexOf("Firefox")!=-1;
Showbo.trim=function(v,reg){if(reg)return v.replace(reg,'');else return v.replace(/^\s*|\s*$/,'');}
Showbo.getJson=function(v){return eval('('+v+')');}
//»ñȡij¸ö¶ÔÏóµÄ¾ø¶ÔλÖÃ
Showbo.getAbsPos=function(o,addXY){o=Showbo.$(o);var p=new Object();p.x=o.offsetLeft;p.y=o.offsetTop;while(o=o.offsetParent){p.x+=o.offsetLeft;p.y+=o.offsetTop;}if(addXY){if(!isNaN(addXY.x))p.x+=addXY.x;if(!isNaN(addXY.y))p.y+=addXY.y;}return p;}
Showbo.$=function(Id,isFrame){
var o ......