PHPBuilder - Quickbar

RSS Twitter
Snippets Html


by: Erik Seifert
September 6, 2000

Version: 0.5

Type: Full Script

Category: HTML

License: GNU General Public License

Description: This is a combination Javascript/PHP You can jump to a Destination in a "main" Frame.

function go()	
	var loc=document.Referenz.shortcuts.options[document.Referenz.shortcuts.selectedIndex].value;	
	if (loc == "")	{}	else	{	parent.main.location=loc;	}	



$locations=array("Home" => "main.html",
				 "---------------" => "",
				 "G&auml;stebuch" => "./guestbook/index.html",
				 "Counter" => "./guestbook/counter/counter.php",
				 "Sitemap" => "./sitemap/sitemap.php");

echo "<form name=\"Referenz\">";		
echo "<select name=\"shortcuts\" onchange=\"javascript:go();\">";
while (list($key,$val)=each($locations))
	echo "<option value=$val>$key</option>";
echo "</select>";
echo "</form>";

Comment and Contribute

Your comment has been submitted and is pending approval.

Erik Seifert



(Maximum characters: 1200). You have characters left.