text input boxes over a graphic?

how can i create text boxes that people can type in if the whole page is a gif image that i created in imageready, how can i make a text input box over the graphic?

thanks
finnstoneAsked:
Who is Participating?
 
Kiran Paul VJComputer EngineerCommented:
You can use a layer to place the text box exactly where you want.

In your web page put this tag in the body

<div id="Layer1" style="position:absolute; left:164px; top:101px; width:213px; height:30px; z-index:1">
  <input type="text" name="textfield">
</div>

You can adjust the top, left, width, height etc to suit ur needs.
(Here the textbox is placed inside a layer)

If you are using a web page editor like Dreamweaver or Frontpage things will be more easy, just click the layer and move to where you want to place the text box.

The advantage of using layers is that you can place the layer anywhere in your webpage.

So you put your image in a table. And on top of this table you place the layer( the place where u want to place the textbox);

hope this helps...
thank u.
kiranvj
0
 
sunnycoderCommented:
0
 
finnstoneAuthor Commented:
sunnny, that is not what i am trying to do.

 i want a text BOX where people can input stuff and i want this to be a form input box .

sorry for confusion
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
sunnycoderCommented:
I guess you are building some web page or something similar ...

In that case, you can consider setting your image as background of the page and creating a text box (form) on that page ... In other words, text box will not  be a part of the image (graphics) but just a component of your overall web page

If you are using html, you can use a WYSIWYG editor or other tools to design the page

check these links
http://skyscraper.fortunecity.com/raytrace/766/forms_tutorial.htm
http://www.echoecho.com/htmlforms.htm
0
 
weedCommented:
You mean like http://www.artcenter.edu/home/index1b.html finnstone?
It's just a matter of slicing up the image, and leaving spaces for input fields in the tables.
0
 
finnstoneAuthor Commented:
yes

what do u mean though. why is slicing have to do anythgn with this?

 what tables should i create? how can i create a table in the html page in the exact spot where the gif image lies?
0
 
weedCommented:
Are you familiar with using Slices in ImageReady and Photoshop? If not, check out the manual pages which tell you what slices are, what they do, and how to use them. When you export to HTML, the slices will create tables which can be used as a layout tool for HTML. Use the tables, to place your forms.
0
 
bitter_chickenCommented:
The textfields will work, but you wont be able to see through to the image underneath.

The following will allow the user to add text on top of the image, and still see the image: (IE)

==========================

<div id="Layer1" contentEditable="true" style="position:absolute; left:71px; top:61px; z-index:1; width: 500px; height: 500px; border: 1px dotted #336699; font-size:36px; font-family:Arial, Helvetica, sans-serif; color:#990000;">
  <br> Content Here
  <br> Type Stuff Here
  <br> Add Text Here
</div>

==========================

bc :-)
0
 
sunnycoderCommented:
>how can i create a table in the html page in the exact spot where the gif image lies?
Use a WYSIWYG (what you see is what you get) html editor like MS frontpage and your task will get considerably easier
0
 
Lance_FrisbeeCommented:
To get the result you want, you'll need to slice your image into multiple slices. When you optimize as webpage AFTER going through imageready, you'll need to open your .html file with an editor of some sort. You'll have a bunch of table cells that were created by your slices

<TD Colspan = 8>
                           <img src="images/picture.gif" height="100%" width="100%" border="0">
</TD>


This is the kind of stuff you'll be seeing. To make it so you can type on top of one of these images using your HTML editor i.e. Dreamweaver, Frontpage etc. you need to change this table cell from containing an image of "picture.gif" and make the BACKGROUND image of the cell "picture.gif"

To obtain this effect you'll need to change your code to read:

<TD Colspan=8 background="images/picture.gif" height="100%" width="100%" border="0">
           This is where you'll write your text that will appear ON TOP of the image.
</TD>

So to sum it up - replace your img src= with background= and make it all part of the same <TD> tag.

Hope this helps -

Lance
0
 
finnstoneAuthor Commented:
i was wondering too...how can i make this a form??
0
 
finnstoneAuthor Commented:
would the form tag go before the text input and after the div tag?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.