|
|
|
| у меня вопрос как сделать при нажатии на кнопку появлялась форма | |
|
|
|
|
|
|
|
для: Алексей Рябченко
(24.02.2008 в 16:16)
| | Использовать onclick(), сво-ва display стиля формы! | |
|
|
|
|
|
|
|
для: Алексей Рябченко
(24.02.2008 в 16:16)
| |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<title>Untitled Document</title>
<script language="JavaScript">
<!--
function doBlock(id){
document.getElementById(id).style.display='block';
}
function doNone(id){
document.getElementById(id).style.display='none';
}
function doDisplay(id){
display = document.getElementById(id).style.display;
if(display=='none')doBlock(id);
if(display=='block')doNone(id);
}
//-->
</script>
</head>
<body>
<a href="#" onClick="doDisplay('form_id'); return false;">Показать и скрыть</a> | <a href="#" onClick="doBlock('form_id'); return false;">Показать</a> | <a href="#" onClick="doNone('form_id'); return false;">Скрыть</a> |
<input name="" type="button" value="показать" onClick="doBlock('form_id'); return false;" />
<form id="form_id" name="name_form" method="post" action="" style="display:none;">
<input type="text" name="name_text" />
<br />
<textarea name="name_textarea" cols="" rows=""></textarea>
<br />
<input type="submit" name="submit" value="OK" />
</form>
</body>
</html>
|
| |
|
|
|
|
|
|
|
для: mikha
(24.02.2008 в 17:34)
| | извините за такой вопрос но только начал изучать javascript.
можно хоть простенький пример вот этого
Вот ссылка на http://cwer.ru/oformlenie_novostei
и там посмотрите пункт 6. Оформление ссылок. | |
|
|
|
|
|
|
|
для: Алексей Рябченко
(24.02.2008 в 23:39)
| | Да предложений никоких | |
|
|
|