李鴻典
2013年10月8日 09:11
");
$(".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();
});
}
//-------------------
});
-

台北街頭一早就露出陽光!中央氣象局說,今天(8日)吹東北風,東半部並有較多的水氣移入,降雨以迎風面的北部及東北部為主,東部、東南部及中部平地也有零星短暫雨,提醒民眾出門還是攜帶雨具比較保險,以備不時之需;南台灣天氣還不錯,大致為多雲到晴,中南部山區有局部午後短暫陣雨。
記者李鴻典/台北報導
台北街頭一早就露出陽光!中央氣象局說,今天(8日)吹東北風,東半部並有較多的水氣移入,降雨以迎風面的北部及東北部為主,東部、東南部及中部平地也有零星短暫雨,提醒民眾出門還是攜帶雨具比較保險,以備不時之需;南台灣天氣還不錯,大致為多雲到晴,中南部山區有局部午後短暫陣雨。
氣溫上各地溫暖舒適,各地高溫約28到31度,低溫約24到25度。
至於中度颱風「丹娜絲」,今日將侵襲日本,因此前往日本的民眾要留意航班資訊,此颱風不會直接影響台灣,台灣沿海地區的風雖不強,但受到颱風「丹娜絲」的間接影響,馬祖、北部及東半部沿海,以及綠島、蘭嶼有長浪發生的機率,且呈現風小浪大的狀況,前往海邊活動請特別注意。
關鍵字:
今日天氣
東北風
吹拂
中颱
丹娜絲
日本