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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Load swf in html frame 1

Status
Not open for further replies.

Nogi

Technical User
Dec 10, 2004
132
BE
ok, i have a question regarding an .swf file (start.swf) i'd like to run when a page is opened for the first time.

The start.swf should run in a frame.
After it has ran, it should display a default page (with a background, in order to fill up the white space of the frame).

So, in detail:

The main page: index.htm
the frame-background-page: frame.htm
the flashfile: start.swf

I found on the net a very usefull piece of javascript that checks the browser version first. Depending on the browser version it loads or doesn't load the swf file.

Exactly what i needed i thought. The problem is....how do i add all this to my index.htm page?

This was the piece of code i was talking about:

<script LANGUAGE="JavaSript">
if (flashenabled = true) {
if (ns6 or ie mac) {
display "start.swf"
} else {
display "start.swf" //which in turn will display test.swf when
the images are loaded
}
} else {
display something.jpg
}

Is there somebody who can help me out accomplishing this please?

Your help is highly appricitiated
 
First google link for "javascript flash enabled":

Seems pretty detailed and self-explanatory.

--Chessbot

"In that blessed region of Four Dimensions, shall we linger on the threshold of the Fifth, and not enter therein? Ah, no! [...] Then, yielding to our intellectual onset, the gates of the Sixth Dimension shall fly open; after that a Seventh, and then an Eighth -- --" Flatland, A. Square (E. A. Abbott)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top