Ezilon.com - Target Your Audience, be Seen in Your Region

Apache 2 directory / htaccess question

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.

They have: 68 posts

Joined: Jun 2006

Hey all,

I'm trying to force my apache-generated directories to display thumbnails of images in the directories rather than an icon.

I have some JS that I put into the footer that forces it in firefox, but it doesn't work in IE.

You can see the live problem here: http://www.foothillsbaptist.org/contacts/All/

Here's the code:

<script type="text/javascript">
   var oFileList = document.body.childNodes[3];
   for(var i = 0; i<oFileList.childNodes.length; i++){
      var oImgNode = oFileList.childNodes[i];
      var oLinkSrc = oFileList.childNodes[(i+2)];
      if(oImgNode.nodeName.toLowerCase() == 'img'){
         if(oImgNode.src.substr(-10).toLowerCase() == 'image2.gif'){
          var sFileName = oLinkSrc.innerHTML;
         sFileName = sFileName.substr(0, sFileName.lastIndexOf('.'));
         oLinkSrc.innerHTML = sFileName;
            oImgNode.style.width = '100px';
            oImgNode.src = oLinkSrc;
         }
      }
   }
&lt;/script&gt;

'

The other thing I'm shooting for is cutting off the extension of the file.

Anyone have any ideas? Thanks.

They have: 32 posts

Joined: Apr 2007

I don't have a lot of experience with servers and stuff... but from what I know, it seems like you are trying to do more than the directory page is meant to do. Why not just create your own contact pages with html? Is there another purpose you are trying to fulfill in using the server created directory view?