Hi,
i have two html pages, when you click on something on the first html, it will go to the second one. what i want to do is to show text according to what you clicked on the first html. different texts are wrapped with different ids. here's how i wrote:
<a href="secondpage.html#one"></a>
<a href="secondpage.html#two"></a>
<a href="secondpage.html#three"></a>
i'm expecting to see two.html load the text with id "one", but it doesn't work, does anyone know what I did wrong? Thanks.
here's the code on second page
<ul id="menu" class="aaa">
<li><a id="one" href="#">one</a></li>
<li><a id="two" href="#">two</a></li>
<li><a id="three" href="#">three</a></li>
</ul>
and i have a js file to modify each id
$("one").observe('click', function() {
$('Pic').writeAttribute('src',"picone.jpg");
$('Bio').update("texthere!");
});
same for two and three.
right now if I click on a button on the first page, it will always show the text and pic for "one", no matter which button i click.
but i want to see the pic and text for "two" if i click on it.
thanks.