Jump to content

handy

Members
  • Posts

    8
  • Joined

  • Last visited

handy's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. I did that too, changing name to ID, but was receiving the same error. It work now... Anyway, can you help me witht the mouse pointer question?Thanks!
  2. Weird, but I copy/paste your code and it worked . Now I have to see what is the differenceThanks!
  3. Yes, I still get the same error, but I think I know what the problem is. Possibly the server I'm uploading it to does not support JS.Another question though. Since the tabs Parts, Payment, Shipping and Contact are not links, when I move mouse over them the mouse does not turn into the hand just like before you click on the link. How can I make my tabs act like a link so the mouse pointer turns into hand once it is moved over the tab.Thanks!
  4. Here is what I have now: <table style="width: 600px"> <tr> <td style="width: 199px" class="style10" onclick="FP_setTextFieldText(/*id*/'TextArea1', 'text for about our parts', /*id*/'0')">About our parts:</td> <td style="width: 199px" class="style10" onclick="FP_setTextFieldText(/*id*/'TextArea1', 'text for payment', /*id*/'0')"> Payment</td> <td style="width: 200px" class="style10" onclick="FP_setTextFieldText(/*id*/'TextArea1', 'text for shipping\r\n', /*id*/'0')"> Shipping</td> <td style="width: 200px" class="style10" onclick="FP_setTextFieldText(/*id*/'TextArea1', 'text or contact\r\n', /*id*/'0')"> Contact</td> </tr></table><form method="post"> <textarea id="TextArea1" style="width: 600px; height: 250px"></textarea></form> <table style="width: 100%" class="style4"> <tr> <td> I replaced <textarea name="TextArea1" with <textarea id="TextArea1" Right?
  5. I still get the same error...Maybe there is a way around if I explain what I'm trying to do. I have 4 tabs: Parts, Payment, Shipping and Contact. Right below tabs I have a form text field. What I need is when you click on one of the tab, a text shows up in the form text field.Are there any other ways to do that?I'm using Expressionweb software.Thanks!
  6. I'm not very good with Javascript. Where exactly does the <textarea id="TextArea1"></textarea> code goes to?Thanks!
  7. <script type="text/javascript"><!--function FP_setTextFieldText(id,txt,form) {//v1.0 var el=FP_getObjectByID(id); if(el!=null) el.value=txt;}function FP_getObjectByID(id,o) {//v1.0 var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id); else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el; if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c) for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; } f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements; for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } } return null;}// --></script>
  8. Here is the code: <table style="width: 600px"> <tr> <td style="width: 199px" class="style10" onclick="FP_setTextFieldText(/*id*/'TextArea1', 'text for about our parts', /*id*/'0')">About our parts:</td> <td style="width: 199px" class="style10" onclick="FP_setTextFieldText(/*id*/'TextArea1', 'text for payment', /*id*/'0')">Payment</td> <td style="width: 200px" class="style10" onclick="FP_setTextFieldText(/*id*/'TextArea1', 'text for shipping\r\n', /*id*/'0')">Shipping</td> <td style="width: 200px" class="style10" onclick="FP_setTextFieldText(/*id*/'TextArea1', 'text or contact\r\n', /*id*/'0')">Contact</td> </tr></table> I get an erro when displaying the page with this code:Line: 81Char:1Error: Object expectedCode: 0Any ideas?Thanks in advance!
×
×
  • Create New...