
06.08.2007, 06:27
|
|
Постоянный
Регистрация: 20.01.2007
Сообщений: 705
Провел на форуме: 5381835
Репутация:
1329
|
|
Joker-jar
Обчным методом нельзя
Извращение:
PHP код:
<div style="left:10; top: 10; position: absolute;">
<table cellpadding="0" cellspacing ="0">
<tr>
<td style="vertical-align: top"><input name="veve" style="margin: 0; padding: 0"></td><td style="vertical-align: top"><img src="картинка" onclick="ve.style.display=(ve.style.display==''?'none':'');it=2;"> </td>
</tr>
</table>
</div>
<div style="left: 10; top: 31; position: absolute; display: none; width: 170; color: black; font-family: verdana; font-size: 10; border: 1 black solid; background-color: white" id="ve">
<table style="cursor: hand;" cellsapcing="0" cellpadding="0" width="100%">
<tr>
<td onmouseover="this.style.backgroundColor='black'; this.style.color='white'" onmouseout="this.style.backgroundColor='white'; this.style.color='black'" onclick="veve.value='Вариант 1';ve.style.display='none'">Вариант 1</td>
</tr>
<tr><td onmouseover="this.style.backgroundColor='black'; this.style.color='white'" onclick="veve.value='Вариант 2'; ve.style.display='none'" onmouseout="this.style.backgroundColor='white'; this.style.color='black'">Вариант 2</td>
</tr>
</table>
<script>
var it = 0;
document.onclick=zz;
function zz(){
it--;
if(it!=1){
ve.style.display='none';
}
}
</script>
Последний раз редактировалось FeraS; 06.08.2007 в 06:38..
|
|
|