how do i put a code in a scrollbox?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chippy
    New Member
    • Apr 2007
    • 1

    #1

    how do i put a code in a scrollbox?

    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???
  • philleep
    New Member
    • Mar 2007
    • 74

    #2
    Originally posted by chippy
    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

    Comment

    • AricC
      Recognized Expert Top Contributor
      • Oct 2006
      • 1885

      #3
      Originally posted by chippy
      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.

      Comment

      • KevinADC
        Recognized Expert Specialist
        • Jan 2007
        • 4092

        #4
        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.

        Comment

        • AricC
          Recognized Expert Top Contributor
          • Oct 2006
          • 1885

          #5
          Originally posted by KevinADC
          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.

          Comment

          • drhowarddrfine
            Recognized Expert Expert
            • Sep 2006
            • 7434

            #6
            sounds like something myspace users would think is cool.
            That made me laugh.

            Comment

            • AricC
              Recognized Expert Top Contributor
              • Oct 2006
              • 1885

              #7
              Originally posted by drhowarddrfine
              That made me laugh.
              Yeah I did as well. Myspace is terrible.

              Comment

              • KevinADC
                Recognized Expert Specialist
                • Jan 2007
                • 4092

                #8
                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 ;)

                Comment

                • AricC
                  Recognized Expert Top Contributor
                  • Oct 2006
                  • 1885

                  #9
                  Originally posted by KevinADC
                  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".

                  Comment

                  • Cineris
                    New Member
                    • Apr 2007
                    • 1

                    #10
                    Originally posted by AricC
                    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

                    Comment

                    • pravinda
                      New Member
                      • Dec 2006
                      • 23

                      #11
                      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

                      Comment

                      • jhardman
                        Recognized Expert Specialist
                        • Jan 2007
                        • 3405

                        #12
                        Originally posted by Cineris
                        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="myFavorit eURL.com">myFav oriteURL.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;myFa voriteURL.com&q uot;&gt;myFavor iteURL.com&lt;/a&gt;[/html]
                        If you have access to server side scripting, which you probably don't, you could say:
                        Code:
                        server.htmlEncode("<a href=""myFavoriteURL.com"">myFavoriteURL.com</a>")
                        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

                        Comment

                        • simplekate
                          New Member
                          • May 2007
                          • 1

                          #13
                          its as easy as

                          <textarea> put your code hear </textarea>

                          Comment

                          • BADATTITUDE77
                            New Member
                            • Jan 2008
                            • 1

                            #14
                            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>

                            Comment

                            Working...