|
<br><br><div class="msgbody"><div class="msgheader">QUOTE:</div><div class="msgborder">原帖由 <i>支付宝</i> 于 2007-7-16 12:39 发表 <a href="http://www.im286.com/redirect.php?goto=findpost&pid=20570669&ptid=2069399" target="_blank"><img src="http://www.im286.com/images/common/back.gif" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://www.im286.com/images/common/back.gif');}" onmousewheel="return imgzoom(this);" alt="" /></a><br /><br /><br /><br />偶写了个,可以显示出来,但是提示有错误<img src="images/smilies/sad.gif" smilieid="2" border="0" alt="" /><br /><br />才学<img src="images/smilies/sad.gif" smilieid="2" border="0" alt="" /> </div></div><br>哈哈,可以喽~~~<br><br><div class="msgbody"><div class="msgheader"><div class="right"><a href="###" class="smalltxt" onclick="copycode($('code0'));">[Copy to clipboard]</a> <a class="smalltxt" href="###" onclick="toggle_collapse('code0');">[ <span id="code0_symbol">-</span> ]</a></div>CODE:</div><div class="msgborder" id="code0"><html><br /><head><br /> <title>Browse Directories</title><br /> <style type="text/css"><br /><!--<br />@import url("style.css");<br />--><br /> </style><br /></head><br /><body><br /><table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#64A7DE"><br /> <tr><br /> <td><br /><?php<br /> $current_dir = './photo/';<br /> $dir = opendir($current_dir);<br /> while ($file = readdir($dir))<br /> {<br /> $s=explode(".",$file);<br /> if($s[1]=="jpg" or $s[1]=="bmp" or $s[1]=="png" or $s[1]=="gif")<br /> {<br /> <br />?> <br /> <br />&nbsp;<?="<a href='photo/$file' target='_blank'>"?><img src='<? echo "photo/$file"?>' width=120 style='border:6px'><?="</a>"?><br /><br /><? } } <br /> closedir($dir); <br />?><br /></td><br /> </tr><br /></table> <br /></body><br /></html></div></div><br> |
|