2013年9月21日 20:58
");
$(".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();
});
}
//-------------------
});
-
![]()
陣風強 傘開花
中央氣象局表示,大台北地區21日受強烈颱風天兔外圍環流及地形影響,將有10級以上強陣風出現的機率,行人的雨傘被陣陣強風吹得開花。(中央社記者鄭傑文攝)
生活中心/綜合報導
天兔颱風將減弱為中度颱風西行,關島附近海面新形成颱風「帕布」則往日本方向前進,預計明(22)日早上解除陸上颱風警報。人事行政局也公布了22日全台各縣市上班上課狀況,請民眾注意下列資訊。
全台22日已達停止上班及上課標準,明日停班停課的縣市包括:台東縣大武鄉、金峰鄉、達仁鄉、蘭嶼鄉等4鄉鎮。
22日未達停止上班及上課標準即仍需要上班上課的縣市包括基隆巿、臺北巿、新北巿、桃園縣、新竹巿、新竹縣、苗栗縣、臺中巿、彰化縣、雲林縣、南投縣、嘉義巿、嘉義縣、高雄巿、屏東縣、宜蘭縣、花蓮縣、臺東縣、連江縣。
至於臺南巿、澎湖縣和金門縣還未宣布是否停班停課訊息。
關鍵字:
颱風
土石流
土石
天兔
上班上課