- Feb 14, 2004
- 50,744
- 6,774
- 136
(cliff's at bottom)
I'm working on a website right now where we're using a Flash movie (.swf) as the header on all of the pages. My one concern is about ease of integration with subdirectories. Our main directory is /www. This is where the index.html file goes. All of the shared graphics, CSS, and Flash go in the /shared folder, including the header Flash file. However, I will have pages within subdirectories that will need to reference that Flash header as well. I really don't want to go through all of the pages and write relative links to the header from each .html file. Is using an absolute link the best way? Is there some way to use a relative link that I'm missing? Here's the code:
<!-- Flash header row -->
<object classid="clsid
27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shoc...abs/flash/swflash.cab#version=7,0,19,0"
width="634" height="195">
<param name="movie" value="shared/header.swf" />
<param name="quality" value="high" />
<embed src="shared/header.swf" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"
width="634" height="195">
</embed>
</object>
For example, if I'm referencing the header from the index.html file in the main /www directory, the link would be shared/header.swf. But what if I'm reference the header from /www/products/product1/option1/option1.html? Is there a simple way of referencing the file that I'm missing? Is absolute referencing the best way?
Cliff Notes:
1. Using a Flash header on all pages, including pages in deep subdirectories
2. What's the best way to reference the header on each page -- use the absolute path?
I'm working on a website right now where we're using a Flash movie (.swf) as the header on all of the pages. My one concern is about ease of integration with subdirectories. Our main directory is /www. This is where the index.html file goes. All of the shared graphics, CSS, and Flash go in the /shared folder, including the header Flash file. However, I will have pages within subdirectories that will need to reference that Flash header as well. I really don't want to go through all of the pages and write relative links to the header from each .html file. Is using an absolute link the best way? Is there some way to use a relative link that I'm missing? Here's the code:
<!-- Flash header row -->
<object classid="clsid
codebase="http://download.macromedia.com/pub/shoc...abs/flash/swflash.cab#version=7,0,19,0"
width="634" height="195">
<param name="movie" value="shared/header.swf" />
<param name="quality" value="high" />
<embed src="shared/header.swf" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"
width="634" height="195">
</embed>
</object>
For example, if I'm referencing the header from the index.html file in the main /www directory, the link would be shared/header.swf. But what if I'm reference the header from /www/products/product1/option1/option1.html? Is there a simple way of referencing the file that I'm missing? Is absolute referencing the best way?
Cliff Notes:
1. Using a Flash header on all pages, including pages in deep subdirectories
2. What's the best way to reference the header on each page -- use the absolute path?