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]<a href="myFavoriteURL.com">myFavoriteUR L.com</a>[/html]
If you have access to server side scripting, which you probably don't, you could say:
-
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