PHP正则表达式匹配图片地址
<?php $str='<p><img border="0" src="upfiles/2009/07/1246430143_1.jpg" alt=""/></p>'; $pattern="/<[img|IMG].*?src=[\'|\"](.*?(?:[\.gif|\.jpg]))[\'|\"].*?[\/]?>/"; preg_match_all($pattern,$str,$match); print_r($match);…
<?php $str='<p><img border="0" src="upfiles/2009/07/1246430143_1.jpg" alt=""/></p>'; $pattern="/<[img|IMG].*?src=[\'|\"](.*?(?:[\.gif|\.jpg]))[\'|\"].*?[\/]?>/"; preg_match_all($pattern,$str,$match); print_r($match);…
//判断输入内容是否为空 function IsNull(){ var str = document.getElementById('str').value.trim(); if(str.length==0){…
<STYLE type="text/css"> .formone_left{float:left; width:110px; padding:0 14px 0…
<embed src='xxx' width="20" height="20" autostart="true"…
//改成你的计时日期,格式为MM-DD-YYYY showtime("10-08-2014"); function showtime(tian){…
window.setTimeout("showtime('"+tian+"')", 10000);
BirthDay=new Date(tian);
//返回昨天的日期:如2013-10-08…
function getYestoday(){
var date=new Date();
var yesterday_milliseconds=date.getTime()-1000*60*60*24;
.all IE{property:value\9;} .gte IE 8{property:value\0;} .lte IE 7{*property:value;}…
$(document).ready(function(){…
$('#news_title').bind('input',fun).bind('keyup',fun);
}); //function list
var fun=function(){
value=$(this).val();