PDA

Orijinalini görmek için tıklayınız : Site içi arama motoru


NoMercy
08-11-2007, 01:09 PM
Site içi arama motoru


<HTML>
<HEAD>
<TITLE>z-arama-motoru(site-ici)-1</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Dion (ahmet@trcafem.com) -->
<!-- Web Site: www.trcafem.com -->

<!-- Begin
var item = new Array();

/* Here is where all the magic happens.
Just enter as many additional pages that
that you want to search, then fill in the
additional listings for each page.
*/

// "Page Name","path","Page Title","Many,Key,Words","Descriptive Comments"

c=0; item[c]=new Array("index.html","","DemoSite","index,main,start,home,front","Demonstration search engine data about an imagined but probable internet site.");
c++; item[c]=new Array("about.htm","","About Me","about,author,contact,email,who","Contact details and general information about the creator of the site and what the site is about.");
c++; item[c]=new Array("links.htm","","Links page","links,more,where,similar,friends","Links to my favourite sites which I find interesting. Other friends sites which have similar interests to my own.");
c++; item[c]=new Array("main.htm","main/","Main Page","content,main,focus","The main part of my site which contains what you have come to see. Lots of stuff like that and more great things. All in a sub directory.");
c++; item[c]=new Array("logo.jpg","main/images/","Link Logo","link,image,logo,graphic","The logo.jpg is just a small image which you can place on your site as a link to me. It''''s in a second level subdirectory.");

page="<html><head><title>Search Results</title></head><body bgcolor=''''white''''><center><table border=0 cellspacing=10 width=80%>";


function search(frm) {
win = window.open("","","scrollbars");
win.document.write(page);
txt = frm.srchval.value.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>Toplam Sonuç: "+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;
}
// End -->
</script>



</HEAD>
<BODY>

<center>

<form method=get action="javascript:void(0)" onsubmit="search(this); return false;">
<tr><td><input type=text name=srchval value="" size="20"><input type=submit value="Ara"></td></tr>
</form>

</center>

<p><font face="Tahoma" size="2">Örnek olarak index, about, links, focus, image
kelimelerini deneyebilirsiniz.</font></p>

</BODY>
</HTML>

By ReMix
ahmet@trcafem.com

ijkl171
10-05-2008, 01:25 PM
第103届广交会即将揭幕,房价暴涨的局面再度出现,对于广州酒店业又将是一场严峻的考验。虽然广州市政府 对广交会期间 广州市酒店房价实行政府认可的行业指导价 ,但 市内星级酒店在广交会期间的报价平均 都 在2000元/晚左右, 不少配置顶级 的五星级酒店,报价均维持在2500元 — 3000元/晚。 这样的局面相较于其他酒店业者的升价政策,2007年度中国最佳经济型连锁酒店——7天连锁酒店却独树一帜 ,抛出了低至237元/房晚的特惠房价,以充足的房源、合理的价格和优质的服务,满足消费者、回馈消费者! 237元心动特惠!让广交会房价不再昂贵! 作为本次广交会最大房源供应商, 7天连锁酒店预订 (http://www.7daysinn.cn)在广州地区拥有超过20家分店、2300间客房,分店 覆盖了各大展馆、机场、火车站、地铁站沿线、商业中心及旅游景点等区域,交通便利,周边生活娱乐设施齐全, 有实力更有信心为各交易团的商务之路保驾护航! 广交会期间,客人只需要低至237元/房晚的价格 即可享受 7天连锁酒店 提供的高性价比酒店服务。除了 免费宽带上网、1.8米舒适大床、纯棉被褥、 24 小时按摩淋浴设备、独立空调、电视、电话等优质硬件服务,7天还为每位入住的会员客人赠送睡前牛奶一盒,每 天早上更提供便捷的营养早餐等优质会员专享服务。 成为7天会员还可以享受新会员77元大床房体验、全国会员优惠房价、会员积分兑换免费房、预订保留、延时退 房等 等“七大快乐专享服务”,广交会期间住宿自主,更加顺您心意! 三重大礼赢取 3000 元京津客房,共享 08 盛世! 除了广交会期间的特惠活动外, 7 天连锁酒店更携手搜狐举办“奥运期间房晚竞拍活动”,与您共庆 08 北京奥运会这一盛事。 2008 年 8 月 1 日至 31 日奥运期间, 7 天连锁酒店北京、天津两地全部分店超过 90000 间房晚通过网络进行公开竞拍。有兴趣可以南京短租公寓 (http://www.njapartment.cn)...还不错