Friday, November 19, 2010

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?How do I display an html code in a scroll box for people to copy and paste?
http://allmyfaqs.net/faq.pl?Show_HTML_ex explains how to show HTML examples.



http://www.domedia.org/oveklykken/css-di explains how to create a scrolling regionHow do I display an html code in a scroll box for people to copy and paste?
Use the %26lt;code%26gt; tag.
:D Your talking about a textarea!



%26lt;textarea name=';codes'; cols=';20'; rows=';5'; readonly=';readonly';%26gt;

put code here :]

%26lt;/textarea%26gt;
Try this code you see in Youtube:

%26lt;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 /%26gt;

No comments:

Post a Comment