اطلاعیه

Collapse
No announcement yet.

اخبار رونده

Collapse
X
 
  • Filter
  • زمان
  • Show
Clear All
new posts

  • اخبار رونده

    سایت http://www.itiran.com رو که دیدید بالای سایت اخبار این صفحه http://www.itiran.com//ticker.php نمایش داده میشه از ادمینش سورس صفحه رو خواستم که تو سایتم استفاده کنم اما جوابی نداد حالا اگه من بخوام این اخبار رو به همین صورت که تو آی تی ایران قرار دادن (بصورت رد شونده و متحرک تو یه کادر کوچک بالای سایت) تو سایتم بگذارم باید چیکار کنم؟

  • #2
    نوشته اصلی توسط bigidol
    سایت http://www.itiran.com رو که دیدید بالای سایت اخبار این صفحه http://www.itiran.com//ticker.php نمایش داده میشه از ادمینش سورس صفحه رو خواستم که تو سایتم استفاده کنم اما جوابی نداد حالا اگه من بخوام این اخبار رو به همین صورت که تو آی تی ایران قرار دادن (بصورت رد شونده و متحرک تو یه کادر کوچک بالای سایت) تو سایتم بگذارم باید چیکار کنم؟
    کد PHP:
    ****** LANGUAGE=jav a Scrip t>
    <!--
    var 
    theItemCount;
    var 
    theCurrentStory;
    var 
    theCurrentLength;
    var 
    theStorySummary;
    var 
    theTargetLink;
    var 
    theCharacterTimeout;
    var 
    theStoryTimeout;
    var 
    theBrowserVersion;
    var 
    theWidgetOne;
    var 
    theWidgetTwo;
    var 
    theSpaceFiller;
    var 
    theLeadString;
    var 
    theStoryState;
    var 
    theBrowserAgent;
    var 
    isIE;
    theBrowserAgent navigator.userAgent.toLowerCase();
    theBrowserVersion parseInt(navigator.appVersion);
    isIE = ((theBrowserAgent.indexOf("msie") != -1) && (theBrowserAgent.indexOf("opera") == -1));
     
    if (
    theBrowserVersion || ! isIE)
    {
     
    }
    function 
    startTicker()
    {
    theBrowserAgent navigator.userAgent.toLowerCase();
    theBrowserVersion parseInt(navigator.appVersion);
    isIE = ((theBrowserAgent.indexOf("msie") != -1) && (theBrowserAgent.indexOf("opera") == -1));
    if (
    theBrowserVersion || ! isIE)
    {
     
    return;
    }
    if(!
    document.body.children.incoming.children.properties)
    {
     
    }
    theCharacterTimeout 50;
    theStoryTimeout 5000;
    theWidgetOne "_";
    theWidgetTwo "-";
    theStoryState 1;
    theItemCount document.body.children.incoming.children.properties.children.itemcount.innerText;
    theCurrentStory = -1;
    theCurrentLength 0;
    theLeadString "&nbsp;";
    theSpaceFiller "<BR><BR><BR>";
    runTheTicker();
    }
    function 
    runTheTicker()
    {
    if(
    theStoryState == 1)
    {
    setupNextStory();
    }
     
    if(
    theCurrentLength != theStorySummary.length)
    {
    drawStory();
    }
    else
    {
    closeOutStory();
    }
    }
    function 
    setupNextStory()
    {
    theStoryState 0;
     
    theCurrentStory++;
     
    theCurrentStory theCurrentStory theItemCount;
     
    theStorySummary document.body.children.incoming.children.stories.children[theCurrentStory].children.Summary.innerText;
     
    theTargetLink document.body.children.incoming.children.stories.children[theCurrentStory].children.SiteLink.innerText;
     
    if(
    theTargetLink == "")
    {
    theTargetLink document.body.children.incoming.children.stories.children[theCurrentStory].children.UrlLink.innerText;
    }
     
    if(
    theTargetLink == "/default.stm") {
    theTargetLink top.location;
    }
     
    theCurrentLength 0;
     
    document.all.hottext.href theTargetLink;
    }
    function 
    drawStory()
    {
    var 
    myWidget;
     
    if((
    theCurrentLength 2) == 1)
    {
    myWidget theWidgetOne;
    }
    else
    {
    myWidget theWidgetTwo;
    }
    document.all.hottext.innerHTML theLeadString theStorySummary.substring(0,theCurrentLength) + myWidget theSpaceFiller;
    theCurrentLength++;
    setTimeout("runTheTicker()"theCharacterTimeout);
    }
    function 
    closeOutStory()
    {
    document.all.hottext.innerHTML theLeadString theStorySummary theSpaceFiller;
    theStoryState 1;
    setTimeout("runTheTicker()"theStoryTimeout);
    }
    //-->
    </******>
    </HEAD>
     
     
    <BODY BGCOLOR="#FFFFFF" onLoad="startTicker();" dir="rtl">
    ... 
    اگر هم واسه نشون دادن data هاي سايت خودت ميخواي data هايي كه ميخواي نشون داده بشه رو از DB با php بگير و با اين كد جاوا ست ش كن
    Last edited by V1T4L; 03-20-2007, 04:48 PM.
    ......

    به سلامتي شبگرد ...

    Comment


    • #3
      يه راه خيلي ساده:

      کد PHP:
      include "http://www.itiran.com/ticker.php"
      sigpic

      Error: Interrupted system call

      SABA 3.0 - The most flexible forum management system ever

      Comment


      • #4
        نوشته اصلی توسط reza.exe
        يه راه خيلي ساده:

        کد PHP:
        include "http://www.itiran.com/ticker.php"
        دقيقا

        اما تو بالايي شما رو پارامترهاي سرعت و ...
        ......

        به سلامتي شبگرد ...

        Comment


        • #5
          براي داشتن نوشته هاي متحرك از دستور ساده ي html هم ميتوني استفاده كني عزيز :
          کد:
          <marquee direction=right onmouseover=this.stop() onmouseout=this.start() >salam</marquee>
          جت حركت هم تو direction ميتوني تغيير بدي ديگه...left,up,down,right

          Comment


          • #6
            جوينده يابندست
            من دقيقا اينو مي خواستم

            http://www.khormooj.com/pic/rss1.php

            ++++++++++++++++++++++++++++++++++++++++++

            <iframe
            src ="http://www.khormooj.com/pic/rss1.php" height ="30%" width="100%" frameborder="0" scrolling = "no">
            </iframe>
            Last edited by ; 03-28-2007, 11:27 PM.

            Comment


            • #7
              نوشته اصلی توسط bigidol
              جوينده يابندست
              من دقيقا اينو مي خواستم

              http://www.khormooj.com/pic/rss1.php

              ++++++++++++++++++++++++++++++++++++++++++

              <iframe
              src ="http://www.khormooj.com/pic/rss1.php" height ="30%" width="100%" frameborder="0" scrolling = "no">
              </iframe>
              من از این تگ ایفریم تو سایتم استفاده کردم صفحه rss1.php رو وقتی سایت باز می کنم تا چند بار رفرش نکنم نشون نمیده
              از <include هم استفاده کردم صفحه رو اصلا نشون نداد

              Comment

              Working...
              X