se************@gmail.com wrote:
[...]
Is there somewhere I've not found on the web or an example that
somebody might be willing to share to give me an idea of how to do
this? I'm using the script from a library & I've never really gotten
into the DOM for doing stuff.
What you are trying to do requires HTML and CSS. These languages are
used by a browser to build a document object model (DOM) of elements
with attributes. If you get the elements and their attributes right,
you will have a menu in the center of a three column table.
Once you work out how to build the DOM you want using HTML and CSS, you
might then be ready to start modifying it using script and the DOM API
described by the various W3C DOM specifications.
Javascript is just another way of building and modifying the same DOM.
It doesn't have any special power to position or modify elements other
than those provided by HTML and CSS.
My code problem for all intents & purposes looks like this:
<table width="100%" border="1" cellspacing="0" cellpadding="1">
<tr>
<td>Left side stuff</td>
<td><script src="../_scripts/hrz_menu.js"></script></td>
<td>Right side stuff</td>
</tr>
</table>
If you want help with HTML and CSS, start with a tutorial, there are
thousands on the web. Expect to be told lots of rubbish, so use groups
dedicated to those technologies to answer questions:
HTML: comp.infosystems.
www.authoring.html
CSS: comp.infosystems.
www.authoring.stylesheets
For javascript, you can start with <URL:http://www.w3schools.com>,
though like any other tutorial they preach their fair share of rubbish.
Stay open minded and skeptical, ask questions here.
--
Rob