我有一个简单的php网站,但由于某种原因,我的照片库页面需要一些时间才能加载。有人可以告诉问题是什么以及如何加快加载时间?图片库页面加载迟缓...可能是什么问题?
这里是php代码。通过我的编码这个文件(photography.php)内的一切,在另一个文件夹仅适用于图像引用的方式......
<?php
$thisPage="Photographer, Caribbean, Jamaica, Bahamas - Cheryl Blackerby";
$thisDescription="";
$thisKeywords="Caribbean, Jamaica, Bahamas";
include("header.php");
//include("html/photography.html");
?>
<div id="photography">
<div id='coin-slider'>
<div id="photos">
<a href="#" target="_blank">
<img src='photography/img_01.jpg' alt="Staniel Cay Yacht Club in the Exumas, Bahamas" />
<span>Staniel Cay Yacht Club in the Exumas, Bahamas</span>
</a>
<a href="#" target="_blank">
<img src='photography/img_02.jpg' alt="Junkanoo dancer in Inagua, Bahamas" />
<span>Junkanoo dancer in Inagua, Bahamas</span>
</a>
<a href="#" target="_blank">
<img src='photography/img_03.jpg' alt="Doctor's Cave Beach in Montego Bay, Jamaica" />
<span>Doctor's Cave Beach in Montego Bay, Jamaica</span>
</a>
<a href="#" target="_blank">
<img src='photography/img_04.jpg' alt="Paella at the Beach House, Eleuthera, Bahamas" />
<span>Paella at the Beach House, Eleuthera, Bahamas</span>
</a>
<a href="#" target="_blank">
<img src='photography/img_05.jpg' alt="Opening of the Supreme Court, Nassau, Bahamas" />
<span>Opening of the Supreme Court, Nassau, Bahamas</span>
</a>
<a href="#">
<img src='photography/img_06.jpg' alt="Flamingos on Inagua, Bahamas" />
<span>Flamingos on Inagua, Bahamas</span>
</a>
</div><!-- end photos -->
</div>
<p id="right-description"><img src="images/side-descrip-photos.jpg" width="20" height="90" alt="Photo Description" /></p>
<script type="text/javascript">
$(document).ready(function() {
$('#coin-slider').coinslider({ width: 840, height: 520, navigation: true, delay: 5000, links : false, hoverPause: true, opacity: 0.7, effect: 'practice', sph: 1, spw: 1 });
});
</script>
</div><!-- end photography -->
<?php
include("footer.php");
?>
这里是链接到该网站:here
我将不胜感激关于这个问题的任何建议以及任何可能有用的编码技术。
感谢,
加里D.
这是您正在使用的硬币滑块JavaScript。即使您的源代码中有'photography/img_01.jpg',我的机器所获得的HTML中也没有这样的''标签。硬币滑块已将图像编码为一些神秘的数据,并将其作为程序运行,而不是图像下载。这会使站点看起来很慢,并且机器越慢,惩罚越严重。 – msw 2010-08-05 00:33:27