View Full Version : Help please


Elentari
05-06-2003, 02:43 AM
Ok, I'm not sure if this question should go here but I hope so.

My webpage has layouts for people to download and use for themselves. On my layouts page I plan to have small images of each one and when someone clicks on a picture they like it will open up a new window with the layout and directly below the layout I want a text area that has the code for the page.....I'm certain I've seen it before (currently looking for examples for people to see)......I would like to know how to do this.

Xiphias
05-06-2003, 02:58 AM
<textarea readonly="readonly">HTML CODE HERRE</textarea>

and next time please name the thread something a bit more helpful, such as textareas

BugGirl
05-06-2003, 03:05 AM
You could do this in frames, too....

Just have the little picture open up a frameset, with the top frame holding your layout, and the bottom frame holdoing a text file with the code in it.

Xiphias
05-06-2003, 03:36 AM
Originally posted by BugGirl
You could do this in frames, too....

Just have the little picture open up a frameset, with the top frame holding your layout, and the bottom frame holdoing a text file with the code in it.

Why would you do that when you can use CSS to make the textarea look just like an iframe? iframes would just be trouble here...

btw, the correct CSS coding would be

textarea {

styles here;

}

BugGirl
05-06-2003, 03:53 AM
Not iframes, frame frames. And i dont know why you would do this. But you could.

Xiphias
05-06-2003, 04:20 AM
sorry, I misread you :stickout: