Solved

delay gif animation until page loads

Posted on 2001-06-14
7
310 Views
Last Modified: 2012-05-12
I would like my default page to load and display the backgroung image entirely before showing a gif animation.
How can I do this?

Thanks,

Don
0
Comment
Question by:monross
  • 4
  • 2
7 Comments
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 6193000
If the background is large and slow loading, then the only way you are going to get it up on the page before the gif consistently is to cache it.

You need to force the load so set up a dummy page
<html>
<head>
</head>
<body background="blah.jpg" onLoad=window.location="realpage.htm">
</body>
</html>

You name the dummy page file whatever the url for the page is now and keep the actual page in another file.  When the page is requested.  The dummy gets sent to the browser and the background gets cached.  As soon a the background image is loaded the onLoad event of the body loads the real page the background image is already cached on the client, so it gets rendered before the gif.

Cd&

0
 

Expert Comment

by:preeth
ID: 6193998


Its fine COBOLdinosaur, but it is working in ie but not in netscape. can try this in natscape.

i.e the background="d:/jsp/img/indianews.jpg" property is not working in netscape.

Preeth
0
 

Expert Comment

by:preeth
ID: 6194003
Sorry its working in netscape also

Preeth
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 50 total points
ID: 6194869
Great.  I'll make that an answer then.

Cd&
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 6225066
?monross/preeth?  Same person?

Cd&
0
 

Expert Comment

by:ComTech
ID: 6279370
Dual login's...need to check.

The Answer will be accepted and moved to PAQ.

ComTech
Community Support Moderator
contech@experts-exhange.com

0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 6280421
Thanks CT :^)

Cd&
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Return data with AJAX, JQUERY and PHP 13 55
Fixing my modal from bootstrap 18 39
Show banners that are blocked by Ad Muncher 10 46
Form not operating correctly. 1 22
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now