jQuery(document).ready(function($) { $("a[rel^='colorbox']").colorbox({ current:'{current} of {total}'}); });