<% '******************************************************************************* ' Get Ads HTML from Recipe2 database ' To get the ad you need to provide the Page name where the ad will be placed ' and also the ad location number. Now in this particular location you can ' have multiple banner ads. It will display one ad banner at a time. ' So first insert the banner ad information in the database, then place the HTML code ' in the proper place and specify the page name and location id (which you had entered ' in the database. '******************************************************************************* Function AdRotator(PageFileName, adLocation) Dim rs, sql, count, i, AdHTML, MyRandNo, cnnString cnnString = Application("Angithi_ConnectionString") sql = "SELECT * FROM Ad WHERE Status='ON'" & _ " AND PageFileName = '" & PageFileName & "'" & _ " AND adLocation = '" & adLocation & "'" set rs = server.CreateObject("ADODB.recordset") rs.Open sql, cnnString, 3 count = rs.Recordcount 'Response.write sql 'Response.write count 'response.end Randomize MyRandNo = Int((count * Rnd) + 1) 'Response.write MyRandNo i = 0 Do while i <> MyRandNo and not rs.eof AdHTML = rs("AdHTML") i = i + 1 rs.movenext Loop rs.close Set rs = Nothing AdRotator = AdHTML End Function %>
<%=AdRotator("banner.htm", "TOP")%>
Recipes Reference Guide and Help Section My Angithi Section Angithi Classified Section

Search
Search

Sweet Dessert

Most Of Meat

Lentil

East Meets West

Splendid Soup

All About Eggs

Rice With Spice

Tasty Prawn

Favorite Savories

Chicken Choice

Fish Fare

Desi Chinese

Pickles, Spicy Spices & Savvy Sauce

Delicious Kabobs

Wheat Wonders

Vegetable Varieties

<%=AdRotator("footer.htm", "BOTTOMCENTER")%> <%=AdRotator("footer.htm", "BOTTOMRIGHT")%>

Home | Recipe | Cook Tips | My Angithi | Angithi? | Feedback | Advertise

Send Feedback to webmaster@angithi.com. Site Last Updated : 03/22/04 : Site designed by Shantanu Nag @ DeepInto.com

: Copyright © Angithi.com, 2002. All rights reserved. See Policy, Disclaimer, New features