Return to Snippet

Revision: 1562
at October 21, 2006 21:08 by dividespace


Initial Code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
	"http://www.w3.org/TR/html4/strict.dtd">

<html lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
		<style type="text/css" media="screen">
		<!--
			@import "css/tank.css";
			@import "css/tank_base_theme.css";
		-->
		</style>
		<link rel="alternate stylesheet" title="blue : color" href="css/theme/blue.css" media="screen">
		<link rel="alternate stylesheet" title="green : color" href="css/theme/green.css" media="screen">
		<link rel="alternate stylesheet" title="camille : color" href="css/theme/camille.css" media="screen">
		<link rel="alternate stylesheet" title="gray : color" href="css/theme/gray.css" media="screen">
		<link rel="alternate stylesheet" title="black : color" href="css/theme/black.css" media="screen">
		<script type="text/javascript" src="http://webhost.bridgew.edu/etribou/layouts/javascript/ruthsarian_utilities.js"></script>
		<script type="text/javascript">
		<!--
			var font_sizes = new Array( 100, 86, 124 );
			var current_font_size = 0;
			var browser = new browser_detect();
 			if ( ( typeof( NN_reloadPage ) ).toLowerCase() != 'undefined' ) { NN_reloadPage( true ); }
			if ( ( typeof( set_min_width ) ).toLowerCase() != 'undefined' ) { set_min_width( 'pageWrapper' , 760 ); }
			if ( ( typeof( sfHover       ) ).toLowerCase() != 'undefined' ) { event_attach( 'onload' , function () { sfHover( 'topMenu' ); sfHover( 'rightMenu' ); } );  }
			if ( ( typeof( loadFontSize  ) ).toLowerCase() != 'undefined' ) { event_attach( 'onload' , loadFontSize ); }
			if ( ( typeof( setActiveStyleSheet ) ).toLowerCase() != 'undefined' ) { setActiveStyleSheet( getPreferredStylesheet( 'color' ) , 'color' ); }
		//	if ( ( typeof( opacity_init  ) ).toLowerCase() != 'undefined' ) { opacity_init(); }
		//-->
		</script>
		<title>Tank! : Ruthsarian Layouts</title>
	</head>
	<body lang="en">
		<div id="pageWrapper">
			<div id="masthead">

<h1>Ruthsarian Layouts</h1>
<h2>Tank!</h2>

				<hr class="hide">
			</div>
			<div id="outerColumnContainer">
				<div id="innerColumnContainer">
					<div id="contentColumn">

	<ul id="topMenu" class="clearfix rMenu-hRight rMenu-hor rMenu"
		><li class="rMenu-expand"
			><a href="http://webhost.bridgew.edu/etribou/layouts/">Layouts</a
			> <ul class="rMenu-ver"
				><li class="rMenu-expand"
					><a href="http://webhost.bridgew.edu/etribou/layouts/skidoo/">Skidoo</a
					> <ul class=""
						><li
							><a href="http://webhost.bridgew.edu/etribou/layouts/skidoo/demos/fixed_width.html">Fixed Width</a
						></li
						><li
							><a href="http://webhost.bridgew.edu/etribou/layouts/skidoo/demos/fluid_width.html">Fluid Fixed Width</a
						></li
						><li
							><a href="http://webhost.bridgew.edu/etribou/layouts/skidoo/demos/tweak_02.html">Detached Masthead</a
						></li
						><li
							><a href="http://webhost.bridgew.edu/etribou/layouts/skidoo/demos/tweak_01.html">Border Into Masthead</a
						></li
						><li
							><a href="http://webhost.bridgew.edu/etribou/layouts/skidoo/demos/bgImages.html">Background Images</a
						></li
						><li
							><a href="http://webhost.bridgew.edu/etribou/layouts/skidoo/demos/gutterless.html">Gutterless</a
						></li
					> </ul
				></li
				><li
					><a href="http://webhost.bridgew.edu/etribou/layouts/skidoo_too/">Skidoo Too</a
				></li
				><li
					><a href="http://webhost.bridgew.edu/etribou/layouts/skidoo_too/gargoyles/">Gargoyles</a
				></li
				><li class="rMenu-expand"
					><a href="http://webhost.bridgew.edu/etribou/layouts/exp/index.html">Experiments</a
					> <ul class=""
						><li
							><a href="http://webhost.bridgew.edu/etribou/layouts/exp/plaine/">Plaine</a
						></li
						><li
							><a href="http://webhost.bridgew.edu/etribou/layouts/exp/nausicaa/">Nausicaä</a
						></li
						><li
							><a href="http://webhost.bridgew.edu/etribou/layouts/exp/bob/">Bob</a
						></li
					> </ul
				></li
			> </ul
		></li
		><li
			><a href="http://webhost.bridgew.edu/etribou/software/">Labs</a
		></li
		><li class="rMenu-expand"
			><a href="http://weblog.bridgew.edu/ruthsarian/">Blog</a
			> <ul class="rMenu-ver"
				><li
					><a href="http://weblog.bridgew.edu/ruthsarian/archives/cat_web_of_information.html">Web of Information</a
				></li
				><li
					><a href="http://weblog.bridgew.edu/ruthsarian/archives/000130.html">Wide Images in CSS Layouts</a
				></li
				><li
					><a href="http://weblog.bridgew.edu/ruthsarian/archives/000105.html">IE Boxing</a
				></li
			> </ul
		></li
		><li
			><a href="mailto:[email protected]">Contact</a
		></li
	> </ul>

						<div class="inside">

<p style="margin:10px;padding:10px;background-color:#eec;border: solid 1px #dd9;color:#000;">
	<strong>Note:</strong> The drop-down menu system used in this layout
	is currently a bit <em>off</em> in a few browsers. Furthermore, I don't
	like an initial design idea to incorporate existing, old <code>.vnav</code> and
	<code>.hnav</code> into the dropmenus being used. I will be developing
	a separate, standalone CSS-based dropmenu system that will use a lot of
	the existing CSS but is intended to be separate of anything else I've done.<br>
	<br>
	Further development of this layout is on hold pending a better dropdown menu system.
</p>

<div class="twoColumns">
	<div class="leftColumn">
		<div class="inside">

<h3>Introduction</h3>
<p>
	<em>Tank!</em> is CSS-based web page layout. The goal for this layout
	was to incorporate several tricks/features that help further demonstrate
	the versatility of CSS. These include drop-down menus, theme switching,
	changing font size, source ordering, transparent images, multiple columns, 
	and hopefully some nice style.
</p>

<h3>A Work In Progress</h3>
<p>
	I'm releasing this layout a little early. It's still a work in progress.
	IE 5.0 (for Mac OS 9 and earlier) has some severe bugs that cause the text
	to not appear correctly; however IE 5.2 works just fine. Netscape 7.0 has
	a problem with the drop-down menus where they are displayed in the flow
	of the document, forcing the rest of the page's content down while the
	drop-menu is displayed. There is no Netscape 4 specific stylesheet
	at the moment. NS4 users will simply see a plain page. Oh, and if you
	figure out my not-completely-documented dropdown system and try to
	apply it to the vertical menu, you may run into some problems, so I 
	wouldn't try it right now.
</p>
<p>
	Feel free to send an e-mail to <em>ruthsarian at gmail dot com</em>
	if you find other bugs that you'd like to report.
</p>

<h3>No Zip (Yet)</h3>
<p>
	I'm not yet providing an archive of the layout with all the necessary
	CSS and JavaScript and all the paths worked out, etc.. in a single ZIP
	ready to go. This is because I don't consider this layout to be
	ready <em>enough</em>. If you want to take this layout for a test drive,
	you'll have to figure out how to pull out the CSS, HTML and JavaScript
	needed. This isn't hard at all, but if you don't know how then you probably
	aren't ready to use a layout that may still be a bit... touchy.
</p>

<h3>Short on documentation</h3>
<p>
	I'll try to add more documentation to this page as I have time. Right now
	I'm focusing in on the more important pieces of information about this layout,
	rather than worry about a full write-up on all the intricacies.
</p>

		</div>
	</div>
	<div class="rightColumn">
		<div class="inside">

<h3>Gargoyles - Season 2, Vol. 1</h3>
<p>
	<a href="http://www.amazon.com/gp/product/B000ATQYVA/">Gargoyles - Season 2, Volume 1</a>
	was released on December 6, 2005. The DVD contains the first half (26 half-hour episodes) of 
	the second seasion of <a href="http://tv.disney.go.com/jetix/gargoyles/">Gargoyles</a>. Special
	features include commentary on the 4-part "City of Stone", a featurette on the making of with
	new interviews of several cast members, and introductions of each episode by creator
	<a href="http://www.s8.org/gargoyles/askgreg/">Greg Weisman</a>.
</p>

<h3>Support / Donations</h3>
<p>
	Every so often I hear from someone who offers to make a donation or asks
	about ways to support my work. My position, as outlined in the content of 
	the <a href="http://webhost.bridgew.edu/etribou/layouts/skidoo_too/gargoyles/index.html">Skidoo 
	Too: Gargoyles</a> layout, remains the same: I don't want money. I'm not trying to make money, 
	I just want to share with others my own bits of	work with CSS. I think the knowledge I gain 
	from my own work is its own reward (regardless of how corny that sounds).
</p>
<p>
	However, if you would like to support a cause near and dear to me, I
	would ask that you pick up a copy of <a href="http://www.amazon.com/gp/product/B000ATQYVA/">Gargoyles 
	- Season 2, Volume 1</a>. Gargoyles is a great show, well written, and entertaining
	to both kids and adults. I would like to see the show continued in some manner, but to
	do that we need to first get <a href="http://www.disney.com">Disney's</a> attention. That
	can be done through increasing salse of the latest <a href="http://www.amazon.com/gp/product/B000ATQYVA/">Gargoyles
	DVD</a>. If it sells well enough to make a blip on the radar of Disney's executives, <em>if they
	think they can make money with it</em>, Disney might just start producing new content (episodes) of
	the show. That would be something I would really like to see.
</p>
<p>
	So I ask that you pick up a copy of the DVD if you get the chance. I think
	you'll enjoy it if you take the time to watch the show. This is not just a kids'
	show and adults will absolutely enjoy it as much as (if not more than) children. 
	But, if you've got no interest, the least you can do is give it to a family member
	or friend who might be interested, or have children. It makes a great holidy gift!
</p>

		</div>
	</div>
	<div class="clear"></div>
</div>

<h3>Everything To The Right</h3>
<p>
	Key design issue is that the typical vertical menu you
	see in many web pages is included here. What isn't typical
	is that this menu is moved to the right side of this layout.
	The horizontal menu at the top of the page is also right-aligned.
</p>
<p>
	Why is this?
</p>
<p>
	This goes back to an old lesson in a Photoshop 3 book I read
	a long time ago. It recommended you move the toolbar over to the right
	side of your window. The reason being that it keeps the scroll bars
	closer to your toolbar, creating less distance for the mouse to travel
	and, thus, less movement for your hand. It helps relieve a small amount 
	of work (and stress) on the hand. It's also easier to navigate, in general,
	for right-handed people, which make up the majority of the people in the
	world. And it's something new and different so I wanted to give it a try.
</p>
<p>
	That large margin/gutter/gap on the left of the layout is there to help 
	reenforce the eyes to the right side of the page. The empty space also
	is a nice spot to catch when reading left to right and moving down a line.
	I also think it's visually interesting, but you can go ahead and delete it
	if you don't like it. It doesn't serve any critical function except to
	free up an otherwise busy layout.
</p>

<h3>Utility Stylesheets</h3>
<p>
	Several stylesheets used in this layout are part of my
	<a href="http://webhost.bridgew.edu/etribou/layouts/utility_css/">utility 
	stylesheets collection</a>. The point of these stylesheets is that they
	provide specific functionality that I use in several layouts. Rather than
	keeping several different copies of (basically) the same stylesheet, I've
	put them into one place. That way if a bug pops up in the drop-down menu
	stylesheet, I can fix one stylesheet and all my layouts that use it will
	be immediately updated.
</p>

<h3>JavaScript</h3>
<p>
	The goal is to rely on CSS as much as possible and to keep the layout functional
	even without JavaScript enabled. Despite this constant goal with all
	<a href="/etribou/layouts/">Ruthsarian layouts</a>, there is a fair amount of
	<a href="/etribou/layouts/javascript/ruthsarian_utilities.js">JavaScript</a> used 
	in this layout. A lot of it is there to provide a helping hand to some browsers 
	that either don't support full CSS or have a broken implementation of some
	CSS features. 
</p>
<p>
	For example, IE does not support the <code>:hover</code> pseudoclass on
	elements other than anchor tags. As a result, the drop-down menus don't work. JavaScript
	is used to apply an extra CSS class to list items while the mouse is over the element
	to emulate the <code>:hover</code> pseudoclass. Position and appearence of the drop-down
	menus is handled by CSS. If/When IE supports the <code>:hover</code> pseudoclass, this
	bit of JavaScript can be removed and the drop-down will function completely without 
	JavaScript. Drop-down menus will work fine with <a href="http://www.mozilla.org/firefox/">FireFox</a> 
	and several other new generation browsers without that JavaScript.
</p>
<p>
	Other implementations of JavaScript in the layout bring functionality most likely already
	available through a browser menu option into the page itself. One example of this is
	the style switcher. Several browsers already support the switching or application of alternate
	stylesheets (if defined) to a web page. The style switcher provides a different interface to
	this feature. The same with the font size changing system. Almost all browsers offer a feature
	to increase the base font size of the browser. This font size system just brings that interface
	into the web page.
</p>
<p>
	The point is this: you can remove all JavaScript from this layout and it will still
	function. The only thing you lose is some ease-of-use accessories for the user and/or
	minor compatibility issues that, by themselves, will not break the layout.
</p>

<h3>Quick Bits</h3>
<p>
	Cookies are used to store the prefered font size and style so it remains through each
	page visit.
</p>
<p>
	If the page has <a href="index_short.html">short content</a> the footer will
	fill in the space between the bottom of the layout and the bottom of the
	browser window. 
</p>
<p>
	Style switcher and font size setter HTML are created via JavaScript <code>document.write()</code>. 
	This way users who do not have JavaScript enabled will not see the interface for this JavaScript
	dependant features.
</p>
<p>
	The name <em>Tank!</em> comes from the song by the same name recorded by the Seatbelts. It is the
	theme song to the anime series <em>Cowboy Bebop</em>. I was listening to that song when I decided
	to finally name this layout. If you haven't, I highly recommend picking up <em>Cowboy Bebop</em>,
	both the DVDs and the soundtracks (of which there are many).
</p>


						</div>
						<hr class="hide">
					</div>
					<div id="rightColumn">
						<div class="inside">
<h3>Stylesheets</h3>
<ul class="rMenu-wide rMenu-ver rMenu"
	><li
		><a href="css/tank.css">tank.css</a
	></li
	><li
		><a href="css/tank_base_theme.css">tank_base_theme.css</a
	></li
	><li
		><a href="http://webhost.bridgew.edu/etribou/layouts/rMenu/rMenu.css">rMenu.css</a
	></li
	><li
		><a href="http://webhost.bridgew.edu/etribou/layouts/utility_css/visual_consistencies.css">visual_consistencies.css</a
	></li
></ul>

<h3>Theme Styles</h3>
<ul class="rMenu-wide rMenu-ver rMenu"
	><li
		><a href="css/theme/blue.css">blue.css</a
	></li
	><li
		><a href="css/theme/green.css">green.css</a
	></li
	><li
		><a href="css/theme/camille.css">camille.css</a
	></li
	><li
		><a href="css/theme/gray.css">gray.css</a
	></li
	><li
		><a href="css/theme/black.css">black.css</a
	></li
></ul>

<h3>JavaScript</h3>
<ul class="rMenu-wide rMenu-ver rMenu"
	><li
		><a href="http://webhost.bridgew.edu/etribou/layouts/javascript/ruthsarian_utilities.js">ruthsarian_utilities.js</a
	></li
></ul>

<h3>References</h3>
<ul class="rMenu-wide rMenu-ver rMenu"
	><li
		><a href="http://www.css-discuss.org/">css-discuss.org</a
	></li
	><li
		><a href="http://www.dithered.com/css_filters/css_only/index.php">CSS Filters</a
	></li
		><li><a href="http://www.positioniseverything.net/piefecta-rigid.html">Piefecta Demo Layout</a
	></li
	><li
		><a href="http://www.redmelon.net/tstme/3cols2/">Douglas Livingstone's 3-Column Layout</a
	></li
	><li
		><a href="http://www.456bereastreet.com/">456 Berea Street</a
	></li
	><li
		><a href="http://www.behr.com/behrx/workbook/index.jsp">Explore Color</a
	></li
></ul>

<h3>Menu Example</h3>
<ul id="rightMenu" class="rMenu-wide rMenu-vRight rMenu-ver rMenu" style="float:none;"
	><li class="rMenu-expand"
		><a href="http://webhost.bridgew.edu/etribou/layouts/">Layouts</a
		> <ul class="rMenu-ver"
			><li
				><a href="http://webhost.bridgew.edu/etribou/layouts/tank!/">Tank!</a
			></li
			><li
				><a href="http://webhost.bridgew.edu/etribou/layouts/skidoo_too/gargoyles/">Gargoyles</a
			></li
			><li
				><a href="http://webhost.bridgew.edu/etribou/layouts/skidoo_too/">Skidoo Too</a
			></li
			><li class="rMenu-expand"
				><a href="http://webhost.bridgew.edu/etribou/layouts/skidoo/">Skidoo</a
				> <ul class=""
					><li
						><a href="http://webhost.bridgew.edu/etribou/layouts/skidoo/demos/fixed_width.html">Fixed Width</a
					></li
					><li
						><a href="http://webhost.bridgew.edu/etribou/layouts/skidoo/demos/fluid_width.html">Fluid Fixed Width</a
					></li
					><li
						><a href="http://webhost.bridgew.edu/etribou/layouts/skidoo/demos/tweak_02.html">Detached Masthead</a
					></li
					><li
						><a href="http://webhost.bridgew.edu/etribou/layouts/skidoo/demos/tweak_01.html">Border Into Masthead</a
					></li
					><li
						><a href="http://webhost.bridgew.edu/etribou/layouts/skidoo/demos/bgImages.html">Background Images</a
					></li
					><li
						><a href="http://webhost.bridgew.edu/etribou/layouts/skidoo/demos/gutterless.html">Gutterless</a
					></li
				> </ul
			></li
			><li class="rMenu-expand"
				><a href="http://webhost.bridgew.edu/etribou/layouts/exp/index.html">Experiments</a
				> <ul class=""
					><li
						><a href="http://webhost.bridgew.edu/etribou/layouts/exp/plaine/">Plaine</a
					></li
					><li
						><a href="http://webhost.bridgew.edu/etribou/layouts/exp/nausicaa/">Nausicaä</a
					></li
					><li
						><a href="http://webhost.bridgew.edu/etribou/layouts/exp/bob/">Bob</a
					></li
				> </ul
			></li
		> </ul
	></li
	><li
		><a href="http://webhost.bridgew.edu/etribou/software/">Labs</a
	></li
	><li class="rMenu-expand"
		><a href="http://weblog.bridgew.edu/ruthsarian/">Blog</a
		> <ul class="rMenu-ver"
			><li
				><a href="http://weblog.bridgew.edu/ruthsarian/archives/cat_web_of_information.html">Web of Information</a
			></li
			><li
				><a href="http://weblog.bridgew.edu/ruthsarian/archives/cat_coldfusion.html">Cold Fusion</a
			></li
			><li
				><a href="http://weblog.bridgew.edu/ruthsarian/archives/cat_informational.html">Informational</a
			></li
		> </ul
	></li
	><li
		><a href="mailto:[email protected]">Contact</a
	></li
> </ul>


<script type="text/javascript">
<!--
	var browser = new browser_detect();
	if ( browser.versionMajor > 4 || !( browser.isIE || browser.isNS ) )
	{
		/* only offer style/font changing to version 5 and later browsers
		 * which have javascript enabled. curiously, if you print this out
		 * in NS4, NS4 breaks for some reason. 
		 */
		document.write('									\
			<p class="fontsize-set">							\
				<a href="#" onclick="setFontSize(1); return false;"			\
					><img src="images/font_small.gif" width="17" height="21"	\
						alt="Small Font" title="Small Font"			\
				><\/a>									\
				<a href="#" onclick="setFontSize(0); return false;"			\
					><img src="images/font_medium.gif" width="17" height="21" 	\
						alt="Regular Font" title="Medium Font"			\
				><\/a>									\
				<a href="#" onclick="setFontSize(2); return false;"			\
					><img src="images/font_large.gif" width="17" height="21"	\
						alt="Large Font" title="Large Font"			\
				><\/a>									\
			<\/p>										\
		');
	}
//-->
</script>

<script type="text/javascript">
<!--
	if ( browser.versionMajor > 4 || !( browser.isIE || browser.isNS ) )
	{
		/* only offer style/font changing to version 5 and later browsers
		 * which have javascript enabled.
		 */
		document.write( '										\
			<div class="colorPicker"								\
				><a id="colorPicker-default" href="#"						\
					onclick="setActiveStyleSheet( \'default\' , \'color\' ); return false;"	\
					title="Default"								\
				><\/a										\
				><a id="colorPicker-blue" href="#" 						\
					onclick="setActiveStyleSheet( \'blue\' , \'color\' ); return false;"	\
					title="Blue"								\
				><\/a										\
				><a id="colorPicker-green" href="#" 						\
					onclick="setActiveStyleSheet( \'green\' , \'color\' ); return false;"	\
					title="Blue"								\
				><\/a										\
				><a id="colorPicker-camille" href="#" 						\
					onclick="setActiveStyleSheet( \'camille\' , \'color\' ); return false;"	\
					title="Camille"								\
				><\/a										\
				><a id="colorPicker-gray" href="#" 						\
					onclick="setActiveStyleSheet( \'gray\' , \'color\' ); return false;"	\
					title="Gray"								\
				><\/a										\
				><a id="colorPicker-black" href="#" 						\
					onclick="setActiveStyleSheet( \'black\' , \'color\' ); return false;"	\
					title="Black"								\
				><\/a										\
				><div class="clear"><\/div							\
			><\/div>										\
		');
	}
//-->
</script>


						</div>
						<hr class="hide">
					</div>
					<div class="clear"></div>
				</div>
			</div>
			<div id="footer" class="inside">

<p>
	No copyrights.<br>
	All content is released into the public domain.
</p>

				<hr class="hide">
			</div>
		</div>
	</body>
</html>

Initial URL
http://webhost.bridgew.edu/etribou/layouts/Tank!/index.html

Initial Description


Initial Title
Ruthsarian Layouts - Tank!

Initial Tags


Initial Language
HTML