سلاماین از دمو کد
توی دمو برای زیبا تر شدن بکگراند گذاشتم و فونت رو b yekan انتخاب کردم ولی توی کد اصلی این طوری نیست و می تونی هرجا و با هر فونت استفاده کنید
اول این کدو توی head قالب بذارید:
<style>.Tads1 {
display : table;
background : #c0cedf;
width : 260px;
height : auto;
padding : 2px;
margin : 0;
margin-bottom : 10px;
text-align : right;
color : #333;
-webkit-transition : all 0.5s ease-in-out;-moz-transition : all 0.5s ease-in-out;-o-transition : all 0.5s ease-in-out;
}
.Tads2 {
display : table;
background : #cad79f;
width : 260px;
height : auto;
padding : 2px;
margin : 0;
margin-bottom : 10px;
text-align : right;
color : #333;
-webkit-transition : all 0.5s ease-in-out;-moz-transition : all 0.5s ease-in-out;-o-transition : all 0.5s ease-in-out;
}
.Tads3 {
display : table;
background : #e0c59f;
width : 260px;
height : auto;
padding : 2px;
margin : 0;
margin-bottom : 10px;
text-align : right;
color : #333;
-webkit-transition : all 0.5s ease-in-out;-moz-transition : all 0.5s ease-in-out;-o-transition : all 0.5s ease-in-out;
}
.Tright {
text-align : left;
float : left;
margin : 3px;
}
:hover.Tads1 {
background : #00449b;
color : #fff;
text-shadow : #333 1px 1px 0;
border-radius : 20px 0;
}
:hover.Tads2 {
background : #6e9000;
color : #fff;
text-shadow : #333 1px 1px 0;
border-radius : 20px 0;
}
:hover.Tads3 {
background : #f38f00;
color : #fff;
text-shadow : #333 1px 1px 0;
border-radius : 20px 0;
}
</style>
بعدش این کدو جایی که می خواهید نمایش داده بشه بذارید :
<a class="Tads1" target="_blank" href="/page/ads"> <b>تبلیغات شما</b><br /> تبلیغات شما در این مکان, ماهانه 1.000 تومان<br/>
<span class="Tright">YourSite.Com</span> </a> <a class="Tads2" target="_blank" href="/page/ads"> <b>تبلیغات شما</b><br />
تبلیغات شما در این مکان, ماهانه 1.000 تومان<br/>
<span class="Tright">YourSite.Com</span> </a> <a class="Tads3" target="_blank" href="/page/ads"> <b>تبلیغات شما</b><br />
تبلیغات شما در این مکان, ماهانه 1.000 تومان<br/>
<span class="Tright">YourSite.Com</span> </a> </div>
</div>
جالبه بران آخه...