Can you set an onclick event with jquery passing a variable as a parameter?

Can you set an onclick event with jquery passing a variable as a parameter?

what i want to do-

$("#temp").mouseover(bubble(i,i));


i is created from a for loop, and bubble is a fairly large function so not interested in redeclaring it just for this statement
ive tried something like
$("#temp").mouseover("bubble("+i+","+i+")");

but did not work, any ideas