|
<%
'*******************************************************************************
' 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
%>
|
||||||||||||||||||||||||||||||||||
Privacy Statement for Angithi.comAngithi.com has created this privacy statement in order to demonstrate our firm commitment to privacy. The following discloses the information gathering and dissemination practices for this Web site: Angithi.com Information Automatically LoggedWe use your IP address to help diagnose problems with our server and to administer our Web site. This information is used for improving the site design, performance tuning and navigation structure so that we can provide a wonderful experience at angithi.com. CookiesOur Site uses cookies to deliver content specific to your interests. We also use cookies for other purposes. Cookies are used to store
1. Recipe information when adding a new recipe. AdvertisersWe use an outside ad company to display ads on our site. These ads may contain cookies. While we use cookies in other parts of our Web site, cookies received with banner ads are collected by our ad company, and we do not have access to this information. Registration FormsOur site's registration form requires users to give us contact information (like their name and email) Contact information from the registration forms is used for other purposes. This information is used for personalization of the website and for sending newsletters and sometimes promotions emails. We do not sell email addresses to other company. External LinksThis site contains links to other sites. Angithi.com is not responsible for the privacy practices or the content of such Web sites. Public ForumsThis site makes feedbacks, and ratings available to its users. Please remember that any information that is disclosed in these areas becomes public information and you should exercise caution when deciding to disclose your personal information. SecurityThis site has security measures in place to protect the loss, misuse, and alteration of the information under our control. Choice/Opt-OutOur site provides users the opportunity to opt-out of receiving promotional/marketing information from our partners .
Data Quality/AccessThis site gives users the following options for changing and modifying information previously provided:
Contacting the Web Site
If you have any questions about this privacy statement, the practices of this site, or your dealings with this Web site, you can contact:
|
||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||