AdvantageDisplayImage..::..OnClientImageChange Property
Gets or sets the image on client image change.
Namespace:
AdvantageCMS.Web.UIAssembly: AdvantageCMS.Web.UI (in AdvantageCMS.Web.UI.dll)
Syntax
[CategoryAttribute] [BindableAttribute] [DefaultValueAttribute] [DescriptionAttribute] public string OnClientImageChange { get; set; }
Field Value
The on client image change.Examples
<advantage:AdvantageDisplayImage ID="imgOverLay" runat="Server" OnClientImageChange="cardSwapOverlay" data-container="myContainer" style="display: none;"/>
<div id="myContainer" style="height:300px; width:300px">
<p> sample</p>
</div
<script>
//Swap the overlay in content cards when using advantageImageControl
function cardSwapOverlay(picControl, image) {
var container = document.getElementById(picControl.getAttribute('data-container'));
if (container !== null)
container.style['background-image'] = "url(" + image + ")";
}
</script>