Вот быстрое решение для вас, используя некоторые атрибуты html5
... На самом деле это было возможно и до html5, но не проверялось.
Я бы создал ссылки, как показано ниже:
<a class="myClazzz" href="<?=$rowz[0]?>" data-row="<?=$row[6]?>" data-index="<?=$indexl?>">...</a>
_ здесь мы помещаем ваши параметры в data
атрибуты
и напишите js следующим образом:
$(function(){
//use mouseup, then it doesn't matter which button
//is clicked it will just fire the function
$('.myClazzz').bind('mouseup', function(e){
//get your params from data attributes
var row = $(this).attr("data-row"),
index = $(this).attr("data-index");
//and fire the function upon click
countLinks(row,index);
});
});
//don't forget to include jquery, before these lines;)
Надеюсь, это сработает. Синан.
PS
myClazzz -> кредиты отправляются в jAndy:)