王鼎鈞
2013年8月31日 20:01
");
$(".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();
});
}
//-------------------
});
-
![](https://imageproxy.pixnet.cc/imgproxy?url=&width=320&height=240)
台鐵自強號出軌意外,國軍防訓中心31日派遣數十名官兵進駐救援,利用器具清除卡在車廂底部的土石,以徒手搬運、傳遞石塊。(圖/軍聞社提供)
記者王鼎鈞/台北報導
台灣本島籠罩在豪雨威脅之中,各地災情紛傳。總統馬英九、行政院長江宜樺31日晚間8點趕赴經濟部水利署防災中心視察。
中央氣象局資料顯示,嘉義、台南、高雄和屏東地區超大豪雨警報,北部和中部地區則處於大豪雨警報範圍,本島其他地區也有豪雨威脅。
在交通方面,台鐵南迴線上午發生列車撞土石流而中斷,下午北迴線也因土石流雙線不通,平溪線還發生石頭砸中列車。
蘇花公路雖無災情,但蘇澳至東澳段因風雨過大,晚間6時20分封閉,重新開放時間尚未確定。