Solved

Can I embed html files?

Posted on 1998-12-30
2
140 Views
Last Modified: 2012-05-04
<input name=x type=radio onclick="document.sound.run();top.frames[1].frames[1].location.href='intro-staff-wrong.html'"><font size=3 color=blue>1 - 3</font></td>

I have the above source code, and it will connect to 'intro-staff-wrong.html' when clicked. But, the download time is quite slow sometimes. Therefore, I want to go to that page faster, and is there any method to do this?

0
Comment
Question by:hcyu
2 Comments
 
LVL 4

Expert Comment

by:martinag
ID: 1841107
You can load it into a hidden frame which will make it exist in the cache.
So, in any of your framesets, add this one (one pixel wide or something like that):
<FRAME SRC="intro-staff-wrong.html">

Another thing is do play the sound *after* the redirection:
top.frames[1].frames[1].location.href='intro-staff-wrong.html';document.sound.run()

Martin
0
 

Accepted Solution

by:
jkeebler earned 20 total points
ID: 1841108
Assuming your using multiple frames ("frame[0]" and "frame[1]") you can run the sound.run() function from "intro-staff-wrong.html" after it loads.  Make the radio button:

     <input name=x type=radio    onclick="top.frames[1].frames[1].location.href='intro-staff-wrong.html'">

.and make the BODY tag of 'intro-staff-wrong.html' include:

      onLoad="parent.frames[0].sound.run()"

Try it and email me if you have a problem.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
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.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

744 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

12 Experts available now in Live!

Get 1:1 Help Now