Логин:

Пароль:

Форумы
Общие вопросы
Document Object Model
Обсуждаем конференцию
Web Usability (test)

Document Object Model

пробуй!!

<html>

<head>

<meta http-equiv="Content-Language" content="en-us">

<script language=JavaScript>
dom = (document.getElementById)? true : false;
nn4 = (document.layers)? true : false;
ie4 = (document.all && !dom)? true : false;

function putElem(elemId) {
if (dom) document.getElementById(elemId).style.display = "block";
else if (ie4) document.all[elemId].style.display = "block";
else alert('Ваш браузер не позволяет менять свойство display для элемента: '+elemId);
}

function removeElem(elemId) {
if (dom) document.getElementById(elemId).style.display = "none";
else if (ie4) document.all[elemId].style.display = "none";
else alert('Ваш браузер не позволяет менять свойство display для элемента:'+elemId);
}
</script>

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
</head>

<body>

<table border="1" width="100%">
<tr id="1.1">
<td width="25%"><a href="JavaScript:removeElem('1.1.1');">hide</a> __ <a href="JavaScript:putElem('1.1.1');">show</a></td>
<td width="25%">1&nbsp;</td>
<td width="25%">1&nbsp;</td>
<td width="25%">1&nbsp;</td>
</tr>
<tr id="1.1.1">
<td width="25%">2&nbsp;</td>
<td width="25%">2&nbsp;</td>
<td width="25%">2&nbsp;</td>
<td width="25%">2&nbsp;</td>
</tr>
<tr id="1.1.1">
<td width="25%">3&nbsp;</td>
<td width="25%">3&nbsp;</td>
<td width="25%">3&nbsp;</td>
<td width="25%">3&nbsp;</td>
</tr>
</table>

</body>

</html>
СообщениеАвторДата
Стас02.10.2002 20:33
Гость17.10.2002 12:55