hello i am needing a script that has input fields that i can type in these variables.
num
link
name
img
info
item
price
it is for my website. i have one certain html code that i use over and over that has the number item on the page it is it is, a link to it, the name of the product, the image link, info about it, the manufact #, and price. i am trying to get a simple form with these 7 variables, so that when i fill them in it automatically generates my code i use over and over, only with the information i typed into the fields in the html coding. here is what i have so far, i could only first get the num portion to work oh and the table stuff is part of my html code that i am trying to insert the variables into.. thanks for any help (by the way this is a free scrip that i was trying to edit. the owner gave full permission.
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function MakeIt(form){
var txt='<!- '+form.num.value+' -!>\r\n';
var txt='<td bgcolor=white valign=top class=content>
<table bgcolor=0277ff border=0 width=100% cellpadding=5 cellspacing=5 cellborder=0><tr>
<td bgcolor=white valign=top class=searchHighlight>
<a href="'+form.link.value+'" target=middle>\r\n;
form.source.value=txt;
}
function AddText(form, Action){
var AddTxt="";
var txt="";
form.link.value+=AddTxt;
}
function ResetPage(form){
if(confirm("Do you want to clear all and start a new META-tag Creation?")){
form.description.value="";
form.source.value="";
form.keywords.value="";
}
}
// End -->
</SCRIPT>
num
link
name
img
info
item
price
it is for my website. i have one certain html code that i use over and over that has the number item on the page it is it is, a link to it, the name of the product, the image link, info about it, the manufact #, and price. i am trying to get a simple form with these 7 variables, so that when i fill them in it automatically generates my code i use over and over, only with the information i typed into the fields in the html coding. here is what i have so far, i could only first get the num portion to work oh and the table stuff is part of my html code that i am trying to insert the variables into.. thanks for any help (by the way this is a free scrip that i was trying to edit. the owner gave full permission.
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function MakeIt(form){
var txt='<!- '+form.num.value+' -!>\r\n';
var txt='<td bgcolor=white valign=top class=content>
<table bgcolor=0277ff border=0 width=100% cellpadding=5 cellspacing=5 cellborder=0><tr>
<td bgcolor=white valign=top class=searchHighlight>
<a href="'+form.link.value+'" target=middle>\r\n;
form.source.value=txt;
}
function AddText(form, Action){
var AddTxt="";
var txt="";
form.link.value+=AddTxt;
}
function ResetPage(form){
if(confirm("Do you want to clear all and start a new META-tag Creation?")){
form.description.value="";
form.source.value="";
form.keywords.value="";
}
}
// End -->
</SCRIPT>