|
|
|
|
|
для: warwar_ru
(06.07.2006 в 11:34)
| | parent для 3.php не существует, только opener или opener.parent .
А доступ к форме в 1.php - opener.parent.frames['game'].forms['...']
( Пользуйтесь [ code ] ! ) | |
|
|
|
|
автор: warwar_ru (06.07.2006 в 11:34) |
|
| Ситуация:
У меня есть фреймы 2 штуки
<FRAMESET ROWS="*,150" frameborder=0 bordercolor='#000000' framespacing=0 name='allfr' border=1>
<FRAME NAME='game' SRC='1.php' frameBorder=0 bordercolor=0 warginwidth=0 merginheight=0>
<FRAME NAME='chat' SRC='2.php' frameBorder=0 bordercolor=0 warginwidth=0 merginheight=0>
</FRAMESET>
на 2.php есть форма(с тегом input) и ссылка(ее жмешь и открывается новое окно(3.php) с картинками)
жмешь на картинку и кусок кода должен копироваться в 1.php(в форму, в элемент input )
текст на 3.php такой:
<SCRIPT LANGUAGE="JavaScript">
<!--
function insertsmile(dat)
{
window.parent.send.sendform.what.focus();
window.parent.send.sendform.what.value += dat+' ';
window.opener.what.value += dat;
}
//-->
</SCRIPT>
<A HREF="javascript:insertsmile('[::1::]')">
<IMG SRC="box2.gif" BORDER=0></A>
//what-имя элемента input куда надо вывести инфу | |
|
|
|
|