Jump to content

Search the Community

Showing results for tags 'окнопомощь'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Development
    • HTML Coding
    • JavaScript
    • PHP
    • CMS
    • Database
    • Web Server
    • Web-site Development
    • Internet Marketing, SEO
  • Library
    • Tricks and solutions
    • Books
  • Commercial services
    • Freelance
    • Job
    • Goods and Services
  • Our Forum
    • Flame
    • Contests
    • Feedback and Ideas

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Web site


Telegram


Signal


Viber


Skype


From


Interests

Found 1 result

  1. Я нашел скрипт для поиска по сайту, но не могу вывести в фрейм результат, помогите пожалуйста кто-нибудь <html><body> <!-- Скрипт поиска --> <script LANGUAGE="Javascript"> var item = new Array(); c=0; item[c]=new Array("arts/arts.htm","","ЛИРИКА ","лирика,ключевые слова,и еще слова","Лирика"); c++; item[c]=new Array("drama/menu/1808-1816/torzhestvo.htm","","торжество","торжество,слова","Императрица"); page="<html><head><title>Результаты поиска</title></head><body bgcolor='azure'><center><table border=0 cellspacing=10 width=60%>"; function search(frm) { win = window.open(); win.document.write(page); txt = frm.srchval.value.toLowerCase().split(" "); fnd = new Array(); total=0; for (i = 0; i < item.length; i++) { fnd[i] = 0; order = new Array(0, 4, 2, 3); for (j = 0; j < order.length; j++) for (k = 0; k < txt.length; k++) if (item[i][order[j]].toLowerCase().indexOf(txt[k]) > -1 && txt[k] != "") { fnd[i] += (j+1); } } for (i = 0; i < fnd.length; i++) { n = 0; w = -1; for (j = 0;j < fnd.length; j++) if (fnd[j] > n) { n = fnd[j]; w = j; }; if (w > -1) total += show(w, win, n); fnd[w] = 0; } win.document.write("</table><br>Всего найдено: "+total+"<br></body></html>"); win.document.close(); } function show(which,wind,num) { link = item[which][1] + item[which][0]; line = "<tr><td><a href='"+link+"'>"+item[which][2]+"</a> Score: "+num+"<br>"; line += item[which][4] + "<br>"+link+"</td></tr>"; wind.document.write(line); return 1; } </script> <!-- Конец скрипта поика --> </body></html> Вот страница в которую нужно вывести фрейм <HTML> <HEAD> <TITLE></TITLE> <META HTTP-EQUIV="Content-Type" content="text/html; charset=UTF-8"> </HEAD> <BODY BGCOLOR="#ffffff"> <FRAME NAME="search" SRC="search.htm"> </BODY> </HTML> И вот код формы отправки <form class="form-search" method='get' action="javascript:void(0)" onsubmit="search(this); return false;"> <input type=text name=srchval placeholder='Поиск"' value="" size='12'> <input type="submit" value="Поиск"> </form>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy