Fire Dragon Posted March 2, 2006 Share Posted March 2, 2006 I foud some time ago dropdown engine,and I used it.However I now have problem and I don't have experience with dropdown boxes.Problem is that my list is grow long,but box don't add scrollbar to it's right side.How I can set it so?Here is my code.I tried different things but nothing happened. <html><head></head><body><form><select onChange="location=this.options[this.selectedIndex].value;" style="font-family:'Arial';color:#000000;background-color:#FFCC66;font-size:10pt;"><option value="page1.html">Page1</option><option value="page2.html">Page2</option><option value="page3.html">Page3</option><option value="page4.html">Page4</option><option value="page5.html">Page5</option><option value="page6.html">Page6</option><option value="page7.html">Page7</option><option </select></form></body></html> Sadly...I don't remember where engine is,but I can try find it if needed.Thank you for help. Link to comment Share on other sites More sharing options...
scott100 Posted March 2, 2006 Share Posted March 2, 2006 I think its the operating sytem that sets it, your list wasn't long enough for a scrollbar to appear, if you put on more choices then it appears. <html><head></head><body><form><select onChange="location=this.options[this.selectedIndex].value;" style="font-family:'Arial';color:#000000;background-color:#FFCC66;font-size:10pt;"><option value="page1.html">Page1</option><option value="page2.html">Page2</option><option value="page3.html">Page3</option><option value="page4.html">Page4</option><option value="page5.html">Page5</option><option value="page6.html">Page6</option><option value="page7.html">Page7</option><option value="page1.html">Page1</option><option value="page2.html">Page2</option><option value="page3.html">Page3</option><option value="page4.html">Page4</option><option value="page5.html">Page5</option><option value="page6.html">Page6</option><option value="page7.html">Page7</option><option value="page1.html">Page1</option><option value="page2.html">Page2</option><option value="page3.html">Page3</option><option value="page4.html">Page4</option><option value="page5.html">Page5</option><option value="page6.html">Page6</option><option value="page7.html">Page7</option><option value="page1.html">Page1</option><option value="page2.html">Page2</option><option value="page3.html">Page3</option><option value="page4.html">Page4</option><option value="page5.html">Page5</option><option value="page6.html">Page6</option><option value="page7.html">Page7</option><option value="page1.html">Page1</option><option value="page2.html">Page2</option><option value="page3.html">Page3</option><option value="page4.html">Page4</option><option value="page5.html">Page5</option><option value="page6.html">Page6</option><option value="page7.html">Page7</option><option value="page1.html">Page1</option><option value="page2.html">Page2</option><option value="page3.html">Page3</option><option value="page4.html">Page4</option><option value="page5.html">Page5</option><option value="page6.html">Page6</option><option value="page7.html">Page7</option><option value="page1.html">Page1</option><option value="page2.html">Page2</option><option value="page3.html">Page3</option><option value="page4.html">Page4</option><option value="page5.html">Page5</option><option value="page6.html">Page6</option><option value="page7.html">Page7</option></select></form></body></html> Link to comment Share on other sites More sharing options...
thibo1025 Posted March 2, 2006 Share Posted March 2, 2006 this isn't practical isn't there a way to make the bar appear without having so much items? Link to comment Share on other sites More sharing options...
vchris Posted March 2, 2006 Share Posted March 2, 2006 You need to add the "size" attribute to your select element. See the example below: <html><head></head><body><form><select onChange="location=this.options[this.selectedIndex].value;" style="font-family:'Arial';color:#000000;background-color:#FFCC66;font-size:10pt;" size="5"><option value="page1.html">Page1</option><option value="page2.html">Page2</option><option value="page3.html">Page3</option><option value="page4.html">Page4</option><option value="page5.html">Page5</option><option value="page6.html">Page6</option><option value="page7.html">Page7</option></select></form></body></html> Link to comment Share on other sites More sharing options...
Fire Dragon Posted March 2, 2006 Author Share Posted March 2, 2006 Thanks.Lookes like my lsit don't have enought options. About that last what uses size attribute.I knew it before but it isn't really dropdown anymore,is it? Link to comment Share on other sites More sharing options...
vchris Posted March 2, 2006 Share Posted March 2, 2006 not really... it's more of a scroll down now. Link to comment Share on other sites More sharing options...
scott100 Posted March 2, 2006 Share Posted March 2, 2006 this isn't practical isn't there a way to make the bar appear without having so much items?<{POST_SNAPBACK}> eh? why would you want the bar to appear if you only had a few items, there would be no need to "scroll" then, the whole point is for it to appear when you have many items, to save them continuing right off the page. As i said before i think it's the operating system that handles what the limit is when a scrollbar appears. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now