<%
Response.Write " <br><br> " & vbNewLine
Response.Write " <form method=""get"" action=""http://www.google.com/custom"" target=""_top""> " & vbNewLine & _
" <table border=""0"" cellspacing=""0"" cellpadding=""0"" align=""center"">" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td nowrap=""nowrap"" valign=""top"" align=""left"" height=""32"">" & vbNewLine & _
" <a href=""http://www.google.com/""><img src=""http://www.google.com/logos/Logo_25wht.gif"" border=""0"" alt=""Google"" align=""middle""></img></a>" & vbNewLine & _
" <input type=""text"" name=""q"" size=""31"" maxlength=""255"" value=""""></input>" & vbNewLine & _
" <input type=""submit"" name=""sa"" value=""WebSearch""></input>" & vbNewLine & _
" <input type=""hidden"" name=""client"" value=""pub-YOUR_ID_HERE""></input>" & vbNewLine & _
" <input type=""hidden"" name=""forid"" value=""1""></input>" & vbNewLine & _
" <input type=""hidden"" name=""ie"" value=""ISO-8859-1""></input>" & vbNewLine & _
" <input type=""hidden"" name=""oe"" value=""ISO-8859-1""></input>" & vbNewLine & _
" <input type=""hidden"" name=""cof"" value=""GALT:#339933;GL:1;DIV:#663333;VLC:FF6666;AH:center;BGC:FFFFFF;LBGC:FFFFFF;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;LH:67;LW:193;L:http://www.YOURSITE.com/YOURLOGO.gif;S:http://www.YOURSITE.com;LP:1;FORID:1;""></input>" & vbNewLine & _
" <input type=""hidden"" name=""hl"" value=""en""></input>" & vbNewLine & _
" </td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" </table>" & vbNewLine & _
" </form>" & vbNewLine
%>end if %>
<!--#INCLUDE FILE="inc_google_search.asp"-->
<%
'########### start google ads
if not(Instr(Request.ServerVariables("Path_Info"), "default.asp") > 0) and _
not(Instr(Request.ServerVariables("Path_Info"), "active.asp") > 0) and _
not(Instr(Request.ServerVariables("Path_Info"), "forum.asp") > 0) and _
not(Instr(Request.ServerVariables("Path_Info"), "topic.asp") > 0) then
GoogleAdOK=FALSE
else
GoogleAdOK=TRUE
end if
if GoogleAdOK=TRUE then
%>
<!--#INCLUDE FILE="inc_google_adunit.asp" -->
<%
end if
'########### end google ads
Originally posted by Webbo<
ps, I've just altered the code in my inc_footer.asp file to that written by member Corinaw and it certainly is a nice alteration![]()
Corinaw's code:Code:'########### start google ads
if not(Instr(Request.ServerVariables("Path_Info"), "default.asp") > 0) and _
not(Instr(Request.ServerVariables("Path_Info"), "active.asp") > 0) and _
not(Instr(Request.ServerVariables("Path_Info"), "forum.asp") > 0) and _
not(Instr(Request.ServerVariables("Path_Info"), "topic.asp") > 0) then
GoogleAdOK=FALSE
else
GoogleAdOK=TRUE
end if
if GoogleAdOK=TRUE then
%>
<!--#INCLUDE FILE="inc_google_adunit.asp" -->
<%
end if
'########### end google ads
<%
Response.Write " </td>" & vbNewLine & _
" </tr>" & vbNewLine & _
"</table>" & vbNewLine & _
"<table width="""" align=""center"" border=""0"" bgcolor=""" & strForumCellColor & """ cellpadding=""0"" cellspacing=""1"">" & vbNewLine
if not(Instr(Request.ServerVariables("Path_Info"), "default.asp") > 0) and _
not(Instr(Request.ServerVariables("Path_Info"), "active.asp") > 0) and _
not(Instr(Request.ServerVariables("Path_Info"), "forum.asp") > 0) and _
not(Instr(Request.ServerVariables("Path_Info"), "classdetail.asp") > 0) and _
not(Instr(Request.ServerVariables("Path_Info"), "classifieds.asp") > 0) and _
not(Instr(Request.ServerVariables("Path_Info"), "classViewAds.asp") > 0) and _
not(Instr(Request.ServerVariables("Path_Info"), "classViewads.asp") > 0) and _
not(Instr(Request.ServerVariables("Path_Info"), "classDetail.asp") > 0) and _
not(Instr(Request.ServerVariables("Path_Info"), "topic.asp") > 0) then
GoogleAdOK=FALSE
else
GoogleAdOK=TRUE
end if
if GoogleAdOK=TRUE then
%><script type="text/javascript"><!--
google_ad_client = "pub-51916800000";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
google_ad_channel ="";
google_color_border = "A8DDA0";
google_color_bg = "EBFFED";
google_color_link = "0000CC";
google_color_url = "008000";
google_color_text = "6F6F6F";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>