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

 找回密码
 立即注册
搜索

[疑难] 这样的代码为什么打开和首页显示一模一样?

[复制链接]
kisme24 发表于 2009-9-14 19:56:20 | 显示全部楼层 |阅读模式
SupeSite模板
语言编码: GBK简体 
风格转换者: 仿制
  1. <?exit?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=gbk" />
  5. <title>小编</title>
  6. <meta name="keywords" content="" />
  7. <meta name="description" content="" />
  8. <link id="cssChange" href="{S_URL}/templates/$_SCONFIG[template]/css/tuijian.css" rel="stylesheet" type="text/css">
  9. <!--[if ie 6]>
  10. <style>
  11. .MainLeft{width:246px; float:left; text-align:left;background:#fff;margin-left:2px;margin-top:10px;}
  12. </style>
  13. <![endif]-->
  14. <!--[if ie 7]>
  15. <style>
  16. .MainLeft{width:246px; float:left; text-align:left;background:#fff;margin-left:8px;margin-top:10px;}
  17. </style>
  18. <![endif]-->
  19. <!--[if ie 8]>
  20. <style>
  21. .MainLeft{width:246px; float:left; text-align:left;background:#fff;margin-left:8px;margin-top:10px;}
  22. </style>
  23. <![endif]-->
  24. <script type="text/javascript" src="{S_URL}/templates/$_SCONFIG[template]/js/jquery.js"></script>
  25. </head>
  26. <body>
  27. <SCRIPT language=javascript>
  28. JQ = jQuery.noConflict();
  29. function changeMap(obj)
  30. {
  31. for(i=1;i<=6;i++)
  32. {
  33. if(obj==i){
  34. JQ("#big_"+i).css("display","block");
  35. JQ("#small_"+i).css("display","none");

  36. }else{
  37. JQ("#big_"+i).css("display","none");
  38. JQ("#small_"+i).css("display","block");
  39. }
  40. }
  41. }
  42. </SCRIPT>
  43. <div class="MainLeft">
  44. <div class="MainLeftCon1">
  45. <div class="Rank">
  46. <!--{block name="spacenews" parameter="catid/2/order/i.dateline DESC/limit/0,6/subjectlen/40/cachename/newslist"}-->

  47. <!--{eval $i = 1}-->
  48. <!--{loop $_SBLOCK['newslist'] $value}-->

  49. <div class="Rankcon" id="big_<!--{eval print $i;}-->"
  50. style="DISPLAY: <!--{if $i != 1}--><!--{eval echo 'none'}--><!--{else}--><!--{eval echo 'block'}--><!--{/if}-->;
  51. BACKGROUND: url({S_URL}/templates/$_SCONFIG[template]/images/icon00<!--{eval echo $i;}-->.gif) #ff5e03 no-repeat right bottom"><H3 class="white">
  52. <a href="$value[url]"
  53. target="_blank">$value[subject]</A>
  54. </h3>
  55. <h4>发布日期:#date('y.m.d', $value['dateline'])#</h4>
  56. </div>
  57. <div id="small_<!--{eval echo $i;}-->" onmouseover="changeMap(<!--{eval echo $i;}-->);" style="DISPLAY: <!--{if $i != 1}--><!--{eval echo 'block'}--><!--{else}--><!--{eval echo 'none'}--><!--{/if}-->;">
  58. <ul class="gray6"
  59. style="BACKGROUND: url({S_URL}/templates/$_SCONFIG[template]/images/icon0<!--{eval echo $i;}-->.gif) #dddddd no-repeat 7px 6px"><li>$value[subject]</li>
  60. </ul>
  61. </div>
  62. <!--{eval $i++;}-->
  63. <!--{/loop}-->

  64. </div>
  65. </div>
  66. </div>
  67. </body>
  68. </html>
复制代码
回复

使用道具 举报

yushine 发表于 2009-9-14 20:28:19 | 显示全部楼层
回复

使用道具 举报

 楼主| kisme24 发表于 2009-9-15 07:56:06 | 显示全部楼层
看这个
https://discuz.dismall.com/viewth ... 5242&highlight=
yushine 发表于 2009-9-14 20:28



谢谢你啦!这就看看去
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-9-14 05:14 , Processed in 0.107604 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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