jquery colorbox open single image -
i have image in repeater, want open image has been clicked on, don't want other images available paging.
this line in repeater:
<a title="jhddj" rel="relimagestatusupdate" href="<%= format_status_image_url(row["userid"],row["userstatus_id"]) %>" id="ahrefstatusimage"> <img alt="" src="<%= format_status_thumbnailimage_url(row["userid"],row["userstatus_id"]) %>"/></a>
and jquery this:
$(document).ready(function () { $("a[rel='relimagestatusupdate']").colorbox(); });
instead of setting rel
relimagestatusupdate
, change nofollow
. colorbox docs
rel: false
can used anchor rel alternative colorbox. allows user group combination of elements gallery, or override existing rel elements not grouped together. example: $('#example a').colorbox({rel:'group1'})note: value can set 'nofollow' disable grouping.
and of course initialize colorbox follows:
$("a[rel='nofollow']").colorbox();
Comments
Post a Comment