There is no keyword callto use to call the function. Therefore just using
myfunc(divid);
to call your function.
li -s div -s, , , li -s div, "info", , .
<li id='d1'> </li>
<li id='d2'> </li>
<li id='d3'> </li>
<div id='info1'></div>
<div id='info2'></div>
<div id='info3'></div>
$('.mycls li').hover(function() {
var divid = "info" + $(this).attr('id').slice(1);
myfunc(divid);
});
function myfunc(divid)
{
$("#" + divid).show();
$("div:not(#" + divid + ")").hide();
}