gregoryaz
Junior Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору Вот код стартовой страницы Цитата: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> <title>Новая страница 1</title> </head> <body> <style> #search_button { color:#ffffff; font-family:"Times New Roman", "serif"; font-size:10pt; font-weight:400; font-style:normal; background-color:#666666; border-style:solid; border-width:1px; border-color:#ffffff; } #s_search { color:#808080; font-family:"Times New Roman", "serif"; font-size:10pt; font-weight:400; font-style:normal; background-color:#D8D8D8; padding:5px; width:200px; border-style:solid; border-width:1px; border-color:#ffffff; text-align:left; } #head_search { color:#006699; font-family:"Times New Roman", "serif"; font-size:10pt; font-weight:300; font-style:normal; text-align:left; } </style> <script language='JavaScript1.1' type='text/javascript'> <!-- function ins(i) { var val=document.search.quit.value; var p1="<div id=head_search>поиск по сайту</div>"+"<input name='quit' type='text' ID='quit' size=18> "+ " <input type='submit' value=ok id=search_button > "+ "<a href='javascript:ins(2)'><img src='/search/img/down.png' alt='Подробный поиск' border=0></a>"; var p2="<div id=head_search>поиск по сайту</div>"+"<input name='quit' type='text' ID='quit' size=18> "+ " <input type='submit' value=ok id=search_button > "+ "<a href='javascript:ins(1)'><img src='/search/img/up.png' alt='Закрыть' border=0></a><br>"+ "<input name='toch' type='checkbox' value='ON'> "+ "точное совпадение<br>"+ "<input name='registr' type='checkbox' value='ON'> "+ "учитывать регистр<br>"+ "<input name=log type=radio value='1' > "+ "любое слово<br>"+ "<input name=log type=radio value='2' checked> "+ "фраза целиком"; var insp; switch (i) { case 1: insp=p1; break; case 2: insp= p2; break; } document.getElementById('s_search').innerHTML = insp; document.search.quit.value=val; } //--></script><div align=left><form name='search' action='/search/search.php' method='post' target='I1'> <div id=s_search><div id=head_search>поиск по сайту</div><input name='quit' type='text' ID='quit' size=18> <input type='submit' value=ok id=search_button > <a href="javascript:ins(2);"><img src='/search/img/down.png' alt='Подробный поиск' border=0></a></div> </form></div> <p><iframe name="I1" src="kola.htm"> Ваш обозреватель не поддерживает встроенные рамки или он не настроен на их отображение. </iframe></p> </body> </html> | Добавлено: Вот код странички во фрейме с результатами поиска, где при нажатии на ссылку открытие происходит в новое окно, а надо бы тут же во фрейме! Цитата: <html> <head> <style> #search_block { background-color:#F7F7F7; border-style:solid; border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 3px; border-color:#AAAAAA; padding:5px; margin-bottom:10px; text-align:left; width:100%; } #search_info { color:#808080; font-size:10pt; font-weight:400; font-style:normal; font-family:"Times New Roman", "serif"; text-align:left; } #search_tit { font-size:10pt; font-weight:600; font-style:normal; font-family:"Arial", "sans-serif"; color:#6699ff; text-align:left; } #search_tit a { font-size:10pt; font-weight:600; font-style:normal; font-family:"Arial", "sans-serif"; color:#6699ff; text-align:left; } #con { font-size:10pt; font-weight:400; font-style:normal; font-family:"Times New Roman", "serif"; color:#808080; } #search_content { background-color:#ffffff; width:80%; border-style:solid; border-width: 0px; border-color:#EBEBEB; padding:10px; } #search_count { font-size:10pt; font-weight:300; font-style:italic; font-family:"Times New Roman", "serif"; color:#000000; } #search_text_link { font-size:10pt; font-weight:300; font-style:normal; font-family:"Times New Roman", "serif"; color:#0099ff; text-align:right; } #search_text_link a { font-size:10pt; font-weight:300; font-style:normal; font-family:"Times New Roman", "serif"; color:#0099ff; } .navig_activ { font-family:"Times New Roman", "serif"; font-size:12pt; color:#800040; font-weight:700; } .navig_passiv { font-family:"Times New Roman", "serif"; font-size:12pt; color:#808080; font-weight:400; } a.navig_passiv { Text-decoration: none; } a.navig_activ { Text-decoration: none; } #navig { text-align:left; } </style> <title>Поиск по запросу :: а</title> </head> <body bgcolor= #ffffff background=> <table width=100% border=0 cellpadding=10 > <tr> <td valign=top width=100% align=center> <div id=search_content><div id=search_info>По вашему запросу <b>а</b> найдено 3 документов.</div><br><div id=search_block><div id=search_tit><a href=http://www.test1.ru/index.htm target=_blank>Новая страница 1</a></div><div id=con> Ваш обозреватель не поддерживает встроенные рамки или он не настроен на их отображение. </div><div id=search_count>Совпадений 7 </div><div id=search_text_link align=right><a href=bak/1.html target=_self>текстовая копия</a></div></div><div id=search_block><div id=search_tit><a href=http://www.test1.ru/kola.htm target=_blank>коля обменял свой nokia на phili</a></div><div id=con> коля обменял свой nokia на philips 707 </div><div id=search_count>Совпадений 1 </div><div id=search_text_link align=right><a href=bak/2.html target=_self>текстовая копия</a></div></div><div id=search_block><div id=search_tit><a href=http://www.test1.ru/vasa.htm target=_blank>вася купил телевизор самсунг gal</a></div><div id=con> вася купил телевизор самсунг galaxy note </div><div id=search_count>Совпадений 2 </div><div id=search_text_link align=right><a href=bak/3.html target=_self>текстовая копия</a></div></div></div> </td> </tr> </table> </body> </html> | Добавлено: Понимаю, что причина скорее всего в target=_blank, однако в PHP-коде не смог найти, где и как формируется данный HTML-код, чтоб это поменять! | Всего записей: 141 | Зарегистр. 23-08-2005 | Отправлено: 23:54 04-03-2014 | Исправлено: gregoryaz, 23:54 04-03-2014 |
|