#%env/templates/metas.template%#
#%env/templates/header.template%# #%env/templates/submenuIntegration.template%#A 'Live-Search' input field that reacts as search-as-you-type in a pop-up window can easily be integrated in any web page. This is the same function as can be seen on all pages of the YaCy online-interface (look at the window in the upper right corner). Just use the code snippet below to integrate that in your own web pages. Please check if the address, as given in the example '#[ip]#:#[port]#' here is correct and replace it with more appropriate values if necessary.
<script src="http://#[ip]#:#[port]#/yacy/ui/js/jquery-1.3.1.min.js" type="text/javascript"></script> <script> $(document).ready(function() { yconf = { url : 'http://#[ip]#:#[port]#', logo : '/yacy/ui/img/yacy-logo.png', link : 'http://www.yacy.net', global : false, width : 500, height : 620, position : ['top',30], theme : 'start', title : 'YaCy Portal Search' }; $.getScript(yconf.url+'/yacy/ui/js/yacyui-portalsearch.js', function(){}); }); </script> <div id="yacylivesearch"> <form id="ysearch" method="get" accept-charset="UTF-8" action="http://#[ip]#:#[port]#/yacysearch.html"> Live Search <input name="query" id="yquery" class="fancy" type="text" size="15" maxlength="80" value=""/> <input type="hidden" name="verify" value="false" /> <input type="hidden" name="maximumRecords" value="10" /> <input type="hidden" name="resource" value="local" /> <input type="hidden" name="urlmaskfilter" value=".*" /> <input type="hidden" name="prefermaskfilter" value="" /> <input type="hidden" name="former" value="" /> <input type="hidden" name="display" value="2" /> <input type="submit" name="Enter" value="Search" /> </form> </div>
You can
download ready made themes or create
your own custom theme.
Themes are installed into: DATA/HTDOCS/yacy/ui/css/themes/