sIFR 多次调用不起作用:(
我正在尝试在我的菜单和标题上使用 sIFR...但只有一个调用有效...我放在后面的其他调用从未出现:(...
有人可以帮助我吗?
注意:我正在使用r436 及以下是我的代码...
var segoe = {
src: 'pathto/segoe.swf',
ratios: [7, 1.58, 8, 1.49, 10, 1.5, 11, 1.45, 16, 1.46, 21, 1.44, 22, 1.41, 27, 1.42, 30, 1.41, 32, 1.4, 35, 1.41, 36, 1.4, 38, 1.39, 41, 1.4, 58, 1.39, 65, 1.38, 66, 1.39, 102, 1.38, 104, 1.37, 106, 1.38, 107, 1.37, 108, 1.38, 109, 1.37, 110, 1.38, 112, 1.37, 114, 1.38, 120, 1.37, 121, 1.38, 1.37]
};
sIFR.activate(segoe);
sIFR.replace(segoe, {
selector: '#header ul li a span.title',
css: ['.sIFR-root { text-align: center; font-size:13px; letter-spacing:2; font-weight: bold; text-transform:uppercase; cursor: pointer; color:#FFFFFF; background-color:#0C2C39; margin:0 3px; }'],
wmode: 'transparent'
});
sIFR.replace(segoe, {
selector: 'h1',
css: ['.sIFR-root { text-align: center; font-size:13px; letter-spacing:2; font-weight: bold; text-transform:uppercase; cursor: pointer; color:#000; background-color:#fff; margin:0 3px; }']
});
I'm trying to use sIFR on my menu and on my headers... but only one call works... the others that I put after never appear :(...
Can somebody help me ?
Note : I'm using the r436 and below is my code ...
var segoe = {
src: 'pathto/segoe.swf',
ratios: [7, 1.58, 8, 1.49, 10, 1.5, 11, 1.45, 16, 1.46, 21, 1.44, 22, 1.41, 27, 1.42, 30, 1.41, 32, 1.4, 35, 1.41, 36, 1.4, 38, 1.39, 41, 1.4, 58, 1.39, 65, 1.38, 66, 1.39, 102, 1.38, 104, 1.37, 106, 1.38, 107, 1.37, 108, 1.38, 109, 1.37, 110, 1.38, 112, 1.37, 114, 1.38, 120, 1.37, 121, 1.38, 1.37]
};
sIFR.activate(segoe);
sIFR.replace(segoe, {
selector: '#header ul li a span.title',
css: ['.sIFR-root { text-align: center; font-size:13px; letter-spacing:2; font-weight: bold; text-transform:uppercase; cursor: pointer; color:#FFFFFF; background-color:#0C2C39; margin:0 3px; }'],
wmode: 'transparent'
});
sIFR.replace(segoe, {
selector: 'h1',
css: ['.sIFR-root { text-align: center; font-size:13px; letter-spacing:2; font-weight: bold; text-transform:uppercase; cursor: pointer; color:#000; background-color:#fff; margin:0 3px; }']
});
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我现在感觉很愚蠢...
我没有正确调用“sifr-config.js”文件...
-_-”
抱歉!
Okay I feel stupid now...
I wasn't properly calling the "sifr-config.js" file...
-_-"
Sorry !