Embed the .Mac web gallery on your iWeb site

Dec 03, '07 07:30:08AM

Contributed by: James-Jaie

I've often found it odd that Apple doesn't allow you to embed your .Mac Web Gallery into your website. You can, of course, use the widget to display a thumbnail of your gallery, but it takes users away from your site, and that is a bad thing.

If you use iWeb's HTML snippet found under Web widgets, you can implement an iFrame that will display your web gallery within your page. It is very simple to do and will allow your users to stay on your page while leaving all functions of the site intact. Using the following code, you can inject the Web Gallery onto any page:

<iframe height="100%" allowTransparency="true" frameborder="0" scrolling="yes" style="width:100%;border:none" src="http://gallery.mac.com/YOURNAME#ALBUMNUMBER&view=mosaic&bgcolor=dkgrey"></iframe>
You will need to change YOURNAME to the name you have chosen for .Mac, as well as ALBUMNUMBER to correspond to the album you would like to display. You can, of course, just copy the URL from your browser window and paste it after src=" -- remember to close the quotes. Your page width should be set to a minimum of 800 pixels in order to fit the frame.

I know this may be obvious to some, but it may help others out that are looking to condense and unify their online galleries.

Comments (6)


Mac OS X Hints
http://hints.macworld.com/article.php?story=2007111620013523