Modifying Javascript

admin

Administrator
Staff member
I have a piece of Javascript for searching through pages on my site, and foreach page you wish to add to this you have to type in four lines of code and change a number at the top. I was wondering is there anyway to write something that will do this for you to a certain extent.
The four lines of code are something like this:

title[1]="the keywords go here"
desc[1]="The description goes here"
links[1]="the link to the file goes here"
matched[1]=0

where 1 is the number of the page in sequence (so the next page added would have 2's where there are 1's etc.) I wanted to know whether it was possible to have a form where you type in keywords a description and the link and you're away. Unfortunately I'm not sure if you can make it add to a certain point of a javascript, without having to write evrything out - I just want to expand existing entries not start from the beginning each time. I don't think that its possible but I thought I'd ask.
The script is somewhere on <!-- w --><a class="postlink" href="http://www.htmlgoodies.com">www.htmlgoodies.com</a><!-- w --> if you want to see it in its entirity (sorry can't find the link now).
IxxI
 
Back
Top