lallous wrote:
I have two tables in a page as:
<span id="id1">
<table>
Invalid markup. <span> elements cannot contain <table> elements. Invalid
markup is a shaky foundation to try to build scripting on. I strongly
suggest you make use of http://validator.w3.org/
I want to write a javascript function that allows me to show one table at
a time.
Give the tables an id each. Access them with document.getElementById().
Toggle their .style.display property between "" and "none".
Now AFAIK, this can be done through setting a "position" style and then
playing with each ID's top/left attributes.
That makes things overly complicated and error prone. You don't need to do
this to achieve the stated goal.
Is there is any way to position the layer
The what? http://dorward.me.uk/www/layers/
wherever I want based on a rendered item?
I'm not quite sure you are saying here, but I think the answer is "No, but
you can achieve the goal you stated at the beginning easily enough."
--
Please fix your sig separator. It should be two dashes (which you have)
followed by a space (which you don't have) and *then* the new line. Decent
newsreaders can automatically drop correctly written sigs from quoted
material.
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is