Hi,
I'm quite new to creating websites, having learnt only xhtml and css.
I'm currently building an online design portfolio in my spare time. I'm using a standard html drop-down box to navigate between the pages. I've successfully managed to code the drop-down box using the <select> tag and some JavaScript. Unfortunately, I cannot get it to display the name of the selected page when clicked. For example, If I am on the homepage and click the 'about me' link in the drop-down box, when the 'about me' page loads, the home page drop-down link is shown, not the 'about me' link. I assume this is due to Home page being the first <option> object in the list.
Is there any way to show the current page title in the drop down box rather than the first <option> object?
Also, how would I go about adding a scroll bar so that when the drop-down box is clicked, a scrollable window would appear allowing me to look at various options? I can produce a drop-down box of all options, but without the vertical scroll.
Thanks
I'm quite new to creating websites, having learnt only xhtml and css.
I'm currently building an online design portfolio in my spare time. I'm using a standard html drop-down box to navigate between the pages. I've successfully managed to code the drop-down box using the <select> tag and some JavaScript. Unfortunately, I cannot get it to display the name of the selected page when clicked. For example, If I am on the homepage and click the 'about me' link in the drop-down box, when the 'about me' page loads, the home page drop-down link is shown, not the 'about me' link. I assume this is due to Home page being the first <option> object in the list.
Is there any way to show the current page title in the drop down box rather than the first <option> object?
Also, how would I go about adding a scroll bar so that when the drop-down box is clicked, a scrollable window would appear allowing me to look at various options? I can produce a drop-down box of all options, but without the vertical scroll.
Thanks