
13.01.2009, 19:29
|
|
Постоянный
Регистрация: 07.03.2008
Сообщений: 479
С нами:
9567480
Репутация:
61
|
|
PHP код:
function ItemLine(checkbox, text, hidden)
{
buy = eval("document.pay." +hidden);
if(buy.value==""){
document.getElementById(checkbox).style.color = 'lime';
document.getElementById(checkbox).innerText = '+';
document.getElementById(text).style.fontWeight = 'bold';
document.getElementById(text).style.color = '#FFCA42';
price=document.getElementById(text).innerText;
Price(price,"plus");
buy.value="1";
} else {
document.getElementById(checkbox).style.color = 'red';
document.getElementById(checkbox).innerText = '';
document.getElementById(text).style.fontWeight = 'normal';
document.getElementById(text).style.color = '#9F9F9F';
price=document.getElementById(text).innerText;
Price(price,"minus");
buy.value="";};
}
Есть функция которая управляет знаначением поля у формы hidden передаётся названия поля но почему оно не принимает числовое значение? Функция почемуто нарушается.... 32 не проходит а i32 проходит...
Вот сама форма:
PHP код:
<form ......>
<tr><td style='cursor:hand' bgcolor=#494949 onmouseover="this.bgColor='#555555'" onmouseout="this.bgColor='#494949'" onclick="ItemLine('buyitemcheck242', 'buyitemprice242', 'i32')">
<table border=0 cellpadding=2 cellspacing=2 width=100% >
<tr><td width=35 align=center><font size=3pt><b><span id=buyitemcheck242 style='color:#FF0000'></span></b></font></td>
<td width=45><img src=../la2_icons/drac_bow_sa.png></td><td><b> Драк боу(фокус) + Драк сет</b></td>
<td width=80 align=center><span id=buyitemprice242>1900 руб</span></td>
<td width=15><input type=hidden name=i32></td></tr></table></td></tr></form>
Последний раз редактировалось Byrger; 13.01.2009 в 19:33..
|
|
|