Search Tutorials
Creating the Invisible FrameYou are asking yourself, Why use an invisible frame?. The answer is: it is not mandatory but, an invisible frame allows to keep the Flash Movie(s) in a single place and avoids the need to embed movies in every single web page that needs sound. Also, the invisible frame makes it easy to control the loading process for the sounds and eliminates the case when you load a sonified web page without the sounds ready to play, which leads in the best case to your users not being able to enjoy your sound work and in the worst case your users get ugly error messages. Keep in mind that some problems arise when you use this method, for example, you have to be careful with the target property for your pages so your frame doesn't get overwritten and, if you are linking to pages outside your web site, you have to make sure that your frame does not parasite them. Both minor difficulties can be easily solved with a bit of JavaScript and examination of the HTML code. To create an invisible frame you'll use HTML code like this: <html> <head></head> <frameset framespacing="0" border="false" rows="2,*" frameborder="0"> <frame name="soundtown" src="soundtown.htm" scrolling="no" target="contents"> THIS IS THE SOUND PAGE = frames[0] (see below) <frame name="webpages" src="YourWebPage.htm" target="main" scrolling="auto"> THESE ARE THE OTHER PAGES = frames[1] (see below) <noframes> <body> <p>This page uses frames, but your browser doesn't support them.</p> </body> </noframes> </frameset> <frameset> <noframes> <body> <p>This page uses frames, but your browser doesn't support them.</p> </body> </noframes> </frameset> </html> Your actual code may vary but, what I am trying to show here is that you need to create a small (invisible) frame which will load a web page you'll be creating exclusively for sound purposes and a normal frame that will hold the other pages that make up the site.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|