|
please exscuse my ignorance but i can not find where to put this code. below is the code for the page in question
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/Petwise.asp" -->
<%
Dim rsNewsView
Dim rsNewsView_numRows
Set rsNewsView = Server.CreateObject("ADODB.Recordset")
rsNewsView.ActiveConnection = MM_Petwise_STRING
rsNewsView.Source = "SELECT * FROM News ORDER BY NewsID DESC"
rsNewsView.CursorType = 0
rsNewsView.CursorLocation = 2
rsNewsView.LockType = 1
rsNewsView.Open()
rsNewsView_numRows = 0
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html><!-- InstanceBegin template="/Templates/Main.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>Petwise</title>
<!-- InstanceEndEditable --><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="PetStyle.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
//-->
</script>
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
</head>
<body onLoad="MM_preloadImages('images/button-home-down2.png','images/button-news-down2.png','images/button-products-down2.png','images/button-game-down2.png','images/button-findus-down2.png','images/button-contact-down2.png')">
<table width="930" border="0" align="center" cellpadding="0" cellspacing="0">
<tr align="left" valign="top">
<td width="40" height="139" class="BorderTopLeft"> </td>
<td width="850" height="139" class="Header"> </td>
<td width="40" height="139" class="BorderTopRight"> </td>
</tr>
<tr align="left" valign="top">
<td width="40" height="30" class="BorderUpright"> </td>
<td width="850" height="30"><a href="javascript:;" onClick="MM_goToURL('parent','home.html');return document.MM_returnValue" onMouseOver="MM_swapImage('Image1','','images/button-home-down2.png',1)" onMouseOut="MM_swapImgRestore()"><img src="images/button-home-up2.png" name="Image1" width="145" height="30" border="0" id="Image1"></a><a href="javascript:;" onClick="MM_goToURL('parent','news.asp');return document.MM_returnValue" onMouseOver="MM_swapImage('Image2','','images/button-news-down2.png',1)" onMouseOut="MM_swapImgRestore()"><img src="images/button-news-up2.png" name="Image2" width="141" height="30" border="0" id="Image2"></a><a href="javascript:;" onClick="MM_goToURL('parent','products.asp');retur n document.MM_returnValue" onMouseOver="MM_swapImage('Image3','','images/button-products-down2.png',1)" onMouseOut="MM_swapImgRestore()"><img src="images/button-products-up2.png" name="Image3" width="141" height="30" border="0" id="Image3"></a><a href="javascript:;" onClick="MM_goToURL('parent','game.html');return document.MM_returnValue" onMouseOver="MM_swapImage('Image4','','images/button-game-down2.png',1)" onMouseOut="MM_swapImgRestore()"><img src="images/button-game-up2.png" name="Image4" width="141" height="30" border="0" id="Image4"></a><a href="javascript:;" onClick="MM_goToURL('parent','find.html');return document.MM_returnValue" onMouseOver="MM_swapImage('Image5','','images/button-findus-down2.png',1)" onMouseOut="MM_swapImgRestore()"><img src="images/button-findus-up2.png" name="Image5" width="141" height="30" border="0" id="Image5"></a><a href="javascript:;" onClick="MM_goToURL('parent','contact.asp');return document.MM_returnValue" onMouseOver="MM_swapImage('Image6','','images/button-contact-down2.png',1)" onMouseOut="MM_swapImgRestore()"><img src="images/button-contact-up2.png" name="Image6" width="141" height="30" border="0" id="Image6"></a></td>
<td width="40" height="30" class="BorderUpright"> </td>
</tr>
<tr align="left" valign="top">
<td width="40" class="BorderSpacer"> </td>
<td width="850"><!-- InstanceBeginEditable name="Content" -->
<table width="850" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20" rowspan="3"> </td>
<td height="40" colspan="3" align="left" valign="top" class="HeadingNews"> </td>
<td width="20" rowspan="3"> </td>
</tr>
<tr>
<td width="500" align="left" valign="top" class="TextMain"><%=(rsNewsView.Fields.Item("NewsT ext").Value)%></td>
<td width="20"> </td>
<td width="290" align="left" valign="top"><img src="<%=(rsNewsView.Fields.Item("NewsPic").Value)% >"></td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
</table>
<!-- InstanceEndEditable --></td>
<td width="40" class="BorderSpacer"> </td>
</tr>
<tr align="left" valign="top">
<td width="40" height="40" class="BorderBottomLeft"> </td>
<td width="850" height="40" align="center" class="BorderBottom"><a href="sitemap.html">Sitemap</a> | <a href="privacy.html">Privacy Policy</a> | Copyright © 2006 </td>
<td width="40" height="40" class="BorderBottomRight"> </td>
</tr>
</table>
</body>
<!-- InstanceEnd --></html>
<%
rsNewsView.Close()
Set rsNewsView = Nothing
%>
|