Results 1 to 1 of 1

Thread: Newbie i need a code

  1. #1
    Join Date
    Nov 2009

    Unhappy Newbie i need a code

    I am currently working now with my html code and found out it is more easier on java script. I just self studied about this.

    What my problem is.

    I have a input text where a user will place/paste his image link and on a text box at the button press the code will be paste on the text area but in a middle of a sentences.

    This how it works

    if input http://www.image.com/image.jpg
    Button Clik Generates a code on the next box which is textarea
    This is your code now http://www.image.com/image.jpg. etc....

    The button will place the value of form1 in between of a sentence to the textarea

    Please help me with this one

    i made this but it is only copy and paste

    <div align="center">
    <script type="text/javascript">
    function CopyInput(form)
    form.copied.value = form.original.value;

    <form action="" method="">
    <input type="text" name="original" size="50"onclick="this.focus();this.select()"value = "Enter your image link here : Including http://">
    <input type="button" name="copy" value="Generate" onClick="CopyInput(this.form)">

    <textarea id="idq" style="width: 400px; height: 60px; margin-bottom: 4px; color: red;"onclick="this.focus();this.select()" name="copied" onfocus='if (this.value=="Type your message and e-mail here!") {this.value=""; this.style.color="black"}' onblur='if (this.value=="") {this.value="Type your message and e-mail here!"; this.style.color="#25326";}'>Your Generated Code Will appear in here.Happy Mylotting!</textarea>

    Last edited by Kor; 11-12-2009 at 05:12 AM. Reason: wrong prefix - this not a JQuery problem

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center