Creating and installing sidebar panels

Navigation

Skip navigation.

Site search

Site navigation

Details and download

How to create sidebar panels

Sidebar panels are a narrow frame displayed to the left (usually) of the main page. However, unlike normal frames, the sidebar panel can be displayed reguardless of what main page the viewer is looking at. They can be used very effectively as an interactive bookmark, keeping your viewers up to date with the progress of your site, giving them a simple set of links so they can quickly get to sections of your site, or providing a search facility to look through your site.

Sidebar panels are just HTML pages. Just create them the same way as you would create any other HTML page. Script is supported although the user can disable scripts.

Sidebar content should be styled to fit in a panel 144 pixels wide (the standard width of a sidebar when there is a scrollbar). Users can resize this panel if necessary.

Links and forms in the sidebar panel page should have target="_main" to make them open in the main window in Internet Explorer and target="_content" to make them open in the main window in Gecko (Netscape 6+, Mozilla etc.). In Opera, links should use either one of these to make the links open in a dedicated window. In IE Mac, links should have no target to make them open in the main window, and a target of '_self' to make them open in the sidebar. Having a target of _self in other browsers causes no harm so I recommend it for all forms and links that are not meant to open in the main window.

As JavaScript is required to add sidebar panels in Gecko (so as the user had to support script to install the panel, you can assume they normally support script) but not in IE, I suggest that you use _main normally, and use script to convert this to _content in Gecko. I also use the script in IE Mac, because it does not matter if the user has disabled script, the links will just use a dedicated window instead:

<body onload="
	if( window.sidebar || ( window.ActiveXObject && navigator.platform.indexOf('Mac') + 1 ) ) {
		for( var i = 0, toChange = [document.links,document.forms]; toChange[i]; i++ ) {
			for( var x = 0; toChange[i][x]; x++ ) {	
				if( toChange[i][x].target == '_main' ) {
					toChange[i][x].target = window.sidebar ? '_content' : '';
				}
			}
		}
	}
">

How to install sidebar panels, add bookmarks and set the user's homepage

Fill in this form to create the necessary scripts for your own site:

Bookmarks (IE 4+ on Windows, Opera 7+, iCab 3-)

Bookmark titles and locations will default to the current page.

As JavaScript is not required to create these in Opera 7+, you should also provide links to do this in a <noscript> section.

Homepage (IE 5+)

Location of Homepage:

Sidebar panels (Gecko [Netscape 6+, Mozilla etc.], Opera 6+, IE 4+)

Panel title (20 chars max):

URL of panel page

The installers for IE will be created for you to download.

Desired path to IE panel installer:

Desired path to IE panel uninstaller:

This site was created by Mark "Tarquin" Wilton-Jones.
Don't click this link unless you want to be banned from our site.