?
Solved

Can I embed html files?

Posted on 1998-12-30
2
Medium Priority
?
156 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 40 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

WordPress Tutorial 3: Plugins, Themes, and Widgets

The three most common changes you will make to your website involve the look (themes), the functionality (plugins), and modular elements (widgets).

In this article we will briefly define each again, and give you directions on how to install them.

Question has a verified solution.

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

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
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.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

741 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