Search…

X3 Photo Gallery Support Forums

Search…
 
remoorejr
Topic Author
Posts: 3
Joined: 10 Jan 2007, 09:21

Using a SSI (server side include) banner/menu with Imagevue

18 Jan 2007, 18:36

I wanted to add a top banner and ultimately a flash based menu system to an index page that includes an Imagevue gallery.

I wanted the Imagvue gallery to dynamically adjust, based on the displayed window size because I wanted the images to expand for maximum impact.

I was able to accomplish this with a frameset but I'm trying to move away from frames. My soultion turned out to be quite simple, use SSI (Server Side Includes).

Here's the reference page (it's currently under development) :

http://www.micromediastudios.com/shaw/s ... ndex.shtml

SSI or Server Side Includes can be used to insert snippets of HTML code into ALL of your HTML pages. This is great for menu systems, copyright notices, etc.

Your web site must support SSI for this all to work.

To accomplish this :

In Dreamweaver, I built the HTML page to include the top banner (I'll change this to the SWF menu file when it's completed), let's call it menu.htm.

Strip out all unecessary code, you only need the HTML required to create the banner or menu.

Rename the file menu.inc. (required to load through SSI)

Create a new page (call it index.shtml, the shtml extension is required when using SSI) and insert the line below anywhere in between the <body> </body> tags. You can use this in multiple HTML documents.

<include>

Next I used the SWFObject to insert the Imagevue swf

This worked out great and I like the dynamic nature of the image sizing based on the window size.

Hope this helps some others in the same boat.
Bob Moore
Micromedia Studios
www.micromediastudios.com
 
remoorejr
Topic Author
Posts: 3
Joined: 10 Jan 2007, 09:21

18 Jan 2007, 18:42

The include statement was treated as HTML, sorry.

I've disabled HTML in this post.

<!--#include virtual="menu.inc"-->
Bob Moore
Micromedia Studios
www.micromediastudios.com
 
remoorejr
Topic Author
Posts: 3
Joined: 10 Jan 2007, 09:21

19 Jan 2007, 09:48

This technique works great with IE and Safari but I've noticed a problem with Firefox.

Looks like I may have to use frames after all.

Damn. :evil:

If anyone has any ideas, let me know.

Thanks,
Bob Moore
Micromedia Studios
www.micromediastudios.com