From this question, we know that every map of the form $J(C) \to J(C)$ for a curve $C$ and it's jacobian $J(C)$ comes from a correspondence between $C\times C$ and in fact we can take this correspondence as a divisor on $C\times C$.
Now, let us take a map $f: C\to D$ of curves and consider the induced map $\pi: J(C) \to J(D) \to J(C)$ which is a projection onto a factor. What correspondence does it correspond to, or more precisely, what is the divisor $X \subset C\times C$ with maps $\alpha,\beta: X \to C$ such that $\pi = \beta_*\alpha^*$?