Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

[疑难] 求助达人,修改模版时遇到瓶颈

[复制链接]
lionkingc 发表于 2009-3-5 17:51:38 | 显示全部楼层 |阅读模式
本帖最后由 lionkingc 于 2009-3-5 18:02 编辑

求助
使用了官网的SOFTSEA模版 ,登陆页面中,有一段:
<script src="/mysite/batch.panel.php?rand={eval echo rand(1, 999999)}" type="text/javascript" language="javascript"></script>  

我自己弄了个首页网格,复制本方法正常,后来需要新增加一个功能,鼠标指向该类信息可以显示更多内容出来,见网站正中间。
11111.jpg

此功能需要声明:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

而加了此声明后,原有的登陆的背景无法明显出来。。。这个问题困扰了我一个月了,寻求达人帮助。
22222.jpg


网址是:
http://www.premiergz.com/mysite/
3333.jpg
回复

使用道具 举报

 楼主| lionkingc 发表于 2009-3-5 17:52:14 | 显示全部楼层
本帖最后由 lionkingc 于 2009-3-5 17:53 编辑

以下是batch.panel.php内容:

  1. <?php
  2. include_once('./include/main.inc.php');
  3. include_once(S_ROOT.'./language/batch.lang.php');
  4. getcookie();
  5. $uid = $_SGLOBAL['supe_uid'];
  6. if(!empty($uid)) {
  7. $uid_url = url_remake(geturl("uid/$uid"));
  8. print <<<END
  9. document.write('<div id="loginbg" style="background-image:url(http://www.premiergz.com/mysite/images/dong3_73.png)";height:"171";width:"212";border:0px; ><br><h3>$blang[my_menu]</h3>');
  10. document.write('<ul class="msgtitlelist">');
  11. document.write('<li><a href="$uid_url" target="_blank">$blang[my_space]</a> &nbsp; <a href="$siteurl/spacecp.php?docp=me" target="_blank">$blang[space_management]</a></li>');
  12. document.write('<li><a href="$bbsurl/pm.php" target="_blank">$blang[my_pm]</a> &nbsp; <a href="$bbsurl/" target="_blank">$blang[forum_visit]</a></li>');
  13. document.write('<li><a href="$siteurl/?action-site-type-panel" target="_self">$blang[my_quickly_face]</a> &nbsp; <a href="$siteurl/batch.login.php?action=logout" target="_self">$blang[safe_logout]</a></li>');
  14. document.write('</ul></div>');
  15. END;
  16. } else {
  17. $siteurl = S_URL_ALL;
  18. print <<<END
  19. document.write('<form id="login" method="post" name="login" action="$siteurl/batch.login.php?action=login" target="_self">');
  20. document.write('<fieldset id="userlogin"  style=background-image:"url(http://www.premiergz.com/mysite/images/dong3_73.png)";height:"171";width:"212";border:0px  >');
  21. document.write('<p><input type="text" name="username" id="username" class="loginrounded"/></p>');
  22. document.write('<p><input type="password" name="password" id="userpass" class="loginroundedps"/></p>');
  23. document.write('<span class="loginroundedbu"><button type="submit" style="width: 53px; height: 22px; border:none;"name="loginsubmit" id="dologin" value="true"><img src="http://www.premiergz.com/mysite/images/login.jpg"></button> <button style="width: 53px; height: 22px; border:none;"name="reg" onClick="location.href=\'$bbsurl/register.php?referer=$siteurl/index.php\'"><img src="/images/reg.jpg"></button> <button style="width: 64px; height: 22px; border:none;"name="pw" onClick="location.href=\'$bbsurl/member.php?action=lostpasswd\'"><img src="/images/forgetpsjpg.jpg"></button></span>');
  24. document.write('</fieldset>');
  25. document.write('</form>');
  26. END;
  27. }
  28. ?>
复制代码
回复

使用道具 举报

am6 发表于 2009-3-5 20:08:27 | 显示全部楼层
为求最大兼容,那个声明是必要的。
显示问题要检查CSS代码部分
回复

使用道具 举报

 楼主| lionkingc 发表于 2009-3-6 10:54:28 | 显示全部楼层
  1. document.write('<fieldset id="userlogin"  style=background-image:"url(http://www.premiergz.com/mysite/images/dong3_73.png)";height:"171";width:"212";border:0px  >');
复制代码
代码只有这段-。-
回复

使用道具 举报

 楼主| lionkingc 发表于 2009-3-12 15:33:58 | 显示全部楼层
((em:13))没人,顶起来
回复

使用道具 举报

benba 发表于 2009-3-12 20:11:17 | 显示全部楼层
没有背景是CSS的问题!改CSS就好了!
回复

使用道具 举报

 楼主| lionkingc 发表于 2009-3-13 11:10:27 | 显示全部楼层
问题是改来改去不出来啊,,只要去掉前面的声明,就可以出来。。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
去掉这段就可以显示出背景,,但另一功能又需要这段。。。汗
回复

使用道具 举报

 楼主| lionkingc 发表于 2009-4-7 10:28:34 | 显示全部楼层
顶起来
阿阿
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-10-21 05:03 , Processed in 0.113973 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表