简体   繁体   中英

sIFR and JS dynamic content

Hi I made a function to use 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; }'
 });
}

then I've got another function to change my title text I tried to reinit sIFR after updating text using sIFR.redraw(); and sifrz() but it won't work

function load_title(url, titolo, descr, id_filmato) {
 $("#title").html("Test");
 sIFR.redraw();
    sifrz();
}

Can you help?

I'm using sIFR version 3, revision 436.

Thanks

对sIFR不熟悉,但是如果在sIFR.redraw之前移动sifrz会发生什么?

Split the replacements for #title and #descr into two. Then run sIFR.replacements["#title"][0].replaceText("Test") to change the text in the title movie.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM