By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,788 Members | 1,115 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,788 IT Pros & Developers. It's quick & easy.

how do i put a code in a scrollbox?

P: 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
Share this Question
Share on Google+
13 Replies


P: 74
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

Expert 100+
P: 1,892
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
Expert 2.5K+
P: 4,059
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

Expert 100+
P: 1,892
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
Expert 5K+
P: 7,435
sounds like something myspace users would think is cool.
That made me laugh.
Apr 4 '07 #6

Expert 100+
P: 1,892
That made me laugh.
Yeah I did as well. Myspace is terrible.
Apr 4 '07 #7

KevinADC
Expert 2.5K+
P: 4,059
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

Expert 100+
P: 1,892
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

P: 1
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

pravinda
P: 23
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
Expert 2.5K+
P: 3,405
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

P: 1
its as easy as

<textarea> put your code hear </textarea>
May 12 '07 #13

P: 1
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.