本帖最后由 ddss234 于 2009-10-21 19:17 编辑
平湖风格】【新手求助==爱墙==问题,PHP爱墙换皮肤。
因为空间不支持ASP,所以用了DZ里找的PHP版本。但是绿色的不好看,看到DZ里有个昌平社区的红色QQ爱墙不错,就下载了图片来改。现在遇到一个问题是搜索字条功能不会改了,请高手指教一下吧,谢谢啦!
原来PHP版本的代码应该是:- <?php
- include("inc/coon.php");
- $result=mysql_query("select * from hehun_love order by hehun_id");
- $num=mysql_numrows($result);
- for ($i=0;$i<$num;$i++) {
- $hehun_id=mysql_result($result,$i,"hehun_id");
- $hehun_class=mysql_result($result,$i,"hehun_class");
- $hehun_images=mysql_result($result,$i,"hehun_images");
- $hehun_head=mysql_result($result,$i,"hehun_head");
- $hehun_sign=mysql_result($result,$i,"hehun_sign");
- $hehun_lr=mysql_result($result,$i,"hehun_lr");
- $hehun_date=mysql_result($result,$i,"hehun_date");
- $hehun_cs=mysql_result($result,$i,"hehun_cs");
- $top =rand(110,418);
- $left=rand(81,625)
- ?>
- <div id="Layer<?=$hehun_id?>" class="Face<?=$hehun_class?>" style="top:<?=$top?>px;left:<?=$left?>px;z-index:1" onmousedown="Move(this,event)" ondblclick="Show(1)">
- <p class="Num">爱墙编号:<?=$hehun_id?><img src="hehun_images/close.gif" alt="关闭" onclick="Close(<?=$hehun_id?>)" /></p><p class="Detail"><img alt="" src="hehun_images/icon<?=$hehun_images?>.gif" /><span class="Head"><?=$hehun_head?></span><br /><?=$hehun_lr?></p><p class="Sign"><table class="Sign"width="95%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td><div align="left"><a href="zf.php?id=<?=$hehun_id?>" title="点击祝福">祝福次数:<?=$hehun_cs?>次</a></div></td>
- <td><div align="right"><?=$hehun_sign?></div></td>
- </tr>
- </table></p><p class="Date"><?=$hehun_date?></p></div>
复制代码 现在套用ASP版本的按钮表单代码是下面这个:- <input id="find" name="id" class="input" type="text" maxlength="10" size="15" value=" 请输入字条编号 " onclick="this.value='';" />
- <input type="image" src="hehun_images/btn_search.gif" alt="搜索" onclick="find();" />
复制代码 问题是现在怎样让这个新的按钮响应原来的搜索事件呢?
我的爱墙地址:http://taining.org.ru/love/index.php
还没有改好。 |