Hi guys! new to forum and to coding. I have poured over the forums and lots of places for an answer. I am not sure if this is due to my thus far limited understanding or, nto a specific enough question was asked. Basically it was suggested to me to make a link on a site from this:
Search our Catalog:
It was asked that I tie a link to that text and make it sort of a button so that when clicked, it takes someone to our catalog. The site is built with Drupal 6 and uses Danland theme and and a WYSIWYG. WHen I open the gear to edit this section I see:
"<P align=right><a href="https://catalog.ncpl.lib.oh.us/polaris/logon.aspx">
Access Library Account</a> -
<a href="https://catalog.ncpl.lib.oh.us/polaris/patronaccount/selfregister.aspx?">
Get a Card</a> -
<a href="http://catalog.ncpl.lib.oh.us/polaris/search/default.aspx">Search
Catalog</a></P>
<!-- // Start of Search form -->
<script language="javascript">
String.prototype.trim = function() { return this.replace(/^\s*|\s*$/g,''); }
function ProcessInput(e)
{
if (window.event) // IE
keyNum = e.keyCode;
else if (e.which) // Netscape/Firefox/Opera
keyNum = e.which;
if (keyNum == 13)
{
e.returnValue = false;
e.cancelBubble = true;
DoKeywordSearch('KW');
return false;
}
return true;
}
function DoKeywordSearch()
{
if (document.getElementById('textboxTerm').value.trim() != '')
{
var strURL = 'http://catalog.ncpl.lib.oh.us/polaris/search/searchresults.aspx?ctx=1.1033.0.0.1';
var strWindex = document.getElementById('Windex').value;
var strTerm = escape(document.getElementById('textboxTerm').value);
window.location = strURL + "&type=Keyword&limit=TOM=*&sort=PD_TI&Page=0&by=" + strWindex + "&term=" + strTerm;
}
else
{
alert('Please enter a search term');
document.getElementById('textboxTerm').focus();
}
}
</script>
<noscript>JavaScript must be enabled for catalog!</noscript>
<table border="0">
<tr>
<td>
<label for="search">Search our Catalog:</label>
<input class="search" type=text id=textboxTerm size=30 onkeypress="return ProcessInput(event)" />
<select class="search" id="Windex">
<option value="KW" selected="selected">
Anywhere
</option>
<option value="SU">
Subject
</option>
<option value="TI">
Title
</option>
<option value="AU">
Author
</option>
<option value="KW&fic=1">
Fiction
</option>
<option value="KW&fic=0">
Nonfiction
</option>
</select>
<input type="submit" class="button" value="Go!" name="submit" onclick="DoKeywordSearch()" />
</td>
</tr>
</table>
<!--// End of Search form -->"
My question is where would the code for the link go and is there a good resource i can use to figure out how to write it? Any help is greatly appreciated, thank you.