Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Can I embed html files?

Posted on 1998-12-30
2
Medium Priority
?
159 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

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…
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
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…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

609 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