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

الموضوع: كيفية عرض المواضيع كما في هذا الموقع

  1. #1

    كيفية عرض المواضيع كما في هذا الموقع



    السلام عليكم ...

    اخواني وانا اتصفح في الإنترنت دخلت على موقع الراسم ...ولفت انتبهاي طريقة عرضة للمواضيع في خانة ( آخر اخبار الراسم ) في موقع الراسم فحبيت اسأل وين القى مثلها ...سواء كان سكربت او جافا سكربت ...كل اللي يجي من اعضاء سوالف حلو ,,

    ولكم جزيل الشكر مقدما





    __________________
    ::. اخوكم في الله ما يعرف يوقع .::
    the developer غير متواجد حالياً


  2. #2
    عضو نشيط جدا
    تاريخ التسجيل
    Mar 2003
    المشاركات
    357


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





    __________________
    أكبر تجمع ادبي ثقافي عربي في عالم الإنترنت
    HTTP://WWW.AWRAG.COM
    Only dream غير متواجد حالياً

  3. #3
    عضو سوبر نشيط
    تاريخ التسجيل
    Nov 2003
    المشاركات
    808


    موقع الراسـم قــــادم بقـــــــــوه

    ماشاءالله عليه دخل السوق من أوسع أبوابه


    ونتمنى من الأخوان مساعدتنا فيما طلبه الأخ الكريم إبن الكرام





    __________________
    أنت تريد وأنا أريد والله يفعل مايريد
    ::<:: للفائدة ::>::
    في الوقت الذي ينظر فيه البعض للزوايا الضَيّقة المظلمة
    أنظر بشموخ للأفق الواسع النير
    بوعابد غير متواجد حالياً

  4. #4


    ..... افا والله ما توقعت ها الشي من اعضاء سوالف ...

    وين ......... الجواب الشافي لسؤولي :anger1:

    في امان الله





    __________________
    ::. اخوكم في الله ما يعرف يوقع .::
    the developer غير متواجد حالياً

  5. #5


    تراني ما فقدت الأمل ......... لكن راح افقده اذا ماحد رد علي ها المرة .

    تكفي يا جماعة تفاعلوا معاي:anger2:





    __________________
    ::. اخوكم في الله ما يعرف يوقع .::
    the developer غير متواجد حالياً

  6. #6
    عضو جديد
    تاريخ التسجيل
    Oct 2003
    المشاركات
    23


    كل المستخدم اكواد جافا سكربت وطريقة الاستخدام

    الاخبار
    كود PHP:
    <script type="text/javascript">



    //configure the below five variables to change the style of the scroller
    var scrollerdelay='5000' //delay between msg scrolls. 3000=3 seconds.
    var scrollerwidth='100%'
    var scrollerheight='105px'
    var scrollerbgcolor='#ffffff'
    //set below to '' if you don't wish to use a background image
    var scrollerbackground='#ffffff'

    //configure the below variable to change the contents of the scroller
    var messages=new Array()
    messages[0]="<font face='Ms sans serif'><font size='1'><align='justify'><a target='_blank' href='http://LINK0'>title0<br></a>message hamdan0</font>"
    messages[1]="<font face='Ms sans serif'><font size='1'><align='justify'><a target='_blank' href='http://LINK1'>title1<br></a>message hamdan1</font>"
    messages[2]="<font face='Ms sans serif'><font size='1'><align='justify'><a target='_blank' href='http://LINK2'>title2<br></a>message hamdan2</font>"

    ///////Do not edit pass this line///////////////////////

    var ie=document.all
    var dom=document.getElementById

    if (messages.length>2)
    i=2
    else
    i=0

    function move1(whichlayer){
    tlayer=eval(whichlayer)
    if (
    tlayer.top>0&&tlayer.top<=5){
    tlayer.top=0
    setTimeout
    ("move1(tlayer)",scrollerdelay)
    setTimeout("move2(document.main.document.second)",scrollerdelay)
    return
    }
    if (
    tlayer.top>=tlayer.document.height*-1){
    tlayer.top-=5
    setTimeout
    ("move1(tlayer)",50)
    }
    else{
    tlayer.top=parseInt(scrollerheight)
    tlayer.document.write(messages[i])
    tlayer.document.close()
    if (
    i==messages.length-1)
    i=0
    else
    i++
    }
    }

    function 
    move2(whichlayer){
    tlayer2=eval(whichlayer)
    if (
    tlayer2.top>0&&tlayer2.top<=5){
    tlayer2.top=0
    setTimeout
    ("move2(tlayer2)",scrollerdelay)
    setTimeout("move1(document.main.document.first)",scrollerdelay)
    return
    }
    if (
    tlayer2.top>=tlayer2.document.height*-1){
    tlayer2.top-=5
    setTimeout
    ("move2(tlayer2)",50)
    }
    else{
    tlayer2.top=parseInt(scrollerheight)
    tlayer2.document.write(messages[i])
    tlayer2.document.close()
    if (
    i==messages.length-1)
    i=0
    else
    i++
    }
    }

    function 
    move3(whichdiv){
    tdiv=eval(whichdiv)
    if (
    parseInt(tdiv.style.top)>0&&parseInt(tdiv.style.top)<=5){
    tdiv.style.top=0+"px"
    setTimeout("move3(tdiv)",scrollerdelay)
    setTimeout("move4(second2_obj)",scrollerdelay)
    return
    }
    if (
    parseInt(tdiv.style.top)>=tdiv.offsetHeight*-1){
    tdiv.style.top=parseInt(tdiv.style.top)-5+"px"
    setTimeout("move3(tdiv)",50)
    }
    else{
    tdiv.style.top=parseInt(scrollerheight)
    tdiv.innerHTML=messages[i]
    if (
    i==messages.length-1)
    i=0
    else
    i++
    }
    }

    function 
    move4(whichdiv){
    tdiv2=eval(whichdiv)
    if (
    parseInt(tdiv2.style.top)>0&&parseInt(tdiv2.style.top)<=5){
    tdiv2.style.top=0+"px"
    setTimeout("move4(tdiv2)",scrollerdelay)
    setTimeout("move3(first2_obj)",scrollerdelay)
    return
    }
    if (
    parseInt(tdiv2.style.top)>=tdiv2.offsetHeight*-1){
    tdiv2.style.top=parseInt(tdiv2.style.top)-5+"px"
    setTimeout("move4(second2_obj)",50)
    }
    else{
    tdiv2.style.top=parseInt(scrollerheight)
    tdiv2.innerHTML=messages[i]
    if (
    i==messages.length-1)
    i=0
    else
    i++
    }
    }

    function 
    startscroll(){
    if (
    ie||dom){
    first2_obj=iefirst2 document.getElementById("first2")
    second2_obj=iesecond2 document.getElementById("second2")
    move3(first2_obj)
    second2_obj.style.top=scrollerheight
    second2_obj
    .style.visibility='visible'
    }
    else if (
    document.layers){
    document.main.visibility='show'
    move1(document.main.document.first)
    document.main.document.second.top=parseInt(scrollerheight)+5
    document
    .main.document.second.visibility='show'
    }
    }

    window.onload=startscroll

                          </script>


    <ilayer id="main" width=&{scrollerwidth}; height=&{scrollerheight}; bgColor=&{scrollerbgcolor}; background=&{scrollerbackground}; visibility=hide>
    <layer id="first" left=0 top=1 width=&{scrollerwidth};>
    <script language="JavaScript1.2">
    if (document.layers)
    document.write(messages[0])
    </script>
    </layer>
    <layer id="second" left=0 top=0 width=&{scrollerwidth}; visibility=hide>
    <script language="JavaScript1.2">
    if (document.layers)
    document.write(messages[dyndetermine=(messages.length==1)? 0 : 1])
    </script>
    </layer>
    </ilayer>

    <script language="JavaScript1.2">
    if (ie||dom){
    document.writeln('<div id="main2" style="position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';overflow:hidden;background-color:'+scrollerbgcolor+' ;background-image:url('+scrollerbackground+')">')
    document.writeln('<div style="position:absolute;width:'+scrollerwidth+';height:'+scrollerheight+';clip:rect(0 '+scrollerwidth+' '+scrollerheight+' 0);left:0px;top:0px">')
    document.writeln('<div id="first2" style="position:absolute;width:'+scrollerwidth+';left:0px;top:1px;">')
    document.write(messages[0])
    document.writeln('</div>')
    document.writeln('<div id="second2" style="position:absolute;width:'+scrollerwidth+';left:0px;top:0px;visibility:hidden">')
    document.write(messages[dyndetermine=(messages.length==1)? 0 : 1])
    document.writeln('</div>')
    document.writeln('</div>')
    document.writeln('</div>')
    }
                          </script> 

    اما الكود الثاني ليس فلاش مجرد كود جافا مع xml
    اولا ضع بين وسمي هيدر الكود التالي:
    كود PHP:
    <xml:namespace ns="urn:schemas-microsoft-com:vml" prefix="v"/>
    <
    style type="text/css">
    v\:* { behaviorurl(#default#VML); }
    </style

    ثم ضع الكود التالي في اي مكان تريده
    لتخرج لك الرسالة الترحيبية وغير مايلزم

    كود PHP:
     <script type="text/javascript">



    // Add as many messages as you like
    var message=new Array("Sawlif""Hamdan Al Hamdan""NewarabsComTeam")

    // Set the outline-color. Add as many colors as you like
    var outlinecolor=new Array("black""black")

    // Set fillcolors 1. Add as many colors as you like
    var fillcolor1=new Array("gray""green""white""green")

    // Set fillcolors 2. Add as many colors as you like
    var fillcolor2=new Array("blue""olive""black""lime")

    // Set the letter marking the circle
    var circlemark=new Array("-")

    // Set the width of the outline
    var strkweight=2

    // Set the waiting time between the messages (seconds)
    var pause=2

    // Set the strength of the opacity (transparency of letters)
    var strengthopacity="60%"

    // Set the size of the circle (values range from 0.1 to 1)
    var circlesize=0.5

    // Always keep messages in view even if page is scrolled? (DD added option)
    var keepinview="yes"

    // Do not edit below this line

    mytruebody=(!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement document.body //Dynamicdrive added object

    var outerwidth=mytruebody.clientWidth
    var outerheight=mytruebody.clientHeight

    var innerwidth=Math.floor(circlesize*outerwidth)
    var 
    innerheight=Math.floor(circlesize*outerheight)

    var 
    posleft=(outerwidth-innerwidth)/2
    var postop=(outerheight-innerheight)/2

    var path=new Array()
    var 
    i_message=0
    var i_outlinecolor=0
    var i_fillcolor1=0
    var i_fillcolor2=0
    var i_messagelength=0
    var longestmessage=0
    pause
    *=1000

    var ie=document.getElementById&&document.all?1:

    for (i=0;i<=message.length-1;i++) {
        if (
    message[i].length>longestmessage) {
            
    longestmessage=message[i].length
        
    }
        
    longestmessage+=4
    }

    for (
    i=0;i<=message.length-1;i++) {

        var 
    emptyspace=""
        
    var i_emptyspace=(longestmessage-message[i].length)/2
        
    for (ii=0;ii<=i_emptyspace;ii++) {
            
    emptyspace+=circlemark
        
    }
        
    message[i]=emptyspace+" "+message[i]+" "+emptyspace
    }

    function 
    changeform() {
        if (
    keepinview=="yes"//DD added
        
    document.getElementById("roofid").style.top=mytruebody.scrollTop //DD added
        
    if (i_outlinecolor >= outlinecolor.length) {i_outlinecolor=0}
        if (
    i_fillcolor1 >= fillcolor1.length) {i_fillcolor1=0}
        if (
    i_fillcolor2 >= fillcolor2.length) {i_fillcolor2=0}
        
    document.getElementById('strokeid').color=outlinecolor[i_outlinecolor]
        
    document.getElementById('fillid').color=fillcolor1[i_fillcolor1]
        
    document.getElementById('fillid').color2=fillcolor2[i_fillcolor2]
        if (
    i_message message.length) {tick()}
        else {
    document.getElementById('textpathid').string=""
        
    document.getElementById("roofid").style.display="none" //DD added
        
    }
    }

    function 
    tick() {
        if (
    i_messagelength <= message[i_message].length) {
            var 
    messagestringend=""
            
    var messagestring=message[i_message].substring(0i_messagelength)+messagestringend
            document
    .getElementById('textpathid').string=messagestring
            
    var timer=setTimeout("tick()",50)
            
    i_messagelength++
        }
        else {
            
    clearTimeout(timer)
            
    i_messagelength=0
            i_message
    ++
            
    i_outlinecolor++    
            
    i_fillcolor1++    
            
    i_fillcolor2++    
            var 
    timer=setTimeout("changeform()",pause)
        }
        
    }

    if (
    ie) {
        
    document.write('<div id="roofid" style="position:absolute;left:0px;top:0px;width:'+outerwidth+'px;height:'+outerheight+'px;overflow:hidden;">')
        
    document.write('<v:oval id="tc" style="position:absolute;top:'+postop+'px;left:'+posleft+'px;width:'+innerwidth+'px;height:'+innerheight+'px">')
        
    document.write('<v:shadow on="t" opacity="'+strengthopacity+'"/>')
        
    document.write('<v:stroke id="strokeid" weight="'+strkweight+'pt" color="blue"/>')
        
    document.write('<v:fill id="fillid" on="True" color="'+fillcolor1[0]+'" color2="'+fillcolor2[0]+'" opacity="'+strengthopacity+'" opacity2="'+strengthopacity+'" type="gradient"/>')
        
    document.write('<v:path textpathok="t"/>')
        
    document.write('<v:textpath id="textpathid" on="t" id="mytp" style="font-family:\'Arial Black\'; " fitpath="t" string=""/>')
        
    document.write('</v:oval></div>')
        if (
    window.attachEvent//DD added code
        
    window.attachEvent("onload"changeform//DD added code
        
    else
        
    window.onload=changeform
    }
    </script> 






    حمدان حمدان غير متواجد حالياً

  7. #7
    عضو فعال
    تاريخ التسجيل
    Jan 2002
    المشاركات
    1,064


    السلام عيلكم

    كيف نضع اكود الترحيبي





    __________________
    يا اعدل الناس الا في معاملتي *** كيف القضاء وانت الخصم والحكم

    q8sun_net( at )msn.com
    q8sun غير متواجد حالياً

  8. #8


    اولا معليش على رفع الموضوع ... ولكن كل ما وضعت الأكواد يطلع عندي اخطاء ... ما ادري وش السبب

    انا في الإنتظار





    __________________
    ::. اخوكم في الله ما يعرف يوقع .::
    the developer غير متواجد حالياً





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

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

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