Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

html tag auto insertion

Status
Not open for further replies.

shagy22

Technical User
Joined
May 15, 2006
Messages
1
Location
US
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>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top