SIFR onReplacement example
Can anyone show me the correct way to call the onReplacement callback in sIFR.replace?
Here's my current sIFR.replace method calling:
sIFR.replace(mainNavFont, {
selector: 'a.nav-item',
css: '.sIFR-root { color: #ffffff; cursor:pointer;}',
wmode:'transparent',
fitExactly: true,
tuneWidth:10,
offsetLeft: 5,
forceSingleLine: true
});
0
a source to share
1 answer
Like this:
sIFR.replace(mainNavFont, {
selector: 'a.nav-item',
css: '.sIFR-root { color: #ffffff; cursor:pointer;}',
wmode:'transparent',
fitExactly: true,
tuneWidth:10,
offsetLeft: 5,
forceSingleLine: true,
onReplacement: function(fi) {
// Movie has been replaced
}
});
Also, you will find that replacing <a>
directly will break links in most browsers. You must replace the parent so that the link will appear in the Flash movie.
+1
a source to share