Web Design Tutorial

Citeste si progreseaza

Crearea unui Jump Menu

Pasul 1: Introduceti in <head> urmatorul cod:

<script type=”text/JavaScript”>
<!–
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+”.location='”+selObj.options[selObj.selectedIndex].value+”‘”);
if (restore) selObj.selectedIndex=0;
}
//–>
</script>

Pasul 2: In <body> introduceti aceasta secventa de cod:

<form name=”form1″ id=”form1″>
Jump Menu
<select name=”Jump Menu” onchange=”MM_jumpMenu(‘parent’,this,0)”>
<option value=”pagina1.html”>Link1</option>
<option value=”pagina2.html”>Link2</option>
<option value=”pagina3.html”>Link3</option>
<option value=”pagina4.html”>Link4</option>
</select>
</form>

Aici v-am dat codul, dar voi reveni cu un post: Crearea unui Jump Menu in Dreamweaver, unde este mult mai usor.

March 3, 2008 - Posted by | HTML | , ,

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: