Advanced Search

Results 1 to 2 of 2

Thread: Partly User defined link

  1. #1
    Join Date
    Aug 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Partly User defined link

    I got this script from The Javascript Source, and I need to modify it. It's almost exactly what I need except for I need a text box to replace the numbers "373417" with a user defined number in the link.

    Attachment 531

  2. #2
    Join Date
    Aug 2006
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Talking

    Add this dummy Function before </head>
    Code:
    <script>
    function myDummyLink()
    {
    myURL = "http://www.ancientworlds.net/"
    myURL += document.getElementById('myNum').value;
    // or 
    // myURL += document.myForm.myNum.value;
    myURL +="/avatar/selectForm&inspectedImageid=78193"
    //alert(myURL);
    NewWindow(myURL,'name','400','400','yes');return false;
    }
    </script>
    paste this form in <BODY>

    Code:
    <form name=myForm>
    <input type=text name=myNum id=myNum >
    <a href="JavaScript:myDummyLink();">Avatar Test</a>
    </form>

Bookmarks

Posting Permissions

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