Forum Moderators: open

Message Too Old, No Replies

how to load iFrame when home page loads?

How do i make a

         

sai digitalle

5:08 am on Nov 3, 2004 (gmt 0)

10+ Year Member



I have 1 iFrame in my site. it loads content from flash files to whatever else after a user clicks a button- meaning the iFrame window is empty at intial load up of homepage. I would at least like to have a "welcome to my site" message in the iFrame that will load up automatically when a visitor first comes to my site. I've already made the welcome.html document in dreamweaver. How and where do i code the page to have the iFrame load the welcome.htm doc when the homepage loads?

thanks for the help fellas (and ladies),
Sai

tedster

5:32 am on Nov 3, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to the forums, sai digitalle, and thanks for joining us.

If you use a src attribute in your iframe code, that document will load when the parent page first loads:

<iframe src="welcome.htm"></iframe>

sai digitalle

5:42 am on Nov 3, 2004 (gmt 0)

10+ Year Member



thanks for replying so fast man! Ok, i'll try that but i have one more question now. the code already has this 'container.asp' as the src. can an iframe have multiple src's?

here's my code already the 'containe.asp' is from the flash content that is loaded through the iframe.

current code line:<iframe name="flash" src="container.asp" height=120 scrolling = no width =966 frameborder=0></iframe>

tedster

6:50 am on Nov 3, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No, there's no way multiple src atributes makes any sense.

Your iframe should also have a name attribute. When it's time to load another document in the iframe, that's when you add name="path-for-new-document" to the link.

At least I assume you were planning on loading the Flash via clicking on a link. If not, what was your plan? Maybe you just need to add your welcome message as the first frame of your flash movie.