By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,598 Members | 1,894 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,598 IT Pros & Developers. It's quick & easy.

Diplaying Animated Gif

P: n/a
I'm building an upload page and I'm using javascipt to show/hide an
animated gif when they click the upload button but when it is displayed
the animation stops during the upload process? Is this because of the
cpu load or any ideas on what could be causing this? I'm using PHP to
upload the file. Here is my code to show/hide the gif.

function UploadImage( f ){
if(f.userfile.value.length < 1)
f.bUpload.disabled = false;
f.bCancel.disabled = false;
f.bUpload.value = 'Upload';
alert("Please select a file to upload!");
return false;
else {
f.bUpload.disabled = true;
f.bCancel.disabled = true;
f.bUpload.value = 'Uploading....Please Wait';
return true;

Feb 6 '06 #1
Share this Question
Share on Google+
1 Reply

P: n/a
Sorry forgot this instead

function showPopup(){
if( !document.getElementById ) return;
document.getElementById('popup').style.display = 'block';

function hidePopup(){
if( !document.getElementById ) return;
document.getElementById('popup').style.display = 'none';
<DIV id="popup" style="BORDER-RIGHT: #000 1px solid; PADDING-RIGHT:
10px; BORDER-TOP: #000 1px solid; PADDING-LEFT: 10px; BACKGROUND: #fff;
PADDING-BOTTOM: 10px; BORDER-LEFT: #000 1px solid; WIDTH: 200px;
PADDING-TOP: 10px; BORDER-BOTTOM: #000 1px solid; HEIGHT: 50px;
TEXT-ALIGN: center">Loading. Please Wait...<BR>
<IMG src="images/Loading.gif" border=0></DIV>

Feb 6 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.