Linda
2013年9月8日 08:29
");
$(".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)日仍是個晴朗高溫的天氣,溫度為32到33度左右,但中午前後紫外線有達到危險級的可能性,而中南部、東部地區有短暫陣雨,氣象局提醒,山區民眾要注意瞬間較大雨勢,提防落石坍方。
氣象局表示,因為強盛的太平洋高壓,今日各地及離島大多是晴朗穩定的天氣,白天各地高溫多為32到33度,只有午間感覺比較熱,而因為天氣晴朗,中午前後紫外線容易達過量或危險級;夜晚則是舒適宜人的溫度,大約在23到26度之間。
這個週休天氣非常晴朗,相當適合安排外出活動,但氣象局提醒,中午前後紫外線容易達過量或危險級,外出還是要記得注意做好防曬。
而各地降雨部分,氣象局指出,東部地區偶爾會有短暫陣雨,但下雨的狀況很零星;午後也只有在南部地區和中部山區仍可能有局部短暫雷陣雨,但山區民眾要留意瞬間較大雨勢,並要提防坍方及落石。
關鍵字:
晴朗
高溫
天氣
紫外線
短暫雨
留言列表