J'essaie d'implémenter la dernière version de sIFR. Mais je ne peux même pas obtenir le plus simple des tests. Ma page de test est au http://www.kellymitchelljewelry.com/testsifr.asp. Il devrait y avoir une ligne générée par sIFR qui indique "2ème ligne" entre la première et la troisième ligne. J'utilise les exemples fournis sur la page sIFR exactement.sIFR 3 - Je n'arrive pas à afficher quoi que ce soit
Mon html ressemble à ceci:
<html>
<head>
<title>Kelly Mitchell Fine Jewelry</title>
<link rel="stylesheet" href="sifr.css" type="text/css">
<script src="sifr.js" type="text/javascript"></script>
<script src="sifr-config.js" type="text/javascript"></script>
</head>
<body>
First Line<br><br>
<h1>Second Line</h1>
<br>Third Line<br><br>
</body>
</html>
Mon SIFR-config.js ressemble à ceci:
var cgoth = { src: 'cgoth.swf' };
sIFR.activate(cgoth);
sIFR.replace(cgoth, {
selector: 'h1'
});
Mon fichier sifr.css ressemble à ceci:
@media screen {
.sIFR-flash {
visibility: visible !important;
margin: 0;
padding: 0;
}
.sIFR-replaced, .sIFR-ignore {
visibility: visible !important;
}
.sIFR-alternate {
position: absolute;
left: 0;
top: 0;
width: 0;
height: 0;
display: block;
overflow: hidden;
}
.sIFR-replaced div.sIFR-fixfocus {
margin: 0pt;
padding: 0pt;
overflow: auto;
letter-spacing: 0px;
float: none;
}
}
@media print {
.sIFR-flash {
display : none !important;
height : 0;
width : 0;
position : absolute;
overflow : hidden;
}
.sIFR-alternate {
visibility : visible !important;
display : block !important;
position : static !important;
left : auto !important;
top : auto !important;
width : auto !important;
height : auto !important;
}
}
/*
Place CSS rules for to-be-replaced elements here. Prefix by .sIFR-active
so they only apply if sIFR is active. Make sure to limit the CSS to the screen
media type, in order not to have the printed text come out weird.
*/
@media screen {
.sIFR-active h1 {
font-family: Verdana;
visibility: hidden;
line-height: 1em;
}
*/
J'ai essayé de recréer mon fichier swf juste au cas où je ferais quelque chose de mal, et j'ai suivi de près les instructions pour m'assurer que je n'ai rien laissé en dehors. Est-ce que quelqu'un peut m'aider à comprendre ce que je fais de mal?
Tom