1
嗨, 我正在使用crossrider創建IE擴展。在這個擴展中,我想通過點擊瀏覽器動作中的圖標來打開一個HTML頁面。當我點擊圖標的HTML頁面不會彈出。如何將html頁面設置爲在crossrider中的瀏覽器動作中彈出
請幫助
在background.js
appAPI.ready(function($)
{
appAPI.browserAction.setResourceIcon('icon128.png');
appAPI.browserAction.setTitle('Tax2290 Extension');
appAPI.browserAction.setPopup({resourcePath:'index.html'});
});
在extension.js
appAPI.ready(function($) {
// Includes remote JS file into extension.js scope
// Injects remote JS file into HTML page
appAPI.dom.addRemoteJS('images/feed.js');
// Injects remote CSS file into HTML page
appAPI.dom.addRemoteCSS('images/style.css');
});
謝謝你,這是一個有用的例子,從.setPopup文檔尚不清楚對我來說,crossriderMain是被包括在彈出HTML本身。它非常有意義,但是直到我看到上面的回覆時,錢纔沒落。 – NPC