Image

This is a complicated question that will most likely result in a simple answer.

Is there a way I could write link HTML-only code from a separate HTML file in to Javascript?

I use Flash on my client's website. As of right now, the script is a slightly modified version that comes from Macromeida, but here's the flow chart:

if (Javascript is turned on)
Then
If (Flash 5 or greater is detected)
Then (Display Flash content)
Else
Then (Display document.write code of non-flash version)
Else (Javascript is not turned on)
Then (Display non-flash version using NOSCRIPT tag)

That code works, but I first write up the HTML code for the NOSCRIPT tag, then have to convert that part of the code to a series of document.write lines in order for the "JS on but Flash not present" condition. There has to be a better way.

Is there a way I could write just the NOSCRIPT code to link to a separate HTML file? Where my original file (index.html) plugs in code from another file (nonflash.html). I know you can include pure javascript code {SCRIPT SRC="js.js") but how do I do it when I want to include a HTML file?

Thanks in advance for the help!