[英]sIFR and JS dynamic content
嗨,我做了一個使用sIFR的功能
function sifrz() {
var geosans = { src: 'sifr3-r436/flash/geosans.swf' };
sIFR.activate(geosans);
sIFR.replace(geosans, {
selector: '#title,#descr',
css: '.sIFR-root { background-color: #7d7e7e; color: #000000; }, a { color: #000000; }, a:hover { color: #000000; }'
});
}
然后我有了另一個函數來更改標題文本,我在使用sIFR.redraw();
更新文本后嘗試重新初始化sIFR sIFR.redraw();
和sifrz()
但無法正常工作
function load_title(url, titolo, descr, id_filmato) {
$("#title").html("Test");
sIFR.redraw();
sifrz();
}
你能幫我嗎?
我正在使用sIFR版本3,修訂版436。
謝謝
對sIFR不熟悉,但是如果在sIFR.redraw之前移動sifrz會發生什么?
將#title
和#descr
的替換#descr
分成兩部分。 然后運行sIFR.replacements["#title"][0].replaceText("Test")
來更改標題電影中的文本。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.