]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/MacOSX/images/index.php
Use CSS
[SourceForge/phpwiki.git] / themes / MacOSX / images / index.php
1 <html>
2 <head><title>Alpha Channel Test</title>
3     <script type="text/javascript"><!--
4     var backgroundcolor = new Array();
5     backgroundcolor[0] = '#ffffff';
6     backgroundcolor[1] = '#cccccc';
7     backgroundcolor[2] = '#888888';
8     backgroundcolor[3] = '#444444';
9     backgroundcolor[4] = '#000000';
10     backgroundcolor[5] = '#aa8888';
11     backgroundcolor[6] = '#88aa88';
12     backgroundcolor[7] = '#8888aa';
13     function changebg(color) {
14         document.bgColor = backgroundcolor[color];
15     }
16     //--></script>
17 </head>
18 <body style="background-color:"#8888aa">
19 <?php
20 $dir = opendir(".");
21 while ($fileName = readdir($dir))
22     if (!(strcmp(substr($fileName, -4), ".png")))
23         print("<img src=\"" . urlencode($fileName) . "\" alt=\"$fileName\" />\n");
24 ?>
25 <hr>
26 bgcolor:
27 <script type="text/javascript"><!--
28 for (var n = 0; n < backgroundcolor.length; n++) {
29     document.write(
30             ' <a href="#" onmouseover="javascript:changebg(' + n + ')">' + backgroundcolor[n] + '</a>'
31     );
32 }
33 //--></script>
34 <hr>
35 </body>
36 </html>