PHP的画廊请帮助! [英] PHP GALLERY HELP PLEASE !!

查看:71
本文介绍了PHP的画廊请帮助!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我需要为HTML页面创建图库的帮助,但找不到任何地方的教程,而且我认识的每个人都不知道答案X_X ...

基本上,我需要一个包含2行的页面(每行5张图片),所以一页上需要10张图片,每边都带有下一个和上一个按钮.所有图片都在服务器上的文件中(或者在本例中,在我的站点文件localhost中).

现在,我需要插槽1-10中的最新(日期顺序)图片,当您单击下一步"时,它将按日期顺序加载下10个文件,如果您单击上一个...",则会按日期顺序加载较新的10张图片. .

有人可以帮我解释一下我如何做到这一点,以及在哪里可以学习到如何做到这一点/对此有帮助吗?

非常感谢,
乔什

[从OP的解决方案"中添加以下内容,需要将其删除— SA]

哦,我不能把它作为某公司的下载文件,我希望自己/朋友帮忙编写该文件并从中学习,而不是下载该文件.

谢谢,
Josh

Hi there, I need help with creating a gallery for an HTML page but cannot find a tutorial anywhere and everyone I know doesn''t know the answer X_X...

Basically I need a page with 2 rows (5 pics in each row), so 10 pics on a page with a next and previous button on each side. All the pictures are in a file on the server ( or in this case, in my site file, localhost).

Now I need the newest (date order) pics in slot 1-10, and when you click next, it loads the next 10 files in date order, and if you click previous.... it loads the newer 10 pictures in date order.

Can anyone help me explaining how I do this and where I can go to learn how to do this / help for this?

Thanx so much,
Josh

[Added below from the OP''s "solution" which needs to be removed — SA]

Oh and I cant have it be a downloaded file from some company, I want to be able to write it myself / friends help and actually learn from it rather than download it.

Thanx,
Josh

推荐答案

即使您对画廊设计的含糊想法也不足以开始进行此项目.

例如,行上固定数量的图像确实很糟糕,它假定固定大小的浏览器窗口太可笑了,这在客户端的现实生活中并非如此.一些(许多)使用移动设备.缩略图有什么规定吗?没有这些,您将无法使画廊变得方便,甚至无法关闭.不同的观看选项怎么样?较小的尺寸,实际尺寸,真实像素"?飞涨? (这可以认为太高级了.)

即使仅使用服务器端编程(PHP)即可轻松创建图库,但如果不使用JavaScript进行一些客户端编程,它通常还是太静态或太慢(但是如果您的要求不高,则只需要一点点客户端编程.我发现jQuery非常有用.

现在,您可以找到大量的项目用于样本或只是学习一些技术:

http://lmgtfy.com/?q=gallery+PHP [ http://lmgtfy.com/?q=gallery+PHP+(JavaScript + OR + jQuery) [ ^ ].

—SA
Even your vague ideas about the design of the gallery are not good enough to start doing this project.

For example, fixed number of images on row is really bad, it would assume fixed size of a browser window which is ridiculous — this is not what happens in real life on the client side. Some (many) use the mobile devices. Any provisions of thumbnail? Without those you cannot make a gallery convenient, not even close. How about different viewing options? Smaller size, actual size, "real pixel"? Zoom? (This can be considered as too advanced.)

Even though you can easily make a gallery using only server-side programming (PHP), it''s usually either too static or too slow without some client-side programming using JavaScript (but if your requirements are modest, you need only a bit of client-side programming. I find jQuery extremely helpful.

Now, you can find tons of projects to use for samples or just to learn some techniques:

http://lmgtfy.com/?q=gallery+PHP[^]

or may be

http://lmgtfy.com/?q=gallery+PHP+(JavaScript+OR+jQuery)[^].

—SA


这篇关于PHP的画廊请帮助!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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