Version: 1.0
Type: Full Script
Category: File Management
License: GNU General Public License
Description: A DroPDowNMenU with a javascript that sends You to the page or folder you want. This Is The Nicest Thing You've Ever Seen !!!
<html>
<head>
<? $path = "./" ; // Path to th folder. ?>
<style>
<!--
body {
background-color: #000000;
font-family: Verdana;}
a {
color: #DDDDDD;
text-decoration: none;}
.thtitle{
background-color: #000000;
padding: 5;
color: #DDDDDD;
border-color: #000000;
font-size: 20;
text-decoration: underline overline;}
.thbott {
background-color: #000000;
padding: 5;
border-color: #000000;
color: #DDDDDD;
font-size: 11;
font-family: Arial;
font-weight: bold;}
.tdmenu {
background-color: #AAAAAA;
color: #000000;
padding: 5;
border-style: groove;
border-width: 5;
font-weight: bold;
font-size: 14;
width: 150;}
.tddrop {
background-color: #DDDDDD;
color: #000000;
font-size: 12;
padding: 5;
border-style: solid;
border-width:1;
border-color: #AAAAAA;}
.drop {
background-color: #DDDDDD;
color: #000000;
padding: 5;
font-size: 12;
font-weight: bold;}
-->
</style>
<script language="JavaScript">
<!--
function leapto(form)
{
var goto=form.dest.selectedIndex
parent.top.location.href=(form.dest.options[goto].value);
}
//
</script>
</head>
<body>
<table border="0" width="100%" height="100%"><tr><td>
<div align="center">
<table cellspacing=0 border=0>
<tr>
<th class="thtitle" colspan="3">
DroPMenU
</th>
</tr>
<tr align="center">
<td class="tdmenu">
| .php-files |
</td>
<td class="tdmenu">
| .html-files |
</td>
<td class="tdmenu">
| Folders |
</td>
</tr>
<tr align="center">
<td class="tddrop">
<form>
<select name="dest" SIZE=1 onChange="leapto(this.form)" class="drop">
<option value=""></option>
<?
$handle = opendir('.') ;
while (($php = readdir($handle))!==false)
{
$ext4 = substr ($php, -3) ;
$ext3 = substr ($php, -4) ;
if (($ext4 == "php") || ($ext3 == "php3"))
{
echo " <option value=\"$path$php\">$php</option>\n" ;
}
}
closedir($handle) ;
?>
</select>
</form>
</td>
<td class="tddrop">
<form>
<select name="dest" SIZE=1 onChange="leapto(this.form)" class="drop">
<option value=""></option>
<?
$handle = opendir('.') ;
while (($htm = readdir($handle))!==false)
{
$ext_htm = substr ($htm, -3) ;
$ext_html = substr ($htm, -4) ;
if (($ext_htm == "htm") || ($ext_html == "html"))
{
echo " <option value=\"$path$htm\">$htm</option>\n" ;
}
}
closedir($handle) ;
?>
</select>
</form>
</td>
<td class="tddrop">
<form>
<select name="dest" SIZE=1 onChange="leapto(this.form)" class="drop">
<option value=""></option>
<?
$handle = opendir('.') ;
while (($mapp = readdir($handle))!==false)
{
if (!$mapp == strstr($mapp, '.'))
{
echo " <option value=\"$path$mapp\">$mapp</option>\n" ;
}
}
closedir($handle) ;
?>
</select>
</form>
</td>
</tr>
<tr>
<th colspan="3" class="thbott">
--==/// <a href="mailto:lavve@telia.com" title="Drop me a line... :)">
© Copyright 2001 by Lavve</a> \\\==--
</th>
</tr>
</table>
</td></tr></table>
</center>
</body>
</html>