Ik ben SIFR aan het uitproberen. Maar er verschijnt niks op mijn website. Het standaart lettertype blijft staan. Ik heb screen en print toegevoegd aan mijn standaart template:
Ik heb gelinkt naar de sifr.js:
In de sifr.js heb ik de volgende aanpassing gedaan:
sifr/Helvetica.swf is een flash 6 bestand.
Ik heb het gevoel dat er in mijn template iets niet klopt:
Misschien staat er een map niet goed.
test.htm (index)
index > css > stylesheet.css
index > sifr > sifr.js
index > sifr > Helvetica.swf
http://www.glimlachtwente.nl/test/test.htm
Gebruik voortaan ook talen in je codeblokken
code:
1
| <link rel="stylesheet" href="css/stylesheet.css" type="text/css" media="screen" /> |
Ik heb gelinkt naar de sifr.js:
HTML:
1
| <script src="sifr/sifr.js" type="text/javascript"></script> |
In de sifr.js heb ik de volgende aanpassing gedaan:
JavaScript:
1
2
3
4
5
6
7
8
9
| if(typeof sIFR == "function"){ var helvetica = named({sFlashSrc : "sifr/Helvetiva.swf", sColor : "#000", sCase : "upper"}); sIFR.replaceElement("h1.h1", template); sIFR.replaceElement("h2.h2", template); sIFR.bAutoInit = true; sIFR.bIsDisabled = false; sIFR.bHideBrowserText = false; sIFR.bFixFragIdBug = false; }; |
sifr/Helvetica.swf is een flash 6 bestand.
Ik heb het gevoel dat er in mijn template iets niet klopt:
Cascading Stylesheet:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
| /* This is the print stylesheet to hide the Flash headlines from the browser... regular browser text headlines will now print as normal */ .sIFR-flash, .sIFR-flash object, .sIFR-flash embed { display: none !important; height: 0; width: 0; position: absolute; overflow: hidden; } span.sIFR-alternate { visibility: visible !important; display: block !important; position: static !important; left: auto !important; top: auto !important; } /* These are standard sIFR styles... do not modify */ .sIFR-flash { visibility: visible !important; margin: 0; } .sIFR-replaced { visibility: visible !important; } span.sIFR-alternate { position: absolute; left: 0; top: 0; width: 0; height: 0; display: block; overflow: hidden; } /* Hide Adblock Object tab: the text should show up just fine, not poorly with a tab laid over it. */ .sIFR-flash + div[adblocktab=true] { display: none !important; } /* These "decoy" styles are used to hide the browser text before it is replaced... the negative-letter spacing in this case is used to make the browser text metrics match up with the sIFR text metrics since the sIFR text in this example is so much narrower... your own settings may vary... any weird sizing issues you may run into are usually fixed by tweaking these decoy styles */ .sIFR-hasFlash h1 { visibility: hidden; } .sIFR-hasFlash h2 { visibility: hidden; letter-spacing: -9px; font-size: 55px; } .sIFR-hasFlash h3 { visibility: hidden; letter-spacing: -6px; font-size: 25px; } .sIFR-hasFlash h4 { visibility: hidden; letter-spacing: -5px; font-size: 21px; } .sIFR-hasFlash h5#pullquote { letter-spacing: -4px; visibility: hidden; font-size: 24px; } h1 h2 h3 h4 h5 h6 h7 {font-family:Arial, Helvetica, sans-serif} .h1 { font-family: Arial, Helvetica, sans-serif; font-size: 24px; font-weight: bold; color: #FFFFFF; line-height:17px; } .h2 { font-family: Arial, Helvetica, sans-serif; font-size: 13px; font-weight: bold; color: #FFFFFF; line-height:17px; } .h3 { font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: bold; color: #FFE00F; line-height:17px; } .h4 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: normal; color: #FFFFFF; line-height:17px; } .h5 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: normal; color: #000000; line-height:17px; } .h6 { line-height:17px; } .NAV { font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: normal; color: #FFFFFF; } |
Misschien staat er een map niet goed.
test.htm (index)
index > css > stylesheet.css
index > sifr > sifr.js
index > sifr > Helvetica.swf
http://www.glimlachtwente.nl/test/test.htm
Gebruik voortaan ook talen in je codeblokken