Reply
Can the size of these text fields be larger?
Old 02-15-2006, 08:10 AM Can the size of these text fields be larger?
Junior Talker

Posts: 3
Hi,

I have one of those little translation boxes on my website and the code was supplied to me by the main translation company. The problem is the input box where someone can input text looks so small.

I want to increase the size of the box visually but not sure if I can modify it.


Did not want to paste too much code so I will paste only what looks like the most important part.

<script LANGUAGE="JavaScript1.2">
function RAS(n)
{
document.TRANS.elements[n].value="";
}

var NS4 = (document.layers) ? 1 : 0;
var IE4 = (document.all) ? 1 : 0;

if (NS4)
{
document.write("<INPUT TYPE=\"text\" SIZE=\"50\" name=urltext OnFocus=\"javascript:RAS(0)\" VALUE=\"Type text to translate here...\">");
}
else
{
document.write("<INPUT TYPE=\"text\" SIZE=\"50\" name=urltext style=\"font-size:9pt;font-family:arial;color:000000;\" OnFocus=\"javascript:RAS(0)\" VALUE=\"Type text to translate here...\">");
}
</script>
</font>

--------------

If I have not supplied enough code just let me know and I will supply more.

Thanks in advance!
Snowfox is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 02-15-2006, 08:35 AM Re: Can the size of these text fields be larger?
King Spam Talker

Posts: 1,060
\" SIZE=\"50\" 50 controls the width of the form box. bigger number= wider form.

font-size:9p controls the size of the font.

Be sure to make a backup of the page before you make changes just in case you break something.


Colbyt
colbyt is offline
Reply With Quote
View Public Profile
 
Old 02-15-2006, 08:50 AM Re: Can the size of these text fields be larger?
Junior Talker

Posts: 3
Excellent, I was able to increase the length of the box.

This shows that I should be able to edit the size of the box so now the question would be, how do I get the box to be taller?




Thanks so much!!
Snowfox is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Can the size of these text fields be larger?
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12661 seconds with 13 queries