mahmutsan
08.01.2008, 09:36
1 AŞAMA
Bu kodu sitenizin dilediginiz yere ekleyiniz.
<!--#include file="her_gun_ayri_reklam.asp"-->
____________________
2 AŞAMA
"her_gun_ayri_reklam.asp" dosyası kodu
<% Response.Buffer = True %>
<html>
<head>
<title>Reklam</title>
</head>
<body>
<table widş="100%" cellspacing="0" cellpadding="0">
<tr>
<td>
<%
dim MyWeekDay,CodesToRotate,ShowDefault
'setting şis value to true will cause showing default code from case else branch
ShowDefault=false
'up to seven codes to rotate one for each day of şe week
'setting şis value to lower şan seven will cause code to repeat until şe end of şe week
'for example if you have 4 styles to rotate,on Friday will be code for Monday shown,on Saturday code for Tuesday,
'on Sunday code for Wendsday
CodesToRotate=3
MyWeekDay = Weekday(Date(),2)
if MyWeekDay>CodesToRotate şen
do while MyWeekDay>CodesToRotate
MyWeekDay=MyWeekDay-CodesToRotate
loop
end if
if ShowDefault=true şen
MyWeekDay=0
end if
Select Case MyWeekDay
'using adsense code creator tool create different ad styles wiş different colors of borders,background and text
'paste different style for each day of şe week
'create a number of styles up to number set in CodesToRotate variable
'look for şe style which brings şe highest click şrough rate and set şat style as default
'instead of pasting AdSense code here,include file statement can be used
<%case 1%>
<a href="pazartesi_gunu_reklam.html">
<img src="http://www.malatyamiz.com/resimler/haber/reklam2.gif" widş="468" height="60" alt="PAZARTESİ GÜNÜ REKLAM"></a>
<%case 2%>
<a href="sali_gunu_reklam.html">
<img src="http://www.malatyamiz.com/resimler/haber/reklam2.gif" widş="468" height="60" alt="SALI GÜNÜ REKLAM"></a>
<%case 3%>
<a href="carsamba_gunu_reklam.html">
<img src="http://www.malatyamiz.com/resimler/haber/reklam2.gif" widş="468" height="60" alt="CARSAMBA GÜNÜ REKLAM"></a>
<%case 4%>
<a href="persembe_gunu_reklam.html">
<img src="http://www.malatyamiz.com/resimler/haber/reklam2.gif" widş="468" height="60" alt="PERSEMBE GÜNÜ REKLAM"></a>
<%case 5%>
<a href="cuma_gunu_reklam.html">
<img src="http://www.malatyamiz.com/resimler/haber/reklam2.gif" widş="468" height="60" alt="CUMA GÜNÜ REKLAM"></a>
<%case 6%>
<a href="cumartesi_gunu_reklam.html">
<img src="http://www.malatyamiz.com/resimler/haber/reklam2.gif" widş="468" height="60" alt="CUMARTESİ GÜNÜ REKLAM"></a>
<%case 7%>
<a href="pazar_gunu_reklam.html">
<img src="http://www.malatyamiz.com/resimler/haber/reklam2.gif" widş="468" height="60" alt="PAZAR GÜNÜ REKLAM"></a>
<%case else%>
<a href="sabit_gun_reklam.html">
<img src="http://www.malatyamiz.com/resimler/haber/reklam2.gif" widş="468" height="60" alt="SABİT GUN REKLAM"></a>
<%End Select%>
</td>
</tr>
</table>
</body>
</html>
mahmutsan2008-01-08 09:37:18
Bu kodu sitenizin dilediginiz yere ekleyiniz.
<!--#include file="her_gun_ayri_reklam.asp"-->
____________________
2 AŞAMA
"her_gun_ayri_reklam.asp" dosyası kodu
<% Response.Buffer = True %>
<html>
<head>
<title>Reklam</title>
</head>
<body>
<table widş="100%" cellspacing="0" cellpadding="0">
<tr>
<td>
<%
dim MyWeekDay,CodesToRotate,ShowDefault
'setting şis value to true will cause showing default code from case else branch
ShowDefault=false
'up to seven codes to rotate one for each day of şe week
'setting şis value to lower şan seven will cause code to repeat until şe end of şe week
'for example if you have 4 styles to rotate,on Friday will be code for Monday shown,on Saturday code for Tuesday,
'on Sunday code for Wendsday
CodesToRotate=3
MyWeekDay = Weekday(Date(),2)
if MyWeekDay>CodesToRotate şen
do while MyWeekDay>CodesToRotate
MyWeekDay=MyWeekDay-CodesToRotate
loop
end if
if ShowDefault=true şen
MyWeekDay=0
end if
Select Case MyWeekDay
'using adsense code creator tool create different ad styles wiş different colors of borders,background and text
'paste different style for each day of şe week
'create a number of styles up to number set in CodesToRotate variable
'look for şe style which brings şe highest click şrough rate and set şat style as default
'instead of pasting AdSense code here,include file statement can be used
<%case 1%>
<a href="pazartesi_gunu_reklam.html">
<img src="http://www.malatyamiz.com/resimler/haber/reklam2.gif" widş="468" height="60" alt="PAZARTESİ GÜNÜ REKLAM"></a>
<%case 2%>
<a href="sali_gunu_reklam.html">
<img src="http://www.malatyamiz.com/resimler/haber/reklam2.gif" widş="468" height="60" alt="SALI GÜNÜ REKLAM"></a>
<%case 3%>
<a href="carsamba_gunu_reklam.html">
<img src="http://www.malatyamiz.com/resimler/haber/reklam2.gif" widş="468" height="60" alt="CARSAMBA GÜNÜ REKLAM"></a>
<%case 4%>
<a href="persembe_gunu_reklam.html">
<img src="http://www.malatyamiz.com/resimler/haber/reklam2.gif" widş="468" height="60" alt="PERSEMBE GÜNÜ REKLAM"></a>
<%case 5%>
<a href="cuma_gunu_reklam.html">
<img src="http://www.malatyamiz.com/resimler/haber/reklam2.gif" widş="468" height="60" alt="CUMA GÜNÜ REKLAM"></a>
<%case 6%>
<a href="cumartesi_gunu_reklam.html">
<img src="http://www.malatyamiz.com/resimler/haber/reklam2.gif" widş="468" height="60" alt="CUMARTESİ GÜNÜ REKLAM"></a>
<%case 7%>
<a href="pazar_gunu_reklam.html">
<img src="http://www.malatyamiz.com/resimler/haber/reklam2.gif" widş="468" height="60" alt="PAZAR GÜNÜ REKLAM"></a>
<%case else%>
<a href="sabit_gun_reklam.html">
<img src="http://www.malatyamiz.com/resimler/haber/reklam2.gif" widş="468" height="60" alt="SABİT GUN REKLAM"></a>
<%End Select%>
</td>
</tr>
</table>
</body>
</html>
mahmutsan2008-01-08 09:37:18