Matt Kan
2013年8月6日 18:51
");
$(".story_photo .videoPlay").hover (
function(){$(this).css({"opacity":"0"})},
function(){$(this).css({"opacity":"1"})}
)
}
//照片區塊出現
$(".story_photo").fadeIn(1000);
//寫入第一張照片
var firstimg = $(".story_photo img:first").attr("rel");
$(".story_photo img:first").attr("src",firstimg);
$(".story_photo li:not(:first)").hide();
//判斷是否有多張照片,寫入開關
var li_nums = $(".story_photo li").length;
var openclose = '
更多照片 '
if (li_nums > 1) {
$(".story_photo .p_switcher").append(openclose);
}
//控制錨點
if (li_nums > 1) {
$('.open_btn, .story_photo img').click(function(){
$('.news_story').ScrollTo(500);
});
$('.close_btn, .story_photo img').click(function(){
$('.news_story').ScrollTo(500);
});
} else {
$(".story_photo img").css("cursor","none").attr("title","");//一張圖時
$(".p_switcher").hide();
}
//點擊圖片或開關,展開其他圖片
$("a.open_close").click(function(){
//寫入其他圖片路徑
$(".story_photo img:not(:first)").each(function(){
var imgsrc = $(this).attr("rel");
$(this).attr("src",imgsrc);
});
$(".story_photo li:not(:first)").slideToggle(500);
$(".open_close span").toggle();
});
if (video_link>0){ // 如果有影音,點圖連到影音頁
$(".story_photo img, .story_photo .videoPlay").css("cursor","pointer").attr("title","點擊觀看影音新聞");//設定游標
$(".story_photo img, .story_photo .videoPlay").click(function(){
var videoURL = $(".story_photo .video_link a").attr("href");
location.href=videoURL;
});
} else { //沒影音時,點圖展開其它圖
if (li_nums > 1) {//一張圖以上
$(".story_photo img").css("cursor","pointer").attr("title","點擊展開");//設定游標
}
$(".story_photo img").click(function(){
//寫入其他圖片路徑
$(".story_photo img:not(:first)").each(function(){
var imgsrc = $(this).attr("rel");
$(this).attr("src",imgsrc);
});
$(".story_photo li:not(:first)").slideToggle(500);
$(".open_close span").toggle();
});
}
//-------------------
});
-

Yahoo「搜尋快現」和Google「知識圖譜」看起來很像,底子裏不一樣(圖片取自/網路)
記者甘偉中/台北報導
Yahoo和Google可說是伴隨我們一同長大的搜尋引擎,Google以其強大的技術能力橫掃全球,而Yahoo以其在地入口網站的優勢,始終也是不少人瀏覽器預設的首頁,佔據不少的搜尋市場。其實兩者屬性不盡相同,善用適當的工具,才能享受實用又有趣的網路生活。
Google去年發表了「知識圖譜」(Knowledge Graph)功能,讓搜尋結果除了傳統依據關鍵字排列的網站清單之外,還能出現一些更為接近真實世界的語義式(semantic)資料。其實Yahoo也有類似的功能叫做「搜尋快現(Direct Display Builder)」,大體上也是讓搜尋結果顯示更多的關聯式訊息。
比如在Yahoo上搜尋「統一發表」,顯示的結果頁上除了依據關鍵字排列的相關網站之外,還會出現最近兩個月的中獎號碼單;而在Google上搜尋「獅子」,則是會在結果頁右側出現獅子的圖片、介紹、象徵國家、物種分類等額外資訊。
▲ 在Yahoo上搜尋「統一發表」,會出現最近兩個月的中獎號碼單(圖片取自/網路)
▲ 在Google上搜尋「獅子」,會在結果頁右側出現獅子的圖片、介紹、象徵國家、物種分類等額外資訊(圖片取自/網路)這兩者的差異在於,Yahoo「搜尋快現」是由編輯團隊,針對時下熱門議題的關鍵字特別製作而來;Google「知識圖譜」則是利用技術,串連網路上各式各樣的資料來源(例如維基百科),以及Google使用者每天不斷累積的搜尋行為,分析關聯而來。
兩者各有特色,Yahoo的作法是主動提供在地使用者對於當下時事、生活資訊的需求,Google則是設法讓搜尋引擎本身更聰明,彷彿成為一個有智慧的機器人。大家日後在網路查找資料時,不妨兩者都試用看看,或許可以更快速、更方便找到所需的內容。
關鍵字:
搜尋引擎
Yahoo
Google
搜尋快現
知識圖譜
This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends: 'You Say What You Like, Because They Like What You Say' - http://www.medialens.org/index.php/alerts/alert-archive/alerts-2013/731-you-say-what-you-like-because-they-like-what-you-say.html