dropdown feld mit hyperlinks in Expression Web
Hallo,
wie erstelle ich mit EW ein DropDown Feld mit 5 Hyperlinks.
gruss
Karl-Heinz
Re: dropdown feld mit hyperlinks in Expression Web
Karlheinz Schmid schrieb:
> wie erstelle ich mit EW ein DropDown Feld mit 5 Hyperlinks.
Mit dem Behavior "Jump-Menü". Nimm das hier als Vorlage:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled 1</title>
<script type="text/javascript">
<!--
function FP_jumpMenu(el,frm,sel) {//v1.0
var href=el.options[el.selectedIndex].value; if(sel) el.selectedIndex=0;
if('_new'==frm) open(href); else eval(frm+".location='"+href+"'");
}
// -->
</script>
</head>
<body>
<form method="post">
<select name="Select1" onchange="FP_jumpMenu(this,'window',false)">
<option selected="selected" value=""></option>
<option value="http://www.example.org/foo/">Foo</option>
<option value="http://www.example.org/bar/">Bar</option>
</select></form>
</body>
</html>
Re: dropdown feld mit hyperlinks in Expression Web
Hallo,
danke für die Info. Durch den Quellcode habe ich die Einbindung erst kapiert
super
--
gruss
Karl-Heinz
"Christoph Schneegans" wrote:
> Karlheinz Schmid schrieb:
>
> > wie erstelle ich mit EW ein DropDown Feld mit 5 Hyperlinks.
>
> Mit dem Behavior "Jump-Menü". Nimm das hier als Vorlage:
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml">
>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
> <title>Untitled 1</title>
> <script type="text/javascript">
> <!--
> function FP_jumpMenu(el,frm,sel) {//v1.0
> var href=el.options[el.selectedIndex].value; if(sel) el.selectedIndex=0;
> if('_new'==frm) open(href); else eval(frm+".location='"+href+"'");
> }
> // -->
> </script>
> </head>
>
> <body>
> <form method="post">
> <select name="Select1" onchange="FP_jumpMenu(this,'window',false)">
> <option selected="selected" value=""></option>
> <option value="http://www.example.org/foo/">Foo</option>
> <option value="http://www.example.org/bar/">Bar</option>
> </select></form>
> </body>
>
> </html>
>
>