![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Sep 2004
Posts: 18
Rep Power: 0
![]() |
Hiya,
I'd like to create a text box (with download links, descriptions in it etc etc) with a scroll bar down the right hand side so that the box does'nt go pages down the screen. If you take a look at the quick image below it should explain more. Any ideas? |
|
|
|
|
|
#2 |
|
Programming Guru
![]() |
specify the size of the text box should do it,
either use <textarea height="height" cols="width">text</textarea> or a frame but i would advise the above.
__________________
"Put your hand on a hot stove for a minute, and it seems like an hour. Sit with a pretty girl for an hour, and it seems like a minute. THAT'S relativity." - Albert Einstein |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Sep 2004
Posts: 18
Rep Power: 0
![]() |
Hmmm, thanks but i don't want the user to be able to enter any text at all.
I want to enter a long list of downloads etc etc in the box. Sorry if it's not making much sense! |
|
|
|
|
|
#4 |
|
Programming Guru
![]() |
if you want the whole page to scroll it does it automatically if you just want an uneditable section to scroll then go look up frames and IFrames, they are the things i think you are after.
__________________
"Put your hand on a hot stove for a minute, and it seems like an hour. Sit with a pretty girl for an hour, and it seems like a minute. THAT'S relativity." - Albert Einstein |
|
|
|
|
|
#5 |
|
Programming Guru
![]() ![]() |
Naw, i think this is what he wants.
why not use a list box, if you don't want the user to be able to enter anything. Here some code: <html>
<head>
<title>Your title here:</title>
</head>
<body>
<select name="theList" size="6">
<option>Test1
<option>Test2
<option>Test3
<option>Test4
<option>Test5
<option>Test6
</select>
</body>
</html>the size atribute in the select tag controls how many lines are showen, so in this case, everything will show in a square box in your page. Hope this is what you're looking for.
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! |
|
|
|
|
|
#6 |
|
Newbie
Join Date: Sep 2004
Posts: 18
Rep Power: 0
![]() |
Jackpot!
That's it! - Thanks man, sorry for any confusion! ![]() |
|
|
|
|
|
#7 |
|
Programming Guru
![]() ![]() |
no worries dude, we're here to help. I don't think that there is many people that use the size attribute for select box ether, thus not many people know about it. Glad to help!
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! |
|
|
|
|
|
#8 |
|
Professional Programmer
Join Date: Jun 2004
Location: South Africa, Johannesburg
Posts: 301
Rep Power: 5
![]() |
What about: readonly="true" :blink:
<textarea height="height" cols="width" readonly="true">STFU!!!</textarea>
__________________
[SIGPIC][/SIGPIC] |
|
|
|
|
|
#9 |
|
Programming Guru
![]() ![]() |
See, that's a tag i didn't even know about. I guess you learn somthing new everyday.
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! |
|
|
|
|
|
#10 |
|
Programming Guru
![]() |
it depends on how much text has to be displayed :/ and if you weant it all at once or to choose each section.
__________________
"Put your hand on a hot stove for a minute, and it seems like an hour. Sit with a pretty girl for an hour, and it seems like a minute. THAT'S relativity." - Albert Einstein |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|