[Bio] / FortyEight / FortyEight.tmpl Repository:
ViewVC logotype

Diff of /FortyEight/FortyEight.tmpl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1, Tue Jan 16 20:36:03 2007 UTC revision 1.2, Tue Jan 30 19:33:33 2007 UTC
# Line 8  Line 8 
8      </TMPL_IF>      </TMPL_IF>
9      <TMPL_IF NAME="JAVASCRIPT">      <TMPL_IF NAME="JAVASCRIPT">
10        <script type="text/javascript" src="<TMPL_VAR NAME="JAVASCRIPT">"></script>        <script type="text/javascript" src="<TMPL_VAR NAME="JAVASCRIPT">"></script>
11          <script src="./Html/ie7-standard-p.js" type="text/javascript"></script>
12          <script type="text/javascript">
13                // a regular expression to test for Base64 data
14                var BASE64_DATA = /^data:.*;base64/i;
15                // path to the PHP module that will decode the encoded data
16                var base64Path = "./Html/ie7-base64.php";
17                function fixBase64(img) {
18                      // check the image source
19                      if (BASE64_DATA.test(img.src)) {
20                            // pass the data to the PHP routine
21                            img.src = base64Path + "?" + img.src.slice(5);
22                      }
23                };
24                // fix images on page load
25                onload = function() {
26                    if (navigator.appName == "Microsoft Internet Explorer") {
27                         for (var i = 0; i < document.images.length; i++) {
28                             fixBase64(document.images[i]);
29                         }
30                    }
31                };
32          </script>
33      </TMPL_IF>      </TMPL_IF>
34    
35    </head>    </head>

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3