如何a href link
在每个不同的图像上使用多个不同的?并且图像是从`文件夹或目录中获取的?
php代码
<?php
$directory = "data/uploads/bottomslider/";
if (glob($directory . "*") != false)
{
$filecount = count(glob($directory . "*"));
}
$files_index = glob("data/uploads/"."bottom"."slider/*.*");
for ($i=0; $i<$filecount; $i++)
{
$num2 = $files_index[$i];
?>
<li class="jcarousel-item"><a href=""><img src="<?php echo $num2;?>"
style="height: 119px!important; width:132px !important;"/></a></li>
<? }?>
例如
i want like this?
<a href="google.com">Image1</a>
<a href="facebook.com">Image2</a>
<a href="yahoo.com">Image2</a>