关于大量丰富文件管理的建议 [英] Recommendation for mass abundance file management

查看:67
本文介绍了关于大量丰富文件管理的建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一位摄影师客户,他们的网站上有10,000个照片文件(jpeg)。在查看照片的网站上,您必须单独单击每个照片,并在完成查看时单击X。另一个词,没有灯箱,允许滚动浏览照片。



我正在寻找一种方法或建议如何丢弃/传输/转换现有的JPEG文件到一个不需要手动输入每个文件并放置在html结构中的lightbox环境。



此处是他的一个页面的例子。你会看到所有的照片显示为缩略图。点击一个,然后在Lightbox中打开它。如果可能的话,我会打开以添加滚动功能到现有的灯箱。



在此先感谢您。

解决方案

根据当前页面的结构,您可能只需要进行智能查找和替换。编辑:



$ b 编辑:假设您目前的代码大致如下:

 < ul> 
< li>< a class =showimagehref =pic1.jpg>< img src =pic1thumb.jpg/>< / a>< / li>
< li>< a class =showimagehref =pic2.jpg>< img src =pic2thumb.jpg/>< / a>< / li>
< / ul>

要将其放入Lightbox环境,您需要使用以下格式:

 < ul> 
< li>< a rel =lightboxhref =pic1.jpg>< img src =pic1thumb.jpg/>< / a>< / li>
< li>< a rel =lightboxhref =pic1.jpg>< img src =pic1thumb.jpg/>< / a>< / li>
< / ul>

然后你需要找到:

  class =showimage

/ p>

  rel =lightbox

我希望能解释它。如果您想要针对您的需求定制更具体的答案,您必须发布当前代码/ html的代码片段。


I have a photographer client who has 10,000 + photo files ( jpegs ) on their site. When on the site viewing the photographs, you have to click EACH one individually and X out of it when done viewing. Another words, no lightbox that allows scrolling through the photos.

I am searching for a method or recommendation on how to "drop"/transfer/convert the existing jpeg files into a lightbox environment with out having to hand type each file indivually and place in the html structure.

Here is an example of one of his pages. You will see all the photos displayed as thumbnails. Click one and then it opens it in a lightbox. I would be open to be able to add a scroll function to the existing light box if possible

Thanks in advance.

解决方案

Depending on the structure of the current page, you could likely just do a smart find and replace. If it's a little more complicated, you could write a simple script to do the conversion for you.

EDIT:

Let's say you're current code is something along the lines of:

<ul>
    <li><a class="showimage" href="pic1.jpg"><img src="pic1thumb.jpg" /></a></li>
    <li><a class="showimage" href="pic2.jpg"><img src="pic2thumb.jpg" /></a></li>
</ul>

To put it into a lightbox environment, you'll want it to be in this format:

<ul>
    <li><a rel="lightbox" href="pic1.jpg"><img src="pic1thumb.jpg" /></a></li>
    <li><a rel="lightbox" href="pic1.jpg"><img src="pic1thumb.jpg" /></a></li>
</ul>

Then you'll need to find:

class="showimage"

and replace it with

rel="lightbox"

I hope that explains it. You'll have to post a snippet of your current code/html if you want a more specific answer tailored to your needs.

这篇关于关于大量丰富文件管理的建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆