nadeemshafi9 Posted October 5, 2007 Share Posted October 5, 2007 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 Quote Link to comment Share on other sites More sharing options...
nadeemshafi9 Posted October 5, 2007 Author Share Posted October 5, 2007 it seems to hbe ok now i think it was another error that i re imaged back to normal now its ok. Quote Link to comment Share on other sites More sharing options...
nadeemshafi9 Posted October 5, 2007 Author Share Posted October 5, 2007 its paused again it starts playing when i press enter in the search textbox again after submitting it ???? Quote Link to comment Share on other sites More sharing options...
nadeemshafi9 Posted October 5, 2007 Author Share Posted October 5, 2007 it animates with javascript: func() in the link but i whant it to animate when i press enter in the searchbox instead it comes up paused untill i press enter again ?????? Quote Link to comment Share on other sites More sharing options...
fenway Posted October 7, 2007 Share Posted October 7, 2007 When is this code running? Are you creating that element multiple times? A link we can visit to see? Quote Link to comment Share on other sites More sharing options...
nadeemshafi9 Posted October 8, 2007 Author Share Posted October 8, 2007 i fixed it by using the timout recall in javascript Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.