Hi everybody
I would want to change the default cursor (hand) that is rendered for the WebImageViewer control, replacing it with normal pointer
I have checked rendered code tryng to replace css but it seems that the cursor reference is rendered inline for each image, and each image is rendered as an href with random id inside a div with random id also, so I'm not able to change it dinamically
<div style="overflow: hidden; white-space: nowrap; height: 100%; width: 100%; cursor: url(/Degrees/WebResource.axd?d=Vd-5q9CoX0cYHaZjqsBACBdrfgbBfzkvtY6YpSKQG9sKrF60fSJRUyya_rTBlLDcc2F64n75uZkl5Xap7SGlUDCjM63WdM4AG3KWTGx1wj1UZhB-jjyeg4pdIfUDpWx60&t=634155103805628102), pointer;" id="x:1683505569.1:mkr:imageArea" class="igiv_ElectricBlueImageArea " mkr="imageArea"><a style="cursor: pointer;" adr="0" href="BLOCKED SCRIPTshowVideo('VIDEO_Intro');"><img border="0" adr="0" src="./images/video/preview_image_small.png" alt="" class="igiv_ElectricBlueImage " id="x:1683505569.2:adr:0" style="height: 100%;">
<a href="BLOCKED SCRIPTshowVideo('VIDEO_Planification');" adr="1" style="cursor: url(/urlname/WebResource.axd?d=Vd-5q9CoX0cYHaZjqsBACBdrfgbBfzkvtY6YpSKQG9sKrF60fSJRUyya_rTBlLDcc2F64n75uZkl5Xap7SGlUDCjM63WdM4AG3KWTGx1wj1UZhB-jjyeg4pdIfUDpWx60&t=634155103805628102), pointer;"><img border="0" style="height: 100%;" id="x:1683505569.3:adr:1" class="igiv_ElectricBlueImage " alt="" src="./images/video/preview_planification_small.png" adr="1"></a>
Anybody has some idea?
Hello,
You can achieve your goal by handling Client side event "Initialize", your client side init function should look something like:
<script type="text/javascript"> function IvInit(iViewer, e) { var items = iViewer.get_items(); for (var i = 0; i < items.get_length(); i++) { items.getItem(i).get_element().style.cursor = "default"; } } </script>
First you get the Items from ImageViewer object. Then loop though all the ImageItem elements, get each corresponding HTML DOM elemenrt (via get_element() method) and explicitly set it cursor property.
You can hook the client side Initialize function by adding follwong marjup to your ImageViewer on your ASPX page:
<ClientEvents Initialize="IvInit" />
Hope this helps!