12
rated 0 times
[
15]
[
3]
/ answers: 1 / hits: 18192
/ 10 Years ago, fri, december 19, 2014, 12:00:00
Currently working on Loading image dynamic. If the custom image has the path it has to take the custom image not the default one if there is no custom image path are not available it has to load default image in the given ID.
As I am new to Javascript I am trying my below code.
var customImageurl = custom_Image/web.png;
var defaultImageurl = ;
function loadGraphics(){
document.getElementById(loadImage).src = defaultImageurl;
}
loadGraphics();
<div id=loadImage></div>
It was not working kindly help me.
Thanks in advance.
Regards
Mahadevan
More From » image