HomePage | RecentChanges | Preferences | Newbie Help

The following snippets need clean-up and posting -- see also backlog2

What tag should I put too add sound to my web site.....
for explorer I used <BGSOUND SRC="sound.wav" LOOP=2> but It's not working in Netscape

Netscape uses the EMBED tag, not the BGSOUND tag. IE now recognises the EMBED tag as well, and there is no need to have both. But add both, catering for older versions of browsers:

<DIV align="center"> <embed src="amazing.mid" console width="150" height="70" loop="false" volume="50%" TYPE="audio/midi"> <NOEMBED><BGSOUND SRC="amazing.mid" loop="2" volume="50%"></NOEMBED> </DIV>

Sid Ismail

How can build a site so my client can edit pages?

i have a background image in a table. the image only shows up in the
table (which is what i want :) ). i want the image to NOT tile. i'd
like it just by itself bang in the middle of the table. any help is

Background in a table - NN quirk (null.gif is my 1x1 transparent)

<table background="bgyouwant.jpg">

<!--  this is your actual table below -->
  <td background="null.gif">blah blah</td>
  <td background="null.gif">blah blah blah</td>
  <td colspan=2 background="null.gif">blahh blahh</td>

If you do not nest your tables as above, NN will repeat your background in each TD. Sid Ismail

The following idea is valid and seems to work on IE 5.0 and Netscape 4.5 on Win, but it requires some logically redundant markup: Wrap the content of each LI into a DIV and suggest the desired properties for item numbers for OL and the desired normal text properties for those DIVs. Example:

<style type="text/css"> ol { color: #00f; background:#fff none; font-weight: bold; } .li { color: #000; background:#fff none; font-weight: normal; } </style>

<form> <ol> <li><div class="li>one</div></li> <li><div class="li">two</div></li> <li><div class="li">three</div></li> </ol>

You could dispense with the class if you use contextual selectors that pick up those DIVs that you use there, but this assumes that you don't otherwise use DIV inside list items. And for some incomprehensible reason, the selector li div (instead of .li above) makes Netscape apply the rules intended for list numbers to the items themselves, whereas the selector ol div works the intended, correct way.

Jukka Korpela

For some basics on doing client-side calculations in JavaScript, see
I seem to recall reading someplace that u can make a table border look like
the grid of a spreadsheet.Like real thin borders. Even when i set the border
width to 1 it still looks quite thick. Any ideas...

Try using border=1, but set cellspacing=0. See the difference.

td.new { width:200px;
              border-bottom: 1px solid;
              border-left: 1px solid;
              border-right: 1px solid;
              border-top: 1px solid;

<td class="new"> </td>
meta tags...

Does anybody have any other interesting meta tags out there like this one?
If so can you post them here.

Here you are:

@media print {
.noprint {display: none}

<div class="noprint">

This text will be invisible on the printed page in IE5, Opera 5, NS 6.
But NS 4 doesn't support such advanced CSS stuff.

Some examples of DHTML, including several drop down menus, that work cross browser:

Dropdown menu --

With GO button --

<OPTION VALUE="main.html" SELECTED="selected">Home</OPTION>
<OPTION VALUE="new.html">What's New?</OPTION>
<OPTION VALUE="friends.html">Friends</OPTION>
<OPTION VALUE="search.html">Search</OPTION>
<INPUT TYPE="button" VALUE="GO" ONCLICK="top.location.href=this.options[this.selectedIndex].value;return='false';">

With no GO button --

<form action="" method=post><select name="" onChange="top.location.href = this.options[this.selectedIndex].value;">
<option value="index.htm">Public Access:</option>
<option value="cases.htm">Case Studies</option>
<option value="biblio.htm">Bibliography</option>
<option value="appnotes.htm">Application Notes</option>
<option value="vendors.htm">Vendor Links</option>
<option value="ptrain.htm">Training, Education</option>

For frames, Use <select name="" onchange="parent.frames[1].location.href =this.options[this.selectedIndex].value;">

Where frames[1] is the second frame mentioned in your frameset (frames[0] is the first frame you mention in your frameset).

Opinions in a FAQ:

That's an interesting point, and a good differentiation between a factual FAQ sheet and an opinion or design-philosophy FAQ. After all, an HTML FAQ is not on the same moral slippery slope as answering "How do I make a pipe bomb" or "What's the best way to sell cigarettes to children."

But the opinions of experienced practitioners of the web-based black arts are too valuable simply compartmentalize and discount. They should be heard -- someplace. However, discussions of the the merits and impact of various techniques (and excesses) are lost on those who don't understand the techniques in the first place.

Contributors to http://allmyfaqs.net seem to have settled on eating your cake and having it too. They answer (or give links to the answer for) the question first, and add admonitions and advisories after. First the facts, then the opinion. "Try it yourself, if you must, but bear in mind that there may be disadvantages, and when you have enough experience under your belt you will appreciate the following lofty opinions and perhaps have an informed opinion of your own." Sometimes (most often) the opinions are signed by their expounders, which gives a sense of continuity and structure -- oh yeah, this guy knows about this stuff, his other opinions have been helpful, etc. Community consensus holds sway -- useful opinions survive, less useful opinions don't.

But a FAQ sheet for a newsgroup is not a consensus -- it is a summary of frequently asked-questions and their frequently-provided answers. Frequently-asked usually means "basic, asked by newbies". In a newsgroup with a technical orientation, it's a legitimate expectation that a question of this nature will have a factual, technical, simple answer. A non-answer, or an opinion with no factual explanatory support, simply trashes the needs of the asker of the FAQ, impugns the technical seriousness of the group, and paints all the group's contributors with the same muddy brush.

Opinions, disputes, contrary information, personal experience, rationalizations, creative desires, murky client objectives -- these are all the meat and potatoes of the newsgroup. The FAQs merely provide some of the utensils to let us get started on the meal. They need to be clean and shiny, facts only -- the "how" -- leaving the dynamics of discussing the "why" and "when" to open forum of newsgroup postings.

The FAQ "How do I get mashed potatoes into my mouth without burning my fingers?" should be answered "Use a fork. The one with the long tines holds more than the one with the short tines." Discussions of the moral implications of getting more potatoes by stabbing your kid brother's hand with the fork belong in the group, not in the FAQ sheet.

The way to do this is is to not specify the width in the <table> tag but in a <td> tag. This way the table will shrink if needed but never get wider than the specified width of the <td>. If you also want to set a "minimum" width then a transparent .gif ( or if space allows, another fixed width table) could be used to in a cell to set the minimum desired width.


  <tr><td width="600" bgcolor="#ccccff">
     This table should have a maximun width
     of about 600 and a minimum width of 300
     <table border="0" width="300">
       <tr><td> </td></tr>
Richard has some info about this at: http://www.users.bigpond.net.au/rf/tricks/fixedmenu.htm


for a simple example (CSS-capable browsers only, I'm afraid) take a look at <http://gutfeldt.ch/matthias/articles/styleforms/styletemplate.php?incl=8>;. And don't forget that extensive forms styling will completely confuse your visitors.

Matthias Gutfeldt

How do I post HTML in email?

HomePage | RecentChanges | Preferences | Newbie Help
This page is read-only | View other revisions
Last edited March 12, 2002 5:23 pm (diff)

This FAQ is happily hosted by Betadome Digital Media