On Tuesday 17 July 2001 20:00, Roland M�sl wrote:
| "Adam Sj�gren" <[EMAIL PROTECTED]> wrote in message
| [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
| >
| > Saving bandwidth is definately not a valid argument for breaking the
| > standards.
|
| You brought me on a great idea to increase download speed!
Agree here...
| <div id=desc
| style="position:absolute;left:8;top:410;width:600;height:1;"> <script
|
| language=JavaScript>m("desc",0,400,0,110,160,150,340,30,200,130,0,30,600,1)
| </script>
|
what about
<STYLE>
.md {position:absolute;left:8;top:410;width:600;height:1}
</STYLE>
and
<div class=md>
"md" stands for "My Div", but saves 4 unnecessary bytes. :-)
| Is my current code for every DIV Block.
|
| About 20 of them used for a page.
|
| I could reduce to
| <div id=desc>
| <script
| language=JavaScript>m("desc",0,400,0,110,160,150,340,30,200,130,0,30,600,1)
| </script>
|
you still can improove it:
<div id=desc
onmouseover='m("desc",0,400,0,110,160,150,340,30,200,130,0,30,600,1)'>
why waste space on SCRIPT tag, plus extra space on closing it (</SCRIPT>)?
:-))
I guess you need context resized/displaed only when mouse moves over it,
right? Otherwise (if customer is not interested in this DIV, why we should
waste layout (rendering) time on this DIV?
|
| Only disadvantage:
|
| All who switched off Javascript or have an
| V4 browser would see no layout any more.
|
don't worry about that.
www.olympics.com was requiring JavaScript turned on, and www.oracle.com also
will not run without JS.
Unless you are designing world-wide, global site like yahoo.com, you can
count JS turned On.
Well, it was *requirement* for Olympics web site, targeted on very wide
auditory, so if you have narrowed focus group, JS==ON should be ok, IMO.
| So I will do this maybe at christmas when Netscape 4
| is down to 2% and not worth to waste for the
| few users to lazy to upgrade about 1 Kb bandwith
| per page any more.
|
| --
| Roland M�sl
| http://pege.org Clear targets for a confused civilization
| http://BeingFound.com Web Design starts at the search engine
You can take a look at:
http://htmltests.newmail.ru
I was not updating this page for some time, but I guess you can find some
minimalistic layout ideas on that page.
--
Vadim Plessky
http://kde2.newmail.ru (English)
33 Window Decorations and 6 Widget Styles for KDE
http://kde2.newmail.ru/kde_themes.html
Do you have Arial font installed? Just test it!
http://kde2.newmail.ru/font_test_arial.html