code box for banner exchange?

hey there, I need to make a text box for a banner. Everytime i put the code in the text area, the banner shows up in the text box, i just want the code, not the image. How can i do that?

Every major website uses TEXTAREA with good reason – it has the methods select() and focus() whereas CODE does not which means you can highlight the whole code on a single click for the user to copy to clipboard.

For exactly the same copy to clipboard functionality as youtube, google video, myspace and everybody else use this:

<textarea rows=30 cols=30 onclick="copy(this)">
BANNER HTML CODE
</textarea>

<script language=javascript>
function copy(textarea) {
textarea.select();
textarea.focus();
}
</script>

Use this and click once anywhere on the textarea box and the whole text gets highlighted.

Adjust size by changing rows and cols, and put your banner code where it says.

HTML does not get rendered in textarea (same as code) but at least you can highlight the text.

22 Responses to “code box for banner exchange?”

  1. tzumpy says:

    example:
    <textarea name=" INSERT BANNER CODE HERE " cols="40" rows="4"></textarea>
    References :

  2. Vera says:

    I’m sick and tired of seeing textareas used for displaying code. Teaxtareas are to be used in forms (for mailing, or commenting).

    So use the following

    <code style="width: 200px; height: 100px; display: block; overflow: auto">
    Your code here.
    </code>

    Oh and here is a nifty code converter, if you don’t want to keep typing < instead of <, etc:
    http://tutorialtastic.co.uk/converter.php
    References :

  3. E.M.Bed says:

    Every major website uses TEXTAREA with good reason – it has the methods select() and focus() whereas CODE does not which means you can highlight the whole code on a single click for the user to copy to clipboard.

    For exactly the same copy to clipboard functionality as youtube, google video, myspace and everybody else use this:

    <textarea rows=30 cols=30 onclick="copy(this)">
    BANNER HTML CODE
    </textarea>

    <script language=javascript>
    function copy(textarea) {
    textarea.select();
    textarea.focus();
    }
    </script>

    Use this and click once anywhere on the textarea box and the whole text gets highlighted.

    Adjust size by changing rows and cols, and put your banner code where it says.

    HTML does not get rendered in textarea (same as code) but at least you can highlight the text.
    References :

  4. Sorry my english, but this is great site, I wil add to my favorites.

  5. Ethan Stvil says:

    The content on this submit is really 1 of the most beneficial material that I’ve ever arrive across. I love your publish, I’ll appear back to verify for new posts.

  6. Dione Bremer says:

    Thanks because of this! I’ve been searching all above the web for that details.

  7. A genuinely very good article by you my friend. We have bookmarked this page and will occur back following several days to verify for any new posts that you simply make.

  8. ProXpro says:

    This is just great, I just love it. We need several blogs like yours. You have great information and it is really good. I bookmarked this blog and will come back.

  9. Thank you for share very nice info. Your blog is coolI am impressed by the information that you have on this blog. It shows how well you understand this subject. Bookmarked this page, will come back for more. You, my friend, ROCK! I found just the information I already searched everywhere and just couldn’t find. What a perfect site. Like this website your website is one of my new favs.I like this site given and it has given me some sort of desire to succeed for some reason, so thank you

  10. That was a different thought track. I love your finesse that you put into your work. Please do move forward with more similar to this.

  11. I should mention. After reading what I just read, you are an amazing author! Really, you use very good grammar, proper use of pronunciations, proper everything! I might additionally like to add and say that I think you pin pointed my style of writing as well which I adore! What I also admire about your blog is that you give an opportunity for a wider variety of an audience to unravel the immense storyline of your writings. And with that, I believe you will definitely keep up succeeding in flourishing an exceptionally well written piece :)

  12. Hi guys! :) I’m thinking if someone might aid me out! Basically I desire to watch this specific web page on my all new iPad, however it does not show up properly, So I was pondering if someone can advise me any optimum remedy? I don’t know but should I attempt and locate out an update for my software package system or anything else? I know this really is one thing kinda off the topic, but please replace me and thanks ahead of time for the enable! Sophie :)

  13. Hello everyone! :) I’m asking yourself if an individual could possibly enable me out! Actually I desire to watch this specific page at my personal all new iPad, nonetheless it does not display up correctly, So I used to be thinking if another person can advise me any optimal remedy? I don’t know but really should I attempt and discover out an update for my software package program or anything else? I am aware this is anything kinda off the subject, but please update me and thanks much in advance for the enable! Sophie :)

  14. Hi people! :) I am thinking if someone might aid me out! Truly I wish to check out this specific page on my personal new iPad, nevertheless it doesn’t show up effectively, So I was asking yourself if someone can advise me any optimum resolution? I don’t know but need to I strive and find out an replace for my software plan or anything at all else? I realize it is some thing kinda off the subject, but please update me and many thanks ahead of time for the help! Sophie :)

  15. Hi people! :) I am questioning if an individual could help me out! Truly I would like to look at this web page upon my own brand-new iPad, nonetheless it doesn’t display up correctly, So I was questioning if someone can advise me any optimal option? I don’t know but really should I try and locate out an update for my computer software system or something else? I realize this really is something kinda off the subject, but please replace me and thank you in advance for the help! Sophie :)

  16. Hi fellows! :) I’m thinking if another person could enable me out! In fact I need to check out this specific webpage at my own latest iPad, however it doesn’t exhibit up accurately, So I used to be thinking if a person can propose me any optimal resolution? I do not know but must I try and come across out an update for my application system or anything else? I understand this really is one thing kinda off the topic, but please replace me and thanks much upfront for that help! Sophie :)

  17. Hi there,First of all Happy New Yr to all!! I hope you all had a terrific time partying!! Well, that is one thing not extremely associated with the subject right here, but I want urgent assistance….I got stuck with my iphone as I am not in a position to get through the internet over it. I will very value if any one could aid me out sorting out the matter!! Thanks in advance for ones kind help!!Cheers!! Kattie

  18. Can I just say what a relief to find someone who actually knows what theyre talking about on the web. You definitely have learned to bring an issue to light and make it important. More people need to read this and understand this side of the story. I cant believe youre not more popular because you definitely have the gift

  19. Dan Fowler says:

    I want to express my gratitude for your kindness in support of men and women who really need help on your subject. Your real commitment to passing the solution across turned out to be unbelievably functional and has consistently encouraged girls just like me to reach their endeavors. Your entire valuable advice implies so much a person like me and further more to my office workers. Thank you; from each one of us.

  20. Dewey Satawa says:

    I’d come to give the go-ahead with you one this subject. Which is not something I typically do! I love reading a post that will make people think. Also, thanks for allowing me to comment!

  21. I’d be inclined to buy into with you one this subject. Which is not something I usually do! I love reading a post that will make people think. Also, thanks for allowing me to speak my mind!

  22. This page seems to get a great deal of visitors. How do you promote it? It gives a nice unique twist on things. I guess having something real or substantial to give info on is the most important factor.

Leave a Reply

Posted on September 30th, 2009 by admin and filed under banner exchange | 22 Comments »
|

Blogroll

    Meta