/    Sign up×
Community /Pin to ProfileBookmark

How to makefirst item in the menu clickable

I want to first item in the menu clickable (go to the page I specified) how to do this?

[url]http://6g6.eu/sih0-111snap000708.jpg[/url]

Head section:

[CODE]<script language=”javascript” type=”text/javascript”>
<!–
function menu_goto( menuform )
{
var baseurl = “http://www.aymavisi.org/” ;
selecteditem = menuform.newurl.selectedIndex ;
newurl = menuform.newurl.options[ selecteditem ].value ;
if (newurl.length != 0) {
location.href = baseurl + newurl ;
}
}
//–>
</script>[/CODE]

Body part:

[CODE]<select name=”newurl” onchange=”menu_goto(this.form)” style=” color: #FFFFFF; text-decoration: none; font-family: Tahoma; font-weight: bold; text-align: center; background-color: #444577;padding: 2px; font-size:9pt; width:130″ size=”1″ id=”menu”>
<option value=””></option>
<option value=”index.html”>Ana Sayfa</option>
<option value=”8 Felsefe.htm”>Felsefe</option>
<option value=”9 Siir.htm”>&#350;iir</option>
<option value=”2 Makale.htm”>Makale</option>
<option value=”4 Hikaye.htm”>Hikaye</option>
<option value=”3 Psikoloji.htm”>Psikoloji</option>
<option value=”5 Guncel.htm”>Güncel</option>
<option value=”6 Kitap.htm”>Kitap</option>
<option value=”7 Muzik.htm”>Müzik</option>
<option value=”999 Benden.htm”>Benden</option>
<option value=”99 Egzersiz.htm”>Egzersiz</option>
<option value=”hata raporu.html”>Hatalar&#305; bildirin</option>
<option value=”1 yeniler.html”>Yeni eklenenler</option>
<option value=”../ziyareci defteri/index.php?&amp;mots_search=&amp;lang=english&amp;skin”>
Ziyaretçi defteri</option>
</select>[/CODE]

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@PadonakMay 29.2013 — insert an empty option before the first one

<i>
</i>&lt;option&gt;&lt;/option&gt;
&lt;option value="index.html"&gt;Ana Sayfa&lt;/option&gt;
×

Success!

Help @seamoon spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...