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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.