外交部肯定「敘利亞民主軍」在「全球反制伊斯蘭國聯盟」支持下成功收復ISIS失地 - 最新消息 - 中華民國外交部 - 全球資訊網 Ministry of Foreign Affairs, Republic of China (Taiwan)// <![CDATA[
function printScreen(printlist) {
var value = printlist.innerHTML;
var printPage = window.open("", "Printing...", "");
printPage.document.open();
printPage.document.write("");
printPage.document.write("
");");
printPage.document.write(value);
printPage.document.write("
printPage.document.close("");
}
// ]]>// // <![CDATA[
$(function () {
//只顯示content Div
var hdIsManager = document.getElementById("hdIsManager").value;
if (hdIsManager == "1") {
css = ""; ClassName = "";
$("div").each(function () {
ClassName = this.className;
if (this.className != "" && this.className != "wrapper" && this.className != "content" && this.className.indexOf("data") == -1 && this.className.indexOf("mv_view_box") == -1 && this.className.indexOf("mv_view") == -1 && this.className.indexOf("photo_view_box") == -1 && this.className.indexOf("photo_view_bottom") == -1 && this.className.indexOf("data_midlle_news_box01") == -1 && this.className.indexOf("data_midlle_news_box02") == -1 && this.className.indexOf("99roc") == -1 && this.className.indexOf("data_midlle_cp") == -1 && this.className.indexOf("common register") == -1 && this.className.indexOf("event_intro") == -1) { //99roc國情介紹news用的
css += this.className + " , ";
this.style.display = "none";
}
if (this.className == "content_bottom")
this.style.display = "none";
});
trcss = "";
$("#data_table td").each(function () {
if (this.className != "" && this.className.indexOf("data") == -1) {
trcss += this.className + " , ";
this.style.display = "none";
}
trcss += this.className + " , ";
});
}
});
$(document).ready(function () {
var hdSiteLanguageSN = document.getElementById("hdSiteLanguageSN").value;
var strHost = window.location.hostname.toString();
//自動將網頁中地址連到GoogleMap
$("map").each(function (i) { if (this.innerText != "") $(this).append(""); });
//附加連結圖示
$("#sys-root a").each(function () {
//取副檔名
extIndex = this.href.lastIndexOf('.');
var fileName = this.href;
fileName = fileName.substr(extIndex + 1, fileName.length);
var url = window.location.toString();
var IsPic = this.innerHTML.toLowerCase().indexOf("<img ");
if (IsPic == -1) {
//相關連結模組
if (this.href.toLowerCase().indexOf("hitcount") != -1) {
switch (fileName) {
case "doc":
$(this).append("");
break;
case "docx":
$(this).append("");
break;
case "xls":
$(this).append("");
break;
case "xlsx":
$(this).append("");
break;
case "ppt":
$(this).append("");
break;
case "pptx":
$(this).append("");
break;
case "pdf":
$(this).append("");
break;
case "txt":
$(this).append("");
break;
case "odt":
$(this).append("");
break;
case "ods":
$(this).append("");
break;
default:
if (this.href.toLowerCase().indexOf("o=1") != -1) {
//alert("out link");
if (hdSiteLanguageSN == "1") {
$(this).append("");
}
else {
$(this).append("");
}
}
break;
}
}
//先判斷本身有沒有帶預設圖再判斷不是自己網域內且是http:開頭
if (this.href.indexOf("" + strHost + "") == -1 && this.href.indexOf("http:") != -1 && this.href.indexOf("https:") != -1 && this.href.indexOf("https:") != -1 && location.href.toLowerCase().indexOf("Video.aspx") == -1 && location.href.toLowerCase().indexOf("video.aspx") == -1 && location.href.toLowerCase().indexOf("video_content.aspx") == -1 && location.href.toLowerCase().indexOf("Video_Content.aspx") == -1) {
switch (fileName) {
case "doc":
$(this).append("");
break;
case "docx":
$(this).append("");
break;
case "xls":
$(this).append("");
break;
case "xlsx":
$(this).append("");
break;
case "ppt":
$(this).append("");
break;
case "pptx":
$(this).append("");
break;
case "pdf":
$(this).append("");
break;
case "txt":
$(this).append("");
break;
case "odt":
$(this).append("");
break;
case "ods":
$(this).append("");
break;
default:
if (hdSiteLanguageSN == "1") {
$(this).append("");
}
else {
$(this).append("");
}
break;
}
}
else {
switch (fileName) {
case "doc":
$(this).append("");
break;
case "docx":
$(this).append("");
break;
case "xls":
$(this).append("");
break;
case "xlsx":
$(this).append("");
break;
case "ppt":
$(this).append("");
break;
case "pptx":
$(this).append("");
break;
case "pdf":
$(this).append("");
break;
case "txt":
$(this).append("");
break;
case "odt":
$(this).append("");
break;
case "ods":
$(this).append("");
break;
case "htm":
if (this.href.toString().indexOf("eBook") != -1) {
$(this).append("");
}
break;
default:
//$(this).append("");
break;
}
}
}
});
});
// ]]>