將下面的代碼復(fù)制,然后新建一個(gè)htm文件,將其復(fù)制到里面保存,重命名為m_photos.htm,然后上傳到到論壇的
/apps/photos/template
下面
<!-- A5源碼資訊:http://down.vevb.com/info -->
<!--<? php print <<<EOT-->
<!--EOT;if($cssForum){print <<<EOT-->
<div class="c"></div>
<link rel="stylesheet" type="text/css" href="$pwModeImg/app.css" />
<!--EOT;}print <<<EOT-->
<script type="text/javascript">
var imgMaxWidth=710;
function ImgLoad()
{
var o = document.getElementById("imgview");//.getElementsByTagName("img")[0];
var pe = document.getElementById('imgpre');
if(o==null || pe == null || !pe.width)
{
setTimeout(ImgLoad, 400);
}else
{
if (pe.width>imgMaxWidth){
if (o.style.width){
o.style.width="";
}
o.width=imgMaxWidth;
o.removeAttribute("height");
o.style.cursor="hand";
o.vspace=5;
o.resized=1;
}
else
{
o.width=pe.width;
}
o.src=pe.src;
var next = getObj('next');
var pre = getObj('pre');
setTimeout(function(){
next.coords = '0 0 ' + ',' + o.width/2 + ',' + o.height;
pre.coords = o.width/2 + ' 0 ' + ',' + o.width + ',' + o.height;
},400);
}
}
</script>
<img id="imgpre" src="$photo[path]" style="position:absolute;left:-10000px" onload="ImgLoad()" />
<div id="content" class="fr">
<div style="padding:15px 15px 0;">
<div class="app-title cc">
<!--EOT;if($m == 'o'){print<<<EOT-->
<a href="{$basename}space=1" class="gray fr">進(jìn)入個(gè)人空間瀏覽»</a>
新聞熱點(diǎn)
疑難解答
圖片精選