-1
尊敬的Stackoverflow用戶,如何將此HTML文件包含在我的Manifest.JSON中
我有一個HTML文件,我想要包含在我的manifest.Json文件中。我在哪裏做這個?這是我的清單文件:
{
"manifest_version": 2,
"name": ".......",
"description": ".......",
"version": "1.1",
"background": {
"scripts": [
"blockpics.js"]
"page": "nyes.html"
},
"browser_action": {
"default_icon": {
"19": "images/icon19-disabled.png"
},
"default_title": "PAD_SEF05"
},
"permissions": [
"tabs",
"http://*/*",
"https://*/*",
"webRequest",
"webRequestBlocking",
"<all_urls>"
]
}
,這是我nyes.html:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>Ajax Test
</title>
<script type="text/javascript">
<!--
function showImage(){
document.getElementById('loadingImage').style.visibility='visible';
}
-->
</script>
</head>
<body>
<input type="button" value="Ajax Button" onclick="showImage();"/>
<img id="loadingImage" src="ajax-loader.gif" style="visibility:hidden"/>
</body>
那麼,如何做到這一點?提前致謝!
您不必申報清單中的所有內容。你打算如何使用這個頁面?它確實沒有意義作爲背景頁面。 – Xan
>你打算如何使用這個頁面? –