Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



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

Posts: 3
Trades: 0
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
 
 
Register now for full access!
Old 02-15-2006, 09:35 AM Re: Can the size of these text fields be larger?
Defies a Status

Posts: 1,605
Trades: 0
\" 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, 09:50 AM Re: Can the size of these text fields be larger?
Junior Talker

Posts: 3
Trades: 0
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 Search this Thread
Search this Thread:

Advanced Search

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

BB 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.45504 seconds with 12 queries