changing DIV background by pressing link

changing DIV background by pressing link

hello everyone,
I have function:
  1. function blabla(){
    $("#div").css("background-image", "url(img/new.png)");
    }



This function changing div background which ID is div.

And:
how to do that div background will change only on pressing link (not after release mouse button)?

EDIT:
okay i solved this problem:

but i have another question, how to make background repeat repeat-x by using .css jQuery function?