Author: nextgens
Date: 2007-12-16 20:44:03 +0000 (Sun, 16 Dec 2007)
New Revision: 16604

Modified:
   trunk/website/index.php
   trunk/website/pages/download.php
Log:
website: try some CSS/javascript

Modified: trunk/website/index.php
===================================================================
--- trunk/website/index.php     2007-12-16 17:31:09 UTC (rev 16603)
+++ trunk/website/index.php     2007-12-16 20:44:03 UTC (rev 16604)
@@ -15,7 +15,23 @@

        <meta name="description" content="The Free Network Project : A 
Distributed Anonymous Information Storage and Retrieval System" />
        <link href="/style.css" rel="stylesheet" type="text/css">
-
+       <script language="javascript">
+               function toggleLayer( whichLayer )
+               {
+                       var elem, vis;
+                       if( document.getElementById ) // this is the way the 
standards work
+                               elem = document.getElementById( whichLayer );
+                       else if( document.all ) // this is the way old msie 
versions work
+                               elem = document.all[whichLayer];
+                       else if( document.layers ) // this is the way nn4 works
+                               elem = document.layers[whichLayer];
+                       vis = elem.style;
+                       // if the style.display value is blank we try to figure 
it out here
+                       
if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
+                               vis.display = 
(elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
+                       vis.display = 
(vis.display==''||vis.display=='block')?'none':'block';
+               }
+       </script>
 </head>

 <body bgcolor="#FFFFFF" text="#000000" link="#000000" vlink="#000033" 
alink="#000000" leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>

Modified: trunk/website/pages/download.php
===================================================================
--- trunk/website/pages/download.php    2007-12-16 17:31:09 UTC (rev 16603)
+++ trunk/website/pages/download.php    2007-12-16 20:44:03 UTC (rev 16604)
@@ -23,16 +23,24 @@
 See <a 
href="http://wiki.freenetproject.org/FreenetZeroPointSevenSecurity";>here</a> 
 for a fuller analysis.</p>

+<a href="javascript:toggleLayer('windows');">Show windows instructions</a>
+<div class="hideit" name="windows">
 <h3>Windows</h3>
 <p>- Download and run <big><a 
href="http://downloads.freenetproject.org/alpha/installer/freenet-win32.exe";>freenet
 webinstall</a></big></p>
 <p> It will automatically install Freenet and other required components for 
you. When done, your default browser will automatically open up to Freenet's 
web-based user interface. </p>
 <p>(Freenet contains <u><b>NO spyware or adware</b></u> , it's Free Software! 
The source code is publicly available for review) </p>
 <p>Freenet works best with <b>Windows 2000 Professional, XP Professional or 
NT. </b> Windows 95, 98 and 2000 Millennium Edition don't work as well; in 
particular, the installer won't run on those operating systems.</p>
 <p>If the installer doesn't work (something seriously wrong) then please <a 
href="https://bugs.freenetproject.org";>let us know</a>, install Java, and try 
the Linux instructions below.</p>
+</div>

+<a href="javascript:toggleLayer('macos');">Show MacOSX instructions</a>
+<div class="hideit" name="macos">
 <h3>Mac OSX</h3>
 <p><a 
href="http://downloads.freenetproject.org/alpha/installer/mac/freenet.jnlp";>Install
 Freenet 0.7</a> using JavaWebStart.</p>
+</div>

+<a href="javascript:toggleLayer('unix');">Show Linux/Unix instructions</a>
+<div class="hideit" name="unix">
 <h3>Unix, and Linux</h3>
 <p>You need to have a recent Java Runtime Environment. We have experienced 
best results with Sun's Java Runtime Environment which can be obtained from <a 
href="http://www.java.com/";>http://www.java.com/</a>. </p>>
 <p>Java version 1.4.2 and later will work. Generally, we recommend using 
latest available version.</p>
@@ -52,6 +60,7 @@
 ./run.sh start
 </pre>
 </p>
+</div>

 <h3>Notes</h3>
 <p>Afer you start Freenet, wait a few seconds for it to start up (on a


Reply via email to