如何以每页40张图片的形式优化广告网站的图片? [英] How to optimize Images of Advertisement Website with 40 Images per page?

查看:87
本文介绍了如何以每页40张图片的形式优化广告网站的图片?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在编写一个网站,以便在某些页面上显示带有其图像的广告.
我只将图片的名称保存在数据库中,并将图片的文件保存在网站根目录下的文件夹中.
如何优化网站中图片的加载,因为在某些页面中我应该每页显示20-40个广告?
有没有可以帮助我的DLL?

我该怎么办?

请帮帮我.

Hello Everybody,

I am programming a Website that shows Advertisements with their Images in certain pages.
I save just the name of the pictures in the database and the file of the Images is saved in a folder in the root of the website.
How can I optimize loading of Images in the website because in certain pages I should show 20-40 Advertisement per page?
Is there any DLL that can help me?

What should I do?

Please help me.

推荐答案

如果您拍摄的每张小于100kb的图片,也可以将其分解成较小的一部分,然后制成单个图像,每个图像使用div标签,这将有助于提高性能和加载.希望对您有帮助.
This can be done if you take you picture of less than 100kb each or you can break down your picture into smaller piece and then make it into single image using div tags for each image, this will help in increasing the performance and loading.Hopes it will help you.


您好,


您可以使用表格来管理每页图像.取一张表并使用2列(Page,NoOfAdd).现在取决于您如何显示图像. (AddRotator,Usercontrol).现在,要获取图像大小,请为其显示运行时缩略图,以便您管理图像的大小.
Hi,


You can use table to manage image per page. Take a one table and use 2 column (Page,NoOfAdd). Now it is depend on you how you display your image. (AddRotator, Usercontrol). Now for image size, display runtime thumbnail for it so you can manage size of the image.


这篇关于如何以每页40张图片的形式优化广告网站的图片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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