473,385 Members | 2,269 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 22217
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,406 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

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

Similar topics

51
by: Mudge | last post by:
Please, someone, tell me why OO in PHP is better than procedural.
9
by: bigoxygen | last post by:
Hi. I'm using a 3 tier FrontController Design for my web application right now. The problem is that I'm finding to have to duplicate a lot of code for similar functions; for example, listing...
4
by: jason | last post by:
Hello. Newbie on SQL and suffering through this. I have two tables created as such: drop table table1; go drop table table2; go
16
by: Dario de Judicibus | last post by:
I'm getting crazy. Look at this code: #include <string.h> #include <stdio.h> #include <iostream.h> using namespace std ; char ini_code = {0xFF, 0xFE} ; char line_sep = {0x20, 0x28} ;
109
by: Andrew Thompson | last post by:
It seems most people get there JS off web sites, which is entirely logical. But it is also a great pity since most of that code is of such poor quality. I was looking through the JS FAQ for any...
5
by: ED | last post by:
I currently have vba code that ranks employees based on their average job time ordered by their region, zone, and job code. I currently have vba code that will cycle through a query and ranks each...
0
by: Namratha Shah \(Nasha\) | last post by:
Hey Guys, Today we are going to look at Code Access Security. Code access security is a feature of .NET that manages code depending on its trust level. If the CLS trusts the code enough to...
2
by: ClassicVodka | last post by:
how do i put that in a scroll box with the actual code appearing? <CENTER> <BIG> PLEASE SIGN THE PETITION AND PLEASE PASS IT ON TO OTHER PEOPLE. <a...
2
by: zeshanae | last post by:
Platform: VS 2008 Language: C# Problem: Resize the Scrollbox without resizing the scroll bar I have already mentioned my problem, so is there any solution to this ? All help appreciated
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.