[thelist] Site Critique
Garrett Coakley
garrett at polytechnic.co.uk
Sat May 13 17:49:03 2000
> "Spiked are a web development company ..." and "Spiked were
> commissioned..."
> Why the plural?
To be honest, I'm not entirely sure *:)
You're right though, it doesn't make sense does it?
Thanks for everyones comments, very much appreciated, I'm going to do
some more tweaking and I'll let you know how I get on.
G.
<tip type="CSSP and Netscape 4" Author="Garrett Coakley">
This is a bit of an oldy, but I thought it would be helpful to anyone
who is getting into using CSS and layers for page construction for
the first time.
Netscape 4 has a nasty bug where layers will lose their formatting
information if the browser window is resized.
The best way round it is this bit of Javascript from the Macromedia
technotes. Watch for URL wrap.
(http://www.macromedia.com/support/dreamweaver/ts/documents/onresize.h
tm).
It will trigger when the broswer window is resized and reloads the
page, restoring your formatting.
Stick the code in between the <head> </head> tags.
<script language="JavaScript">
<!-- //Test browser if it supports the Navigator layer property
// MSIE supports only the document.all property.
var Nav_browser = document.layers
if (Nav_browser) {
//Assign the starting width of window to a variable.
var beginWidth = innerWidth;
//Assign the starting height of window to a variable.
var beginHeight = innerHeight;
}
function reloadWindow() {
//Test for any resize of browser window.
if (innerWidth != beginWidth || innerHeight
!= beginHeight)
//Reload the browser window when there is a resize.
location.reload();
}
//Redirect onresize event if it is a Navigator browser to the custom
function.
If (Nav_browser) onresize = reloadWindow
//-->
</script>
</tip>
-----------------------------------------------------------
"Maybe if more of us start making pages the way we could,
instead of the way we've been forced to, the Web will get
well a little sooner." http://www.alistapart.com