[Solved] When the image is fully loaded, then show the form else wait


Assuming that the #spmain element is an img, then you can attach a handler to the load() event to run some code when the image has fully loaded. Try this:

function button_3b2_form1_submit() {
    $('#spmain').attr({
        'src': 'images/OwnagePranks/rakesh/Hippity Hoppitus.Some Budy.png',
        'usemap': 'map_to_the_form'
    });
}

// attach this in the document.ready handler:
$('#spmain').load(function() {
    $('#map_to_the_form').show();
});

5

solved When the image is fully loaded, then show the form else wait