Linkin!

hi::
i wanted to know if it was possible to link within cells-ie: one cell in the same page to another cell…or from one cell in one page to a specific cell in naother page???
also wanted to know if multiple frames can be linked from one link?
cheers!

Tables as well as the cells within them are not namable, and therefore cannot be referenced or linked in the manner you describe.

You can change the content of multiple frames from a single link, by using javascript.

you could do this


<td><a href = "#down">down</a></ td>
.
.
.
.
<td><a name = "down">down</a></td>

and link to two together

Tables as well as the cells within them are not namable

you can give then unique ids which is the same thing


<td id = "cell23">

then with javascript 
var cell = document.getElementById("cell23");
// now cell contains the an object whose properties can be manipulated programmaticly

cheers

I don’t think that’s what bratram is trying to do. Perhaps I’m misinterpretting his question, but I got the impression that he was trying to change the content of a cell not the properties of a cell, based on a click of a link within another cell.

Yo bratram? ya there bratram? Please clarify. :}

oh

well in that case you will need to use DOM and scripting

quick example
scripting is required…



<html>
	<head>
	<script>
	function changeIt()
	{
		
		var cell = document.getElementById("down")
		cell.style.color= "red";
		cell.innerHTML = "text is changed";
		}

	</script>
	</head>
<body>

<TABLE border="1">
<TR>
<td bgcolor="yellow"><a href = "[color=red]javascript[/color]:void(0)" onClick="changeIt()">hello</a></td>
<td>hello</td>
</TR>


<TR>
<td>hello</td>
<td>hello</td>
</TR>
<TR>
<td id = "down">hello</td>
<td>hello</td>
</TR>

<TR>
<td>hello</td>
<td>hello</td>
</TR>
</table>

</body>
</html>


cheers

bsw

Hmmm, color me impressed. Not sure what I’d ever used that for, but I’ll file it away in my bag of tricks. Thanks.

you can get some good info here
http://www.mozilla.org/docs/dom/domref

innerHTML is a IE thing that is not part of the w3c standard
but it is sort of accepted as the “black sheep” of the family

there is also outerHTML and innerTEXT etc…

the DOM method getElementById (one among many) is
very important when it comes to coding DHTML

Not sure what I’d ever used that for

that’s what i thought too but then I learned more about DOM and am only now slowly realizing the possibilities
the link above is super helpful

cheers

bsw