图片库 - 它应该比这更容易 [英] image gallery - it should be easier than this
问题描述
我想要做的就是阅读我文件夹中的图像文件列表,然后
在页面上显示它们。这样我就不必重新编写页面了,我可以上传额外的图片。
我不需要花哨的铃铛或者口哨或滑动表演或滑块或
任何东西。
我想出的最小的谷歌搜索提供了一百万页,大多数是
他们的铃铛和哨子类型,我找不到树木。
有人可以帮忙吗?
理查德
-
Richard于8/6/2006 4:46 AM发表以下内容:
>
我想要的是阅读我文件夹中的图像文件列表和
在页面上显示它们。
除非你有服务器端脚本可用,否则你将无法获得
,因为javascript无法访问服务器文件系统。
这样我就不必重新编写页面了,我可以上传额外的图片。
我不喜欢不需要花哨的钟声或口哨或幻灯片或滑块或任何东西。
您可以做的是上传图片,获取FTP列表,
将其复制到文本文件,从中创建一个数组名称,然后上传
文件作为.js文件并将其包含在页面中。
-
Randy
comp.lang.javascript常见问题 - http://jibbering.com/faq &新闻组每周
Javascript最佳实践 - http://www.JavascriptToolbox .com / bestpractices /
在消息< DZ ********************* *********@comcast.com> ;, Randy Webb
< Hi ************ @ aol.comwrites
> Richard在2006年8月6日上午4:46发表以下内容:
>我想要做的就是阅读我的文件夹中的图像文件列表
并在页面上显示它们。
除非你有服务器端脚本,否则你将无法访问服务器文件系统。
>这样我就不必重新编写页面了,我可以上传额外的图片。
我不需要花哨的铃铛或口哨或幻灯片显示或滑块或任何东西。
您可能会做的是上传您的图片,获取FTP列表,将其复制到文本文件,从名称创建一个数组,然后上传>将该文件作为.js文件并将其包含在页面中。
嗯...这就是我们对简单的定义。不同。 ;-)
目前这超出了我的技能。
我找到了一个程序在这里做了一个整洁的版本我自己的电脑和
生成html页面,如: -
http://www.topshareware.com/Actual-W...load-13520.htm
可以设置这样做: -
http://www.squeaky.demon.co.uk/Freec...y/gallery.html
所以这是我找到的最好的方式。
< sigh>
感谢您的回复;-)
< br $>
Richard
-
Randy Webb写道:
< blockquote class =post_quotes>
Richard在8/6/2006 4:46 AM发表以下内容:
>> ;
我想要做的就是阅读我文件夹中的图像文件列表,然后在页面上显示它们。
除非你有服务器端脚本可用,否则你将无法获得
,因为javascript无法访问服务器文件系统。
>这样我就不必重新编写页面,我只需上传额外的图像。
我不需要花哨的铃铛或口哨或幻灯片或滑块或任何东西。
你可能做的是上传你的图像,获得一个FTP列表,
将它复制到一个文本文件,从中创建一个数组名称,然后上传
文件作为.js文件并将其包含在页面中。
我也有CMS /图像-display问题..是可能的,
用JS或服务器端(在我的情况下可能是Java或
PHP)来检测DIMENSIONS图像?我不想要一个为你设置尺寸图像的系统..我希望图像显示完全相同的
尺寸。我前几天正在读这个。 。
http://www.alistapart.com/文章/ magazinelayout /
但他似乎暗示只有通过让系统
确定图像尺寸才能做到这一点。还有另一种方式吗?
谢谢..
All I want to do is to read a list of the image files in my folder and
display them on a page. That way I don''t have to re-write the page, I
can just upload extra images.
I don''t need fancy bells or whistles or slide shows or sliders or
anything.
The smallest google search I come up with offers a million pages, most
of them bells and whistle types and I can''t find the wood for the trees.
Can anybody help please?
Richard
--
Richard said the following on 8/6/2006 4:46 AM:>
All I want to do is to read a list of the image files in my folder and
display them on a page.Unless you have server side scripting available then you won''t be able
to as javascript has no way to access the server file system.
That way I don''t have to re-write the page, I can just upload extra images.
I don''t need fancy bells or whistles or slide shows or sliders or anything.What you could possibly do is upload your images, get an FTP listing,
copy it to a text file, create an array from the names, then upload that
file as a .js file and include it in the page.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
In message <DZ******************************@comcast.com>, Randy Webb
<Hi************@aol.comwrites
>Richard said the following on 8/6/2006 4:46 AM:> All I want to do is to read a list of the image files in my folder
and display them on a page.
Unless you have server side scripting available then you won''t be able
to as javascript has no way to access the server file system.
>That way I don''t have to re-write the page, I can just upload extra images.
I don''t need fancy bells or whistles or slide shows or sliders or anything.
What you could possibly do is upload your images, get an FTP listing,
copy it to a text file, create an array from the names, then upload
that file as a .js file and include it in the page.Hmm... this is where our definitions of "simple" differ. ;-)
That is beyond my skills at the moment.
I''ve found a program that does a neat version here on my own PC and
generates the html page, as in:-
http://www.topshareware.com/Actual-W...load-13520.htm
Which can be set up to produce this:-
http://www.squeaky.demon.co.uk/Freec...y/gallery.html
So far it''s the best way I''ve found.
<sigh>
Thanks for your reply ;-)
Richard
--
Randy Webb wrote:Richard said the following on 8/6/2006 4:46 AM:>>
All I want to do is to read a list of the image files in my folder and
display them on a page.
Unless you have server side scripting available then you won''t be able
to as javascript has no way to access the server file system.
>That way I don''t have to re-write the page, I can just upload extra
images.
I don''t need fancy bells or whistles or slide shows or sliders or
anything.
What you could possibly do is upload your images, get an FTP listing,
copy it to a text file, create an array from the names, then upload that
file as a .js file and include it in the page.
I also have a CMS/images-display question.. is is at all possible,
either with JS or server-side (which in my case would be either Java or
PHP) to detect DIMENSIONS of the images? I do not want a system which
sizes images for you.. I want images to display at exactly same
dimension they are.. I was reading this the other day..
http://www.alistapart.com/articles/magazinelayout/
but he seems to be implying only way to to do this is by letting system
determine dimensions of images.. is there another way?
thanks..
这篇关于图片库 - 它应该比这更容易的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!