Jump to content

Dropdownbox properties


Fire Dragon
 Share

Recommended Posts

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

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

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

this isn't practical isn't there a way to make the bar appear without having so much items?

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...