Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

preloading dcr files into html pages 1

Status
Not open for further replies.

shankarvraman

Programmer
Aug 1, 2001
2
IN
Is there any method/script using which I can prelaod multiple DCR files in the brwoser cache so that the dcr files appears instantly on the page when the page is viewed such that it should look like as if it is appearing from local hard disk when viewed over the net.

please provide me a possible solution
 
Do you use
<embed src=&quot;one.dcr&quot; width=640 height=480><br>
<embed src=&quot;two.dcr&quot; width=640 height=480><br>
If yes, it could be done similar to prelodaing images.
There is a collection embeds, which you could use.

<HTML>
<HEAD>
<TITLE> DCR </TITLE>
<script language=&quot;JavaScript&quot;>
function emb(){
em = document.embeds;
em[0].src = 'one.dcr';
em[1].src = 'two.dcr';
document.all.dcrOneDiv.innerHTML = &quot;<embed src='waterpolo.dcr' width=640 height=480>&quot;
document.all.dcrTwoDiv.innerHTML = &quot;<EMBED SRC='hacker.dcr' width=512 height=342>&quot;
}
</script>
</HEAD>

<BODY onLoad=&quot;emb();&quot;>
<!-- some hidden embeds without sources - in order to have embed collection -->
<embed width=&quot;0&quot; height=&quot;0&quot;><embed width=&quot;0&quot; height=&quot;0&quot;>
<div id=&quot;dcrOneDiv&quot; name=&quot;dcrOneDiv&quot;>Loading One... Please wait.</div>
<div id=&quot;dcrTwoDiv&quot; name=&quot;dcrTwoDiv&quot;>Loading Two... Please wait.</div>
</BODY>
</HTML>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top