How do I display an html code in a scroll box for people to copy and paste?
I tried searching and trying but cant figure it out. I want to put a html code in my scroll box that displays the actual code of a banner for other people to copy and paste into their own sites. How is this done?
http://allmyfaqs.net/faq.pl?Show_HTML_examples explains how to show HTML examples.
http://www.domedia.org/oveklykken/css-div-scroll.php explains how to create a scrolling region
Use the <code> tag.
<textarea name="codes" cols="20" rows="5" readonly="readonly">
put code here :]
</textarea>
Try this code you see in Youtube:
<input id="embed_code" name="embed_code" type="text" value="enter embed code here"
onClick="javascript:document.
embedForm.embed_code.focus
();document.embedForm.embed_c
ode.sele
ct();"
readonly />