Forums / General Questions / Adding a js link to an outside site

Adding a js link to an outside site

Locked

Views: 833

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
17 Oct 2007, 12:22 AM
#1
trvlfox avatar

trvlfox

Zen Follower

Join Date:
Aug 2007
Location:
Fort Worth, Texas, United States
Posts:
156
Plugin Contributions:
0

Adding a js link to an outside site

Hi everyone,

I want to add a banner from PetFinder to the footer of my page. It has an external file/javascript and I can't figure out how to go about it.

This is what I need to add the Javascript header file -

<script type="text/javascript" language="javascript"  src="http://fpm.petfinder.com/js/qsearchdog.js"></script>

and this is what I'm suppose to add to the portion of the website I want the banner to appear

<script language="javascript">pfsearch();</script>

I had placed the banner link in footer banner 3 and added the code to my jscript_file.js file, but it didn't work. I think I needed to clean up the code.

help?

Vicky

Vicky
Compass Web Services - Templates for Zen Cart
http://www.compasswebservices.com/

17 Oct 2007, 4:56 PM
#2
user777 avatar

user777

New Zenner

Join Date:
Oct 2007
Posts:
4
Plugin Contributions:
0

Re: Adding a js link to an outside site

You could insert the pure HTML as a banner. It would work the same except without the field check.

<table cellpadding="1" cellspacing="0" width="425" border="0" bgcolor="#ffffcc" height="54">
<form action="http://search.petfinder.com/search/search.cgi" method="get" name="pfsearch" target="_blank">
<input type="hidden" name="preview" value="1">
<tr>
<td colspan="10" bgcolor="#CC3366" height="1"><img src="http://www.petfinder.com/common/images/spacer.gif" height="1" width="468"></td>
</tr>
<tr>
<td rowspan="7" height="57" bgcolor="CC3366" width="0%"><img src="http://www.petfinder.com/common/images/spacer.gif" height="1"></td>
<td colspan="8" height="2"><img src="http://www.petfinder.com/common/images/spacer.gif" height="0" width="1"></td>
<td rowspan="5" bgcolor="CC3366" width="0%"><img src="http://www.petfinder.com/common/images/spacer.gif" height="60" width="1"></td>
</tr>
<tr>
<td rowspan="3" width="9%"><img src="http://www.petfinder.com/common/images/fpm/QSsmHound.gif" width="44" height="57"></td>
</tr>
<tr>
<td colspan="4" height="11"><div align="center"><img src="http://www.petfinder.com/common/images/fpm/qsearchtitleY.gif" width="204" height="12"></div></td>
<td colspan="3" height="11" align="center"><img src="http://www.petfinder.com/common/images/fpm/logosmpY.gif" width="103" height="16"></td>

</tr>
<tr>
<td align="right" valign="middle"><font face="Arial, Helvetica, sans-serif" size="-1" color="#"><b>Animal</b></font></td>
<td align="left" valign="middle"> <font face="Arial, Helvetica, sans-serif" size="-2">
<select name="animal">
<option value="" selected> --Select--
<option value="Bird"> Bird
<option value="Cat"> Cat
<option value="Dog"> Dog
<option value="Horse"> Horse

<option value="Pig"> Pig
<option value="Rabbit"> Rabbit
<option value="Reptile"> Reptile
<option value="Small&Furry"> Small&Furry
</select>
</font></td>
<td align="right" valign="middle"><font face="Arial, Helvetica, sans-serif" size="-2"><b><font size="-1">Breed</font></b></font></td>
<td align="left" valign="middle">
<input name="pet.Breed" style="FONT-SIZE:12px" size="5">
</td>
<td align="right" valign="middle" nowrap> <font face="Arial, Helvetica, sans-serif" size="-1"><b>Zip
Code</b></font><br>

</td>
<td align="left" valign="middle"><font size="-5">
<input name="location" style="FONT-SIZE:12px" size="5">
</font> </td>
<td align="center" nowrap>
<input type="image" src="http://www.petfinder.com/common/images/fpm/QsearchGoY.gif" width="28" height="27" border="0" align="TOP">
</td>
</tr>
<tr>
<td colspan="8" height="2"><img src="http://www.petfinder.com/common/images/spacer.gif" height="1"></td>
</tr>
<tr>
<td colspan="9" bgcolor="#CC3366"><img src="http://www.petfinder.com/common/images/spacer.gif" height="1" width="1"></td>
</tr>
</form>
</table>