Jump to content

[SOLVED] createElement Gif not comes up paused


nadeemshafi9

Recommended Posts

hello everyone

 

i have a deep searchengine that takes a while, i need to put a loading gif in there for some reason it dosent animate when it comes up, it animates a few times then anfter a few successfull searches the gif appears in the mid screen but is still paused.

 

here is my code all sorts of things happen like some other gifs dont appear for some reason and somtimes they do if i replace it whith another gif ?????? i am using firefox on OSX 10.4 on mac power pc

 

//place a searching icon in mid screen

function showsearchloading() {

image1 = document.createElement("IMG");

image1.setAttribute("src", "images/common/spinner_disc.gif");

image1.setAttribute("id", "searchimage");

image1.setAttribute("style", "z-index: 10; position: absolute; left: 45%; top: 40%;");

document.getElementById("maincontentarea").appendChild(image1);

}

 

any help welcome thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.