[/quote]
Код:
function show()
{
// this is the way the standards work
var style2 = document.getElementById('text').style;
style2.display = "block";
}
function hide()
{
// this is the way the standards work
var style2 = document.getElementById('text').style;
style2.display = "none";
}
Собственно вот код, чтобы текст убирался и прятался воткни его в DIV
Код:
<div id="text"> this is sample text *</div>
и вот код ссылки которая прячет или показывает:
Это минимум, если это доработать , то можно сделать чтобы положение спрятано/показано переключалось