النتائج 1 إلى 12 من 12

الموضوع: كيف احصل على كود هذه الصفحة ؟

  1. #1
    عضو نشيط جدا
    تاريخ التسجيل
    Apr 2008
    المشاركات
    361

    كيف احصل على كود هذه الصفحة ؟



    السلام عليكم،

    من يساعدني للحصول على كود هذه الصفحة وله جزيل الشكر :

    http://alawsati.com/world_news.php

    ونفس الحركة على :

    http://aljazeera.net

    شكراً





    __________________
    مجلتي الصغيرة


  2. #2
    عضو نشيط
    تاريخ التسجيل
    Jul 2008
    المشاركات
    269


    تفضل

    كود:
          <html dir="rtl">
    
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
    
    <script language="JavaScript1.2">
    var ns6=document.getElementById&&!document.all
    var ie=document.all
    
    function changeto(e,highlightcolor){
    source=ie? event.srcElement : e.target
    if (source.tagName=="TR"||source.tagName=="TABLE")
    return
    while(source.tagName!="TD"&&source.tagName!="HTML")
    source=ns6? source.parentNode : source.parentElement
    if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")
    source.style.backgroundColor=highlightcolor
    }
    
    function contains_ns6(master, slave) { //check if slave is contained by master
    while (slave.parentNode)
    if ((slave = slave.parentNode) == master)
    return true;
    return false;
    }
    
    function changeback(e,originalcolor){
    if
    (ie&&(event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore")||source.tagName=="TR"||source.tagName=="TABLE")
    return
    else if (ns6&&(contains_ns6(source, e.relatedTarget)||source.id=="ignore"))
    return
    if (ie&&event.toElement!=source||ns6&&e.relatedTarget!=source)
    source.style.backgroundColor=originalcolor
    }
    
    </script>
    </head>
    
    <body>
    
    <div align="center">
    	<table border="0" cellpadding="0" style="border-collapse: collapse" width="357">
    		<tr>
    			<td colspan="3" align="center">
    			<a target="_parent" href="news.php?action=list&cat_id=43">
    			<img border="0" src="themes/rowafid_news_portal/news_frame/world.gif" width="357" height="35"></a></td>
    		</tr>
    		<tr>
    			<td width="8" align="center">
    			<img border="0" src="themes/rowafid_news_portal/news_frame/images/frame_04.gif" width="11" height="6"></td>
    			<td align="center" width="341" background="themes/rowafid_news_portal/news_frame/images/frame_03.gif">
    			<img border="0" src="themes/rowafid_news_portal/news_frame/images/frame_03.gif" width="338" height="6"></td>
    			<td width="8" align="center">
    			<img border="0" src="themes/rowafid_news_portal/news_frame/images/frame_02.gif" width="8" height="6"></td>
    		</tr>
    		<tr>
    			<td width="8" align="center" background="themes/rowafid_news_portal/news_frame/images/frame_07.gif">&nbsp;</td>
    			<td align="center" width="341" height="111" valign="top">
    			<style type="text/css">
    a {
        color: blue;
        text-decoration: none;
    }
    a:hover {
        color : red;
        text-decoration: none;
    }
    div {
        font-family: verdana;
    }
    </style>
    			<div align="center">
    				<table border="0" cellpadding="0" style="border-collapse: collapse" width="100%">
    					<tr>
    						<td width="150" align="center" valign="top">
    						<p align="center"></p>
    						<div id="a" style="display: none;">
    							<p dir="rtl">
    							<table border=0 width=98%>	<table border="0" cellpadding="0" style="border-collapse: collapse" width="145" height="110">
    		<tr>
    			<td>
    			<p align="center"><a target="_parent" href="news_view_30034.html">
    			<img border="0" src="filemanager.php?action=image&id=29148" width="150" height="122"></a></td>
    		</tr>
    
    </table>
    </p>
    						</div>
    						<div id="b" style="display: none;">
    							<p dir="rtl">
    							<table border=0 width=98%>	<table border="0" cellpadding="0" style="border-collapse: collapse" width="145" height="110">
    		<tr>
    			<td>
    			<p align="center"><a target="_parent" href="news_view_30033.html">
    			<img border="0" src="filemanager.php?action=image&id=29147" width="150" height="122"></a></td>
    		</tr>
    
    </table>
    </p>
    						</div>
    						<div id="c" style="display: none;">
    							<p dir="rtl">
    							<table border=0 width=98%>	<table border="0" cellpadding="0" style="border-collapse: collapse" width="145" height="110">
    		<tr>
    			<td>
    			<p align="center"><a target="_parent" href="news_view_30032.html">
    			<img border="0" src="filemanager.php?action=image&id=29146" width="150" height="122"></a></td>
    		</tr>
    
    </table>
    </p>
    						</div>
    						</td>
    						<td align="right">
    						<div align="center">
    							<table border="1" cellpadding="0" style="border-collapse: collapse" width="100%" id="table1" bordercolor="#9DAABF" onmouseover="changeto(event, '2e3b60')" onmouseout="changeback(event, '728cb7')">
    								<tr>
    									<style type="text/css">
    a {
        color: blue;
        text-decoration: none;
    }
    a:hover {
        color : red;
        text-decoration: none;
    }
    div {
        font-family: verdana;
    }
    </style>
    									<script language="javascript">
    var speed="1"; 
    var i=1;
    function showNews() {
    if (i==1){show(a,b,c);i=0}
    }
    
    function show(a,b,c) {
    a.style.display = '';
    b.style.display = 'none';
    c.style.display = 'none';
    }
    setInterval("showNews()", speed*2000);
    </script>
    									<td bgcolor="#728cb7" align="center" width="100%" height="40">
    									<p dir="rtl">
    									<a href="javascript:void(0)" onmousemove="javascript:show(a,b,c)">
    									<font color="#000000">
    									<table border=0 width=98%><div align="center">
    	<table border="0" cellpadding="0" style="border-collapse: collapse" width="96%">
    		<tr>
    			<td id="ignore">
    			<font face="Tahoma" style="font-size: 9pt" color="#FFFFFF">
    			<a target="_parent" href="news_view_30034.html"><font color="#FFFFFF">إيران تعمل على صنع جيل جديد من صواريخ &quot;سجيل&quot;</font></a></font></td>
    		</tr>
    </div>
    </table>
    
    									</font></a></p>
    									</td>
    								</tr>
    								<tr>
    									<td bgcolor="#728cb7" align="center" width="100%" height="40">
    									<p dir="rtl">
    									<a href="javascript:void(0)" onmousemove="javascript:show(b,c,a)">
    									<font color="#000000">
    									<table border=0 width=98%><div align="center">
    	<table border="0" cellpadding="0" style="border-collapse: collapse" width="96%" >
    		<tr>
    			<td id="ignore">
    			<font face="Tahoma" style="font-size: 9pt" color="#FFFFFF">
    			<a target="_parent" href="news_view_30033.html"><font color="#FFFFFF">رئيس اللجنة الدولية لحقوق الانسان يدعو الى وضع حد لانته ...</font></a></font></td>
    		</tr>
    </div>
    </table>
    
    									</font></a></p>
    									</td>
    								</tr>
    								<tr>
    									<td bgcolor="#728cb7" align="center" width="100%" height="40">
    									<p dir="rtl">
    									<a href="javascript:void(0)" onmousemove="javascript:show(c,a,b)">
    									<font color="#000000">
    									<table border=0 width=98%><div align="center">
    	<table border="0" cellpadding="0" style="border-collapse: collapse" width="96%" >
    		<tr>
    			<td id="ignore">
    			<font face="Tahoma" style="font-size: 9pt" color="#FFFFFF">
    			<a target="_parent" href="news_view_30032.html"><font color="#FFFFFF">مدفيديف ولوكاشينكو شاهدا المرحلة الختامية للمناورات &qu ...</font></a></font></td>
    		</tr>
    </div>
    </table>
    
    									</font></a></p>
    									</td>
    								</tr>
    							</table>
    						</div>
    						</td>
    					</tr>
    				</table>
    			</div>
    			</td>
    			<td width="8" align="center" background="themes/rowafid_news_portal/news_frame/images/frame_05.gif">&nbsp;</td>
    		</tr>
    		<tr>
    			<td width="357" align="center" colspan="3" background="themes/rowafid_news_portal/news_frame/images/frame_08.gif">
    			<img border="0" src="themes/rowafid_news_portal/bait/images/spacer.gif" width="1" height="6"></td>
    		</tr>
    		<tr>
    			<td width="357" align="center" colspan="3" background="themes/rowafid_news_portal/news_frame/images/frame_08.gif">
    			<div align="center">
    				<table border="0" cellpadding="0" style="border-collapse: collapse" width="340">
    					<tr>
    						<td>
    						<table border=0 width=98%><div align="center">
    	<table border="0" cellpadding="2" style="border-collapse: collapse" width="100%">
    		<tr>
    			<td width="16">
    			<img border="0" src="themes/new_rowafid/images/bulet.gif" width="9" height="10"></td>
    			<td>
    			<p align="right"><font size="2" face="Tahoma" color="#9E0C0C">
    			<a target="_parent" href="news_view_30027.html"><font color="#9E0C0C">روغوزين: روسيا قد تتعامل مع الناتو بشأن اق ...</font></a></font></td>
    		</tr>
    </div>
    <div align="center">
    	<table border="0" cellpadding="2" style="border-collapse: collapse" width="100%">
    		<tr>
    			<td width="16">
    			<img border="0" src="themes/new_rowafid/images/bulet.gif" width="9" height="10"></td>
    			<td>
    			<p align="right"><font size="2" face="Tahoma" color="#9E0C0C">
    			<a target="_parent" href="news_view_30022.html"><font color="#9E0C0C">عشرات القتلى والجرحى في اشتباكات بالعاصمة  ...</font></a></font></td>
    		</tr>
    </div>
    <div align="center">
    	<table border="0" cellpadding="2" style="border-collapse: collapse" width="100%">
    		<tr>
    			<td width="16">
    			<img border="0" src="themes/new_rowafid/images/bulet.gif" width="9" height="10"></td>
    			<td>
    			<p align="right"><font size="2" face="Tahoma" color="#9E0C0C">
    			<a target="_parent" href="news_view_30008.html"><font color="#9E0C0C">مصرع 30 مدنيا اثر انفجار عبوة ناسفة جنوب ا ...</font></a></font></td>
    		</tr>
    </div>
    <div align="center">
    	<table border="0" cellpadding="2" style="border-collapse: collapse" width="100%">
    		<tr>
    			<td width="16">
    			<img border="0" src="themes/new_rowafid/images/bulet.gif" width="9" height="10"></td>
    			<td>
    			<p align="right"><font size="2" face="Tahoma" color="#9E0C0C">
    			<a target="_parent" href="news_view_30007.html"><font color="#9E0C0C">راسموسن: خطة الرئيس اوباما في التخلي عن ال ...</font></a></font></td>
    		</tr>
    </div>
    </table>
    </td>
    					</tr>
    				</table>
    			</div>
    			</td>
    		</tr>
    		<tr>
    			<td width="8" align="center">
    			<img border="0" src="themes/rowafid_news_portal/news_frame/images/frame_11.gif" width="11" height="12"></td>
    			<td align="center" width="341" background="themes/rowafid_news_portal/news_frame/images/frame_10.gif">
    			<img border="0" src="themes/rowafid_news_portal/news_frame/images/frame_10.gif" width="338" height="12"></td>
    			<td width="8" align="center">
    			<img border="0" src="themes/rowafid_news_portal/news_frame/images/frame_09.gif" width="8" height="12"></td>
    		</tr>
    	</table>
    </div>
    
    </body>
    
    </body>
    
    </html></tr></table></div>







  3. #3
    عضو نشيط جدا
    تاريخ التسجيل
    Apr 2008
    المشاركات
    361


    شكرا لك أخي ابو فيصل.

    ولكن الم تلاحظ في آخر الملف وجود السطور التالية :


    كود PHP:
    </body>
     
    </
    body>
     
    </
    html></tr></table></div

    التي بها اخطاء كما علمها لدي برنامج التحرير ؟

    فلن الصحيح فيها هو هذه السطور :


    كود PHP:
    </body>
    </
    html

    ولكن تصحيح هاته السطور سوف يخرب الملف بالكامل ...

    هذا لا اتمكن من الكود الذي يشتغل عندي !!!!!

    فما الحل ؟





    التعديل الأخير تم بواسطة apitos ; 30-09-2009 الساعة 06:21 PM
    __________________
    مجلتي الصغيرة

  4. #4
    عضو نشيط جدا
    تاريخ التسجيل
    Apr 2008
    المشاركات
    361


    عمتم صباحاً.

    هل منكم من وجد ملف الـ PHP المسؤول عن انتاج الكود سورس اعلاه ؟





    __________________
    مجلتي الصغيرة

  5. #5
    عضو نشيط جدا
    تاريخ التسجيل
    Apr 2008
    المشاركات
    361


    يا جماعة الخير،

    كيف استفيد من الكود مع تصحيح الأخطاء التي لمحت لها فوق ؟





    __________________
    مجلتي الصغيرة

  6. #6
    عضو فعال جدا
    تاريخ التسجيل
    Sep 2007
    المشاركات
    2,065


    هل منكم من وجد ملف الـ PHP المسؤول عن انتاج الكود سورس اعلاه ؟
    كيف تريد سحب ملف PHP ؟؟

    وضح بالضبط المشاكل التى واجهتك ؟؟؟؟؟؟






  7. #7
    عضو نشيط جدا
    تاريخ التسجيل
    Apr 2008
    المشاركات
    361


    أهلا أخي khashabawy

    1 - اذا وضعت كود html في محرر اكواد مثل Microsoft Expression Web2 سيشير لك البرنامج الى اخطاء وجب تصحيحها، مثل الاخطاء التي اشرت اليها فوق.

    ولكن تصحيح هذه الاخطاء في بناء الصفحة يخرب الصفحة بالكامل.

    2 - اريد الحصول على ملف php التي انتج كود الـ html لهذه الصفحة وهو ملف world_news.php بحيث يجب ادخال استعلامات الـ SQl في حلقة while لعدم تكرار مقاطع من الكود المكررة.

    أرجو ان يكون اتضح الامر ولو قليلاً.

    شكراً.





    __________________
    مجلتي الصغيرة

  8. #8
    عضو نشيط جدا
    تاريخ التسجيل
    Apr 2008
    المشاركات
    361


    أهلا أخي khashabawy

    1 - اذا وضعت كود html في محرر اكواد مثل Microsoft Expression Web2 سيشير لك البرنامج الى اخطاء وجب تصحيحها، مثل الاخطاء التي اشرت اليها فوق.

    ولكن تصحيح هذه الاخطاء في بناء الصفحة يخرب الصفحة بالكامل.

    2 - اريد الحصول على ملف php التي انتج كود الـ html لهذه الصفحة وهو ملف world_news.php بحيث يجب ادخال استعلامات الـ SQl في حلقة while لعدم تكرار مقاطع من الكود المكررة.

    أرجو ان يكون اتضح الامر ولو قليلاً.

    شكراً.





    __________________
    مجلتي الصغيرة

  9. #9


    لا يمكنك الحصول علي صفحة php من موقع اخر
    هذا امر مستحيل ولو كان ممكن لكانت كارثة !!





    __________________
    السيف أصدق أنباء من الكتب

  10. #10
    عضو نشيط جدا
    تاريخ التسجيل
    Apr 2008
    المشاركات
    361


    لا اقصد الحصول عليه من المتصفح بدل كود الـ html.

    ولكن اطلب مساعدة من اخواني لتقريب الفكرة للحصول عليه نهائيا ما دام ان السكريبت المستعمل في الموقع اعلاه هو للمجلة العربية من برمجة رفيع العتيبي.

    ولكن اريد تصحيح اخطاء الـ html ورصد الكود المتكرر في الصفحة الناتجة لوضعه في حلقة while المستعملة في لغة php لانتاج خلايا الجداول المتشابهة الحاوية لمختلف سطور الاخبار المستوردة من قاعدة البيانات.





    التعديل الأخير تم بواسطة apitos ; 14-10-2009 الساعة 02:30 PM
    __________________
    مجلتي الصغيرة

  11. #11
    عضو نشيط جدا
    تاريخ التسجيل
    Apr 2008
    المشاركات
    361


    الرجاء تعديل وتصحيح الكود اعلاه.شكراً.





    __________________
    مجلتي الصغيرة

  12. #12
    عضو نشيط جدا
    تاريخ التسجيل
    Apr 2008
    المشاركات
    361


    لماذا ليست هناك مساعدة ؟





    __________________
    مجلتي الصغيرة





ضوابط المشاركة

  • لا تستطيع إضافة مواضيع جديدة
  • لا تستطيع الرد على المواضيع
  • لا تستطيع إرفاق ملفات
  • لا تستطيع تعديل مشاركاتك
  •  

أضف موقعك هنا| اخبار السيارات | حراج | شقق للايجار في الكويت | بيوت للبيع في الكويت | دليل الكويت العقاري | مقروء | شركة كشف تسربات المياه | شركة عزل اسطح بالرياض | عزل فوم بالرياض| عزل اسطح بالرياض | كشف تسربات المياة بالرياض | شركة عزل اسطح بالرياض