468,238 Members | 1,779 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,238 developers. It's quick & easy.

how do i put a code in a scrollbox?

1
im currently doing my myspace ...

ive seen bands put codes in scroll boxes

ive tried this but it just showed the code

how can i make it show the code not the image???
Apr 4 '07 #1
13 21846
im currently doing my myspace ...

ive seen bands put codes in scroll boxes

ive tried this but it just showed the code

how can i make it show the code not the image???
can you be a little more clear with your question and maybe show us an example of what you want.

however i suggest you maybe need to look at the 'iframe'

cheer,
philleep
Apr 4 '07 #2
AricC
1,892 Expert 1GB
im currently doing my myspace ...

ive seen bands put codes in scroll boxes

ive tried this but it just showed the code

how can i make it show the code not the image???
Put the code (I assume it's for a link to your site) in a text area and make the text area read only.
Apr 4 '07 #3
KevinADC
4,059 Expert 2GB
or it's a javascript affect, where the text is literally scrolling acorss the screen, very obnoxious, sounds like something myspace users would think is cool.
Apr 4 '07 #4
AricC
1,892 Expert 1GB
or it's a javascript affect, where the text is literally scrolling acorss the screen, very obnoxious, sounds like something myspace users would think is cool.
Anything scrolling is terrible for web pages unless it falls in one of these categories; news, sports scores, stock quotes, and maybe a few other things, but deffinetly only things that would update dynamically.
Apr 4 '07 #5
drhowarddrfine
7,435 Expert 4TB
sounds like something myspace users would think is cool.
That made me laugh.
Apr 4 '07 #6
AricC
1,892 Expert 1GB
That made me laugh.
Yeah I did as well. Myspace is terrible.
Apr 4 '07 #7
KevinADC
4,059 Expert 2GB
My youngest son, 17, is a myspace user, and the only thing I like about it is the fact that it has interested him in html coding a little bit. But of course it's all just to add some cool thing-a-ma-jigger to his myspace page. And since teenagers have no taste and less class, it winds up looking like a bad trip on LSD or some other nightmare.

End of mini-rant ;)
Apr 4 '07 #8
AricC
1,892 Expert 1GB
it winds up looking like a bad trip on LSD or some other nightmare.
I've seen some pages that make me want to puke, lights flashing all over, blinking text, marquees all over. The worst is that some of the novice users don't realize that if they violate the TOS with MySpace they get no warning their accounts are deleted on the spot. I also hate that if you sign up you have to be friends with "Tom".
Apr 4 '07 #9
Put the code (I assume it's for a link to your site) in a text area and make the text area read only.
How do you make the area read only?
I'm trying to do the same as chippy.
I want to display a scroll box with a code to an icon that links to my art gallery.
I keep getting <[iframe]><blah blah> the visual to the code i placed (not the code itself)</[iframe]>.
How can I avoid that and just the code to show up in a scroll box and not the image?

(if you'd like screen shots, let me know I'll gladly take some)

Thanks for your help.

---Cineris
Apr 9 '07 #10
if you are using css then you can define

overflow:auto;
height:200px;

so when text increase height of 200px it auto show scroll bar
Apr 11 '07 #11
jhardman
3,405 Expert 2GB
How do you make the area read only?
I'm trying to do the same as chippy.
I want to display a scroll box with a code to an icon that links to my art gallery.
I keep getting <[iframe]><blah blah> the visual to the code i placed (not the code itself)</[iframe]>.
How can I avoid that and just the code to show up in a scroll box and not the image?

(if you'd like screen shots, let me know I'll gladly take some)

Thanks for your help.

---Cineris
Wait, are you saying you want a textarea (or some people say "text box"), or a scrolling marquee (animated sign going by)?
To put code in a read-only textbox, say:
[html]
<textarea readonly="true" rows="1" cols="45"><a href="myFavoriteURL.com">myFavoriteURL.com</a></textarea>
[/html]
This is probably the best way to display code in a web page. However, if you have a lot of time on your hand, and you don't want your code in a box you can type in the special character names for each of those characters like this:
[html]&lt;a href=&quot;myFavoriteURL.com&quot;&gt;myFavoriteUR L.com&lt;/a&gt;[/html]
If you have access to server side scripting, which you probably don't, you could say:
Expand|Select|Wrap|Line Numbers
  1. server.htmlEncode("<a href=""myFavoriteURL.com"">myFavoriteURL.com</a>")
  2.  
but this is only helpful for very long stretches of code and the first option is still probably the best.

If you are trying to make a scrolling marquee, this is usually done as a java applet, but it sounds like that is not what you want.

Let me know if this helps.

Jared
Apr 11 '07 #12
its as easy as

<textarea> put your code hear </textarea>
May 12 '07 #13
In a standard HTML scroll box, aka <textarea>, the code shows up instead of the link. To make a list of links appear in a textarea style scroll box, you need to use the <div> instead of the <textarea>. Just copy and paste the following code onto your page and replace the information as necessary:
<div style="overflow: auto; width: 150px; height: 100px; background-color: BACKGROUND COLOR ;">
<a href="URL CODE">TEXT</a>
</div>
Jan 5 '08 #14

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

51 posts views Thread by Mudge | last post: by
9 posts views Thread by bigoxygen | last post: by
4 posts views Thread by jason | last post: by
16 posts views Thread by Dario de Judicibus | last post: by
109 posts views Thread by Andrew Thompson | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by kermitthefrogpy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.