عمل مربع يوضع به الاعلانات بدل وضعها فى اماكن مختلفه واضافة اداة اسماء المعلقين الاكثر تعليقا

نشاهد في كثير من المواقع التي تكثر فيها الاعلانات بان الاعلان يتغير كلما قمت بتحديث الصفحة هل تعلم كيف تفعل ذلك الان لم نعد بحاجة الى وضع الكثير من الاعلانات بالصفحة هو مربع واحد يكفى ليعرض به 8 اعلانات مختلفة واكثر وبنفس المساحة التي يأخذها ذلك صاحب الاربع اعلانات الشهير في المدونات العربية لشكل افضل 



من لوحة التحكم اختار- التخطيط - عناصر الصفحة - اضافة اداة - html/java ومن ثم انسخ الكود التالي

<div align="center">
<table border="0"  cellpadding="2" cellspacing="6" width="265" bgcolor="#ffffff">
<tbody><tr>
<td><center>
<!--  BANNER#1  -->
<script language="JavaScript">
images = new Array(2);
images[0] = "<a href = 'رابط الاعلان' rel='nofollow' ><img src='رابط الصورة' border='0' height='125' width='125' alt='وصف الاعلان'></a>";
images[1] = "<a href = 'رابط الاعلان' rel='nofollow' ><img src='رابط الصورة' border='0' height='125' width='125' alt='وصف الاعلان'></a>";
index = Math.floor(Math.random() * images.length);
document.write(images[index]);
</script>
</center></td>
<td><center>
<!--  BANNER#2  -->
<script language="JavaScript">
images = new Array(2);
images[0] = "<a href = 'رابط الاعلان' rel='nofollow' ><img src='رابط الصورة' border='0' height='125' width='125' alt='وصف الاعلان'></a>";
images[1] = "<a href = 'رابط الاعلان' rel='nofollow' ><img src='رابط الصورة' border='0' height='125' width='125' alt='وصف الاعلان'></a>";
index = Math.floor(Math.random() * images.length);
document.write(images[index]);
</script>
</center></td>
</tr>
<tr>
<td><center>
<!--  BANNER#3  -->
<script language="JavaScript">
images = new Array(2);
images[0] = "<a href = 'رابط الاعلان' rel='nofollow' ><img src='رابط الصورة' border='0' height='125' width='125' alt='وصف الاعلان'></a>";
images[1] = "<a href = 'رابط الاعلان' rel='nofollow' ><img src='رابط الصورة' border='0' height='125' width='125' alt='وصف الاعلان'></a>";
index = Math.floor(Math.random() * images.length);
document.write(images[index]);
</script>
</center></td>
<td><center>
<!--  BANNER#4  -->
<script language="JavaScript">
images = new Array(2);
images[0] = "<a href = 'رابط الاعلان' rel='nofollow' ><img src='رابط الصورة' border='0' height='125' width='125' alt='وصف الاعلان'></a>";
images[1] = "<a href = 'رابط الاعلان' rel='nofollow' ><img src='رابط الصورة' border='0' height='125' width='125' alt='وصف الاعلان'></a>";
index = Math.floor(Math.random() * images.length);
document.write(images[index]);
</script>
</td></center>
</tr>
</tbody></table>
<table border="0" bordercolor="#0084ce" cellpadding="2" cellspacing="6" width="265" bgcolor="#ffffff">
<tbody>
<tr><td><center><a href="رابط الاعلان" rel="nofollow"><img width="265" height="37" border="0" alt="اعلن الان!" src="" /></a></center></td></tr>
</tbody></table>
</div>

الصق الكود وقم بتعديل الاتى

رابط الاعلان : عنوان url للاعلان المستهدف

رابط الصورة : البانر الخاص بالاعلان 125*125

وصف الاعلان : اكتب اي شيء عن الاعلان

bgcolor="#ffffff" لون الحدود والخلفية خلف البانر

 واخيرا وليس اخرا احفظ القالب
--------------------------------

اضافة اداة اسماء المعلقين الاكثر تعليقا


اداة متميزة للمدون لانها تعمل على تشجيع الزوار للتعليق على المواضيع على بلوجر وهذه الاداه تساعد المدون على اكتشاف من هم الزوار الاكثر تعليقا ومن جهة اخرى فهي تعمل على الاعلان عن مدونات الزوار بشكل غير مباشر وذلك عن طريق الدخول الى حسابهم الخاص بهم, ومشاهدة قائمة مدوناتهم وهى اداة مميزة وموجودة فى جميع المدونات




من لوحة التحكم - التخطيط - اضافة اداة - html - ثم اضف الكود التالي


<script type='text/javascript'>
function pipeCallback(obj) {
document.write('<ol>');
var i;
for (i = 0; i < obj.count ; i++)
{
var href = "'" + obj.value.items[i].link + "'";
if(obj.value.items[i].link == "")
var item ="<li>" + obj.value.items[i].title + "</li>";
else
var item = "<li>" + "<a href=" + href + ">" + obj.value.items[i].title + "</a> </li>";
document.write(item);
}
document.write('</ol>');
}
</script>
<script type="text/javascript" src="http://pipes.yahoo.com/pipes/pipe.run?_render=json&_callback=pipeCallback&_id=31f03b26b13cc52ee46575b89095299a&url=ضع رابط مدونتك هنا&num=10&filter=adi"></script>

تخصيص الكود
ضع رابط مدونتك مكان العبارة في الكود
- num=10 عدد اسماء المعلقين التى تريد ضهورها

احفظ الاداة

ليست هناك تعليقات :

إرسال تعليق