موديل أخبار العربية والاسهم المحلية
السلام عليكم
موديل بسيط وهو عبارة عن شريط لاخبار العربية والاسهم
للامانه هذا هو الموضوع الاصلي وكانت فكرته كود يوضع في قالب الفورم هوم في المنتدى
http://www.traidnt.net/vb/showthread.php?t=1343798
لاتوجد اي اضافات او تعديل على كاتب الموضوع
الفكره باني وضعت الكود في مجلة الادفانسد وكانت النتيجه جيده :)
الطريقة
من لوحة تحكم المجله
اضافة وحدات >> قالب وحده ( Template )
ادخل عنوان الوحدة ولكن مثلا أخبار العربية والاسهم المحلية
نشيط
عنوان القالب وليكن مثلا news
اختار الاستايل
حفظ
وهذا هو الكود
كود:
<!-- Ts3h clock hack -->
<table border="1" width="100%">
<tr>
<td><font face="arial" size="2">
<table border="1" cellpadding="0" cellspacing="1" style="border-collapse: collapse" width="100%" id="table10"> <tr>
<div id="clock">Loading...</div>
<script type="text/javascript">
function refrClock()
{
var d=new Date();
var s=d.getSeconds();
var m=d.getMinutes();
var h=d.getHours();
var day=d.getDay();
var date=d.getDate();
var month=d.getMonth();
var year=d.getFullYear();
var days=new Array("الاحد","الاثنين","الثلاثاء","الاربعاء","الخميس","الجمعة","السبت");
var months=new Array("يناير","فبراير","مارس","ابريل","مايو","يونيو","يوليو","اغسطس","سبتمبر","اكتوبر","نوفمبر","ديسمبر");
var am_pm;
if (s<10) {s="0" + s}
if (m<10) {m="0" + m}
if (h>12) {h-=12;am_pm = "PM"}
else {am_pm="AM"}
if (h<10) {h="0" + h}
document.getElementById("clock").innerHTML=days[day] + " / " + date + " " + months[month] + " " + year + " / الساعة الآن " + h + ":" + m + ":" + s + " " + am_pm;
setTimeout("refrClock()",1000);
}
refrClock();
</script>
<!-- / ts3h clock hack -->
<table border="1" width="100%">
<tr>
<td><font face="arial" size="6">
<table border="1" cellpadding="0" cellspacing="1" style="border-collapse: collapse" width="100%" id="table10">
<tr>
<td width="49" style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; font-family: tahoma, arial, helvetica, verdana" bgcolor="#FFFFFF">
<font face="arial" size="6">
<span style="text-decoration: none; font-weight: 400">
<a target="_blank">
<img border="0"
src="http://www.up.7bebtte.com/9-2009/7bebtte_MS9i759D0V.jpg"
width="70" height="30" alt=""></a></span></td>
<td style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; font-family: tahoma, arial, helvetica, verdana" bgcolor="#FFFFFF">
<div width="100%"><b><span style="background-color: #FFFFFF"><script charset="utf-8" src="http://www.alarabiya.net/ara_v_ticker.html"></script>
</span></b></div>
</td>
<td width="28" style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; font-family: tahoma, arial, helvetica, verdana" bgcolor="#FFFFFF">
<span style="text-decoration: none; font-weight: 400">
<a target="_blank">
<img border="0"
src="http://www.up.7bebtte.com/9-2009/7bebtte_MS9i759D0V.jpg"
width="70" height="30" alt=""></a></span></td>
</tr>
</table>
</td>
<!-- *** ; :: *** -->
<tr>
<td align="center">
<table background="http://www.alaswaq.net/files/ticker/gcc_ticker_bg.gif" width="666" height="21" cellspacing="0" cellpadding="0"><tr><td width="666" height="21"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="646" height="21"><param name="movie" value="http://www.alaswaq.net/files/ticker/anews_ticker.swf"></param>
<param name="quality" value="high"></param><param name="wmode" value="transparent"></param><param name="flashvars" value="id=saudi_main&speed=2.5&mask=646&mycolor=0xFFFFFF"></param>
<embed src="http://www.alaswaq.net/files/ticker/anews_ticker.swf" width="646" height="21" wmode="transparent" flashvars="id=saudi_main&speed=2.5&mask=646&mycolor=0xFFFFFF" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object></td></tr></table>
</td>
</tr>
وهذا مثال
http://www.rooyl.com/vb/main.php
تحيتي لكم
رد: موديل أخبار العربية والاسهم المحلية
شـكــ وبارك الله فيك ـــرا لك ... لك مني أجمل تحية .
رد: موديل أخبار العربية والاسهم المحلية
شـكــ وبارك الله فيك ـــرا لك ... لك مني أجمل تحية .
موفق بإذن الله ... لك مني أجمل تحية .
رد: موديل أخبار العربية والاسهم المحلية
جزاك الله خيرا
بس عندى سوال
لو حبيت وضع الشريط المتحرك فقط
دون الصندوق الكبير ممكن ؟؟
رد: موديل أخبار العربية والاسهم المحلية
طيب جرب استبدال القالب وضع التالي
بامكانك المشاهدة من خلال الرابط في اول الموضوع صار الشكل افضل من السابق وبدون المربع الكبير
كود:
<font face="arial" size="2">
<table border="1" width="100%">
<tr>
<td><font face="arial" size="6">
<table border="1" cellpadding="0" cellspacing="1" style="border-collapse: collapse" width="100%" id="table10">
<tr>
<td width="49" style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; font-family: tahoma, arial, helvetica, verdana" bgcolor="#FFFFFF">
<font face="arial" size="6">
<span style="text-decoration: none; font-weight: 400">
<a target="_blank">
<img border="0"
src="http://www.rooyl.com/vb/images/3rbiah.jpg"
width="70" height="30" alt=""></a></span></td>
<td style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; font-family: tahoma, arial, helvetica, verdana" bgcolor="#FFFFFF">
<div width="100%"><b><span style="background-color: #FFFFFF"><script charset="utf-8" src="http://www.alarabiya.net/ara_v_ticker.html"></script>
</span></b></div>
</td>
<td width="28" style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; font-family: tahoma, arial, helvetica, verdana" bgcolor="#FFFFFF">
<span style="text-decoration: none; font-weight: 400">
<a target="_blank">
<img border="0"
src="http://www.rooyl.com/vb/images/3rbiah.jpg"
width="70" height="30" alt=""></a></span></td>
</tr>
</table>
</td>
<!-- *** ; :: *** -->
<tr>
<td align="center">
<table background="http://www.alaswaq.net/files/ticker/gcc_ticker_bg.gif" width="666" height="21" cellspacing="0" cellpadding="0"><tr><td width="666" height="21"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/s...rsion=6,0,29,0" width="646" height="21"><param name="movie" value="http://www.alaswaq.net/files/ticker/...r.swf"></param>
<param name="quality" value="high"></param><param name="wmode" value="transparent"></param><param name="flashvars" value="id=saudi_main&speed=2.5&mask=646&mycolor=0xFFFFFF"></param>
<embed src="http://www.alaswaq.net/files/ticker/anews_ticker.swf" width="646" height="21" wmode="transparent" flashvars="id=saudi_main&speed=2.5&mask=646&mycolor=0xFFFFFF" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object></td></tr></table>
</td>
</tr>