Ok it's like this
i have
<html>
<head>
<script type="text/javascript">
function mouseOver()
{
document.b1.src ="b_blue.gif";
}
function mouseOut()
{
document.b1.src ="b_pink.gif";
}
</script>
</head>
<body>
<a href="http://www.w3schools.com" target="_blank"
onmouseover="mouseOver()"
onmouseout="mouseOut()">
<img border="0" alt="Visit W3Schools!"
src="b_pink.gif" name="b1" /></a>
</body>
</html>
and i have to implement it in
function template_files_most_popular() {
global $settings, $lang;
if ($settings['most_popular_list'] == '1') {
echo '
<div class="content_box_header">
'. $lang['most_popular'] . '
</div>'
;
}
echo '
<div class="content_box_popular">
<table width="100%" border="0">
<body><tr>
<td>
';
$b=0;
foreach (most_popular() as $popular) {$b++;
if($b!=7){
echo '
<div class="most_popular">
<a href="'. fileurl($popular['id'],$popular['title']) .'"><img src="'.'//',$_SERVER['HTTP_HOST'],'/project/files/image/', $popular['image'] .'" width="'. $settings['image_width'] .'" height="'. $settings['image_height'] .'" title="'. $popular['title'] .'" alt="'. $popular['title'] .'" border="0" /></a>
<a href="'. fileurl($popular['id'],$popular['title']) .'" class="file_link">'. $popular['title'] .'</a><br />
</div>';
}
}
echo '
</td>
</tr>
</body></table>
</div>';
}
the only problem is that i don't know how to make it for 3 - 4 images not only for 2
pls someone give me some idea for counter to swap images or something