Haihan'Blog

Linux、Apache/Nginx、MySQL、PHP爱好者

修改 /include/js/common.js 中的的 addMediaAction(div) 函数为下面的样子即可。 //显示隐藏媒体 function addMediaAction(div) { var thediv = getbyid(div); if(thediv) { var medias = thediv.getElementsByTagName('kbd'); if(medias) { for (i=0;i<medias.length;i++) { if(medias[i].className=='showvideo' || medias[i].className=='showflash'|| medias[i].className=='showreal') { //medias[i].onclick = function() {showmedia(this,400,400)}; {showmedia(medias[i],400,400)}; } } } } }

Categories: WEB前端

<?php /** * FILE_NAME:index.php * PHP+MySQL采集ICP网站备案系统 * * @copyright Copyright (c) 2011-2015 www.phpwebgo.com * @author phpwebgo@gmail.com * @package core * @version 2011-1-11 下午03:25:55 */ header("Content-type:text/html;charset=utf-8"); include_once("conn.php"); $id=(int)$_GET['id']?(int)$_GET['id']:"1"; if($id<=5269289 && $id){ set_time_limit(0); $con=@file_get_contents("http://www.miibeian.gov.cn/icp/publish/query/icpMemoInfo_login.action?id=".$id.""); $con=iconv("GBK","utf-8",$con);//echo $con; $tmp = "/<tr.*>(.*)</tr>/iUs"; preg_match_all ( $tmp, $con, $macthes ); //print_r($macthes);die; $tmp = "/<td.*>(.*)</td>/iUs"; $arr = Array (); foreach ( $macthes [1] [...]

Categories: PHP编程