Is there any way to use swf flash file as a loading image?
Thanks
Is there any way to use swf flash file as a loading image?
Thanks
Hi Tolga, currently, web edition's loading only supports pictures, such as animated gif, jpeg, png..., but I think gif is low quality, so you want to use swf file instead, here is a solution, please attache the following code to your head tag in your aspx page, and replace html of loadingDiv, also, don't forget enable the logo map tool,
<script type="text/javascript">
var OnMapCreated = function(){
var loadingImg = $get('loading');
if(loadingImg){
var loadingDiv = document.createElement("div");
loadingDiv.id = loadingImg.id;
for(var key in loadingImg.style){
if(loadingImg.style[key]!='')
loadingDiv.style[key] = loadingImg.style[key];
}
loadingDiv.innerHTML = "Here is HTML content, link swf file here.";
loadingImg.parentNode.replaceChild(loadingDiv, loadingImg);
}
}
<script>
Thanks Godspeed
Thanks for sharing, Godspeed