2009-09-05 42 views
0

我想解决某人的网站上的东西。关于从CMS的PHP代码的问题

Unfortunatley,该网站建立在名为GeekPak的CMS上,并以PHP构建。我知道一些PHP,但我不是专家。

我一直在尝试解决以下问题已经有一段时间了。

问题:如果您继续this page,您会在右下角看到一个缩略图库。画廊里有6张图片。前两个是间隔符(nothing.gif)。问题是,而不是那些垫片进入右下角......他们进入左上角。我认为谁曾经开发过它,用nothing.gif填充所有内容,然后用图像替换它,但是它们从右到左......而不是从左到右。

以下是代码,我无法理解它。

<tr> 
    <td class="galleryThumbs"> 
     <div class="sepinator"></div> 
     <div class="extlinkinator"> 
      <a href="javascript:extClick();" id="externalLink"></a> 
     </div> 
     <div class="paginator"> 
      <a href="javascript:leftClick();" id="arrowL" class="arrowL0"><img src="/templates/images/nothing.gif" width="12" height="11" border="0" alt="" /></a> 
      <a href="javascript:rightClick();" id="arrowR" class="arrowR0"><img src="/templates/images/nothing.gif" width="12" height="11" border="0" alt="" /></a> 
     </div> 
     <br clear="all" /> 
     <a href="javascript:setBig('8');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb8" /></a> 
     <a href="javascript:setBig('7');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb7" /></a> 
     <a href="javascript:setBig('6');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb6" /></a> 
     <a href="javascript:setBig('5');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb5" /></a> 
     <br> 
     <a href="javascript:setBig('4');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb4" /></a> 
     <a href="javascript:setBig('3');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb3" /></a> 
     <a href="javascript:setBig('2');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb2" /></a> 
     <a href="javascript:setBig('1');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb1" /></a> 
     ~3*GALLERY_THUMBS_ALT[where=a.topicID='~1#tid#']* 
     <br /> 
     <img src="/templates/images/nothing.gif" width="339" height="1" border="0" alt="" /></td> 
</tr> 

有人能指导我从哪里可以解决这个问题吗?另外,什么是GALLERY_THUMBS_ALT?我没有在代码中看到那个函数。

编辑:如果你将鼠标悬停在画廊中的图像,你会发现,他们从8开始,死亡1。基本上,他们应该开始形式1,增加至8

如果我更改代码,以便setBig ( '8')成为setBig( '1')等等......然后,它开始看起来像this :(

gallerySmallEmpy是在CSS的类搜索以下

IMG.gallerySmallEmpty 
{ 
    border-color:     #FFF; 
    border-width:     1px; 
    border-style:     solid; 
    margin:     10px 0 0 10px; 
} 

回答

2

开始“.gallerySmallEmpty”,看看里面有什么......虽然T I认为你只需要改变你的代码如下:

<tr> 
    <td class="galleryThumbs"> 
     <div class="sepinator"></div> 
     <div class="extlinkinator"> 
      <a href="javascript:extClick();" id="externalLink"></a> 
     </div> 
     <div class="paginator"> 
      <a href="javascript:leftClick();" id="arrowL" class="arrowL0"><img src="/templates/images/nothing.gif" width="12" height="11" border="0" alt="" /></a> 
      <a href="javascript:rightClick();" id="arrowR" class="arrowR0"><img src="/templates/images/nothing.gif" width="12" height="11" border="0" alt="" /></a> 
     </div> 
     <br clear="all" /> 
     <a href="javascript:setBig('1');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb8" /></a> 
     <a href="javascript:setBig('2');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb7" /></a> 
     <a href="javascript:setBig('3');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb6" /></a> 
     <a href="javascript:setBig('4');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb5" /></a> 
     <br> 
     <a href="javascript:setBig('5');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb4" /></a> 
     <a href="javascript:setBig('6');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb3" /></a> 
     <a href="javascript:setBig('7');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb2" /></a> 
     <a href="javascript:setBig('8');"><img src="/templates/images/nothing.gif" width="73" height="91" border="1" alt="" class="gallerySmallEmpty" id="thumb1" /></a> 
     ~3*GALLERY_THUMBS_ALT[where=a.topicID='~1#tid#']* 
     <br /> 
     <img src="/templates/images/nothing.gif" width="339" height="1" border="0" alt="" /></td> 
</tr> 
  • 请注意,我改变画廊展示的(数字)
+0

代码库是这样的订单后:HTTP ://lorigrahamdesign.com.previewdns.com/index.php?tray = topic_gallery&tid = top318&cid = 26 此外,我已将gallerySmallEmpty添加到该问题以及 – Omnipresent 2009-09-05 18:20:57

+0

对不起,在每个图库的末尾更改id =“thumb8”到javascript中的相应数字:setBig('8'); ,那应该足够了。 – yoda 2009-09-05 18:38:35

+0

我也这样做了,但即使这没有工作:(http://lorigrahamdesign.com.previewdns.com/index.php?tray=topic_gallery&tid=top313&cid=21 – Omnipresent 2009-09-05 19:08:03