PDA

View Full Version : Partly User defined link



Bacchus
08-29-2006, 11:27 PM
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.

531

vikasbhagwagar
08-31-2006, 12:48 PM
Add this dummy Function before </head>


<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>



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