• 23-09-2010, 21:00:04
    #1
    Merhaba arkadaşlar
    Elimde ajax tabanlı bir manşet sistemi var(forumda var.).
    İndirdim çok denedim bi türlü yapamadım. Kodları aşağıya koyuyorum yardım edebilirmisiniz.

    <SCRIPT language=javascript>
                var CurrentHotScreen = 0 ;
                function setHotQueryList(screen){
                    var Vmotion = "forward" ;
                    var MaxScreen = 7 ;
                    if (screen >= MaxScreen) {
                        screen = 0 ;
                        Vmotion = "reverse" ;
                    }
                    cleanallstyle();
                    document.getElementById("focus_"+screen).className = "up" ;
                  
                  if(null!=hot_query_td.filters){
                    hot_query_td.filters[0].apply();
                    hot_query_td.filters[0].motion = Vmotion;
                  }
                  for (i=0;i<MaxScreen;i++) {
                    document.getElementById("switch_"+i).style.display = "none" ;
                  }
                  document.getElementById("switch_"+screen).style.display = "block" ;
                  if(null!=hot_query_td.filters){
                    hot_query_td.filters[0].play();
                  }
                    CurrentHotScreen = screen ;
                }
                function refreshHotQuery(){
                    refreshHotQueryTimer = null;
                    setHotQueryList(CurrentHotScreen+1);
                    refreshHotQueryTimer = setTimeout('refreshHotQuery();', 5000);
                }
        </SCRIPT>
        
        
    <DIV class=newsMain>
    <DIV class=topNewsBox>
    <DIV class=topNews>
    <DIV class=topNewsPic>
    <TABLE>
      <TBODY>
      <TR>
        <TD id=HotSearchList 
        style="FILTER: progid:DXImageTransform.Microsoft.GradientWipe(GradientSize=0.25,wipestyle=0,motion=forward)">
    
          <DIV id=switch_0><A onclick=setClick(); 
          href="http://www.pcgazete.com/" 
          blockid="931" target="_blank"><IMG alt="Haber Resim 2" 
          src="images/01.jpg"></A></DIV>
          <DIV id=switch_1><A onclick=setClick(); 
          href="http://www.pcgazete.com/" 
          blockid="931" target="_blank"><IMG alt="Haber Resim 2" 
          src="images/02.jpg"></A></DIV>
          <DIV id=switch_2><A onclick=setClick(); 
          href="http://www.pcgazete.com/" 
          blockid="931" target="_blank"><IMG alt="Haber Resim 3" 
          src="images/03.jpg"></A></DIV>
          <DIV id=switch_3><A onclick=setClick(); 
          href="http://www.pcgazete.com/" 
          blockid="931" target="_blank"><IMG alt="Haber Resim 4" 
          src="images/04.jpg"></A></DIV>
          <DIV id=switch_4><A onclick=setClick(); 
          href="http://www.pcgazete.com/" 
          blockid="931" target="_blank"><IMG alt="Haber Resim 5" 
          src="images/05.jpg"></A></DIV>
          <DIV id=switch_5><A onclick=setClick(); 
          href="http://www.pcgazete.com/" 
          blockid="931" target="_blank"><IMG alt="Haber Resim 6" 
          src="images/06.jpg"></A></DIV>
          <DIV id=switch_6><A onclick=setClick(); 
      href="http://www.pcgazete.com/" target="_blank"
      blockid="931"><IMG alt="Haber Resim 7" 
          src="images/07.jpg"></A></DIV></TD></TR></TBODY></TABLE></DIV>
    <DIV class=topNewsList>
    <img src="images/jrjd.jpg" width="253" height="25" />
    <UL>
      <LI><A class=up id=focus_0 onmouseover=show_focus_image(0); 
      title="Haber Başlık 1" onclick=setClick(); 
      href="http://www.pcgazete.com/" target="_blank"
      blockid="931">Haber Başlık 1</A> </LI>
      <LI><A id=focus_1 onmouseover=show_focus_image(1); title="Haber Başlık 2" 
      onclick=setClick(); 
      href="http://www.pcgazete.com/" target="_blank"
      blockid="931">Haber Başlık 2</A> </LI>
      <LI><A id=focus_2 onmouseover=show_focus_image(2); title="Haber Başlık 3"
      onclick=setClick(); 
      href="http://www.pcgazete.com/" target="_blank"
      blockid="931">Haber Başlık 3</A> </LI>
      <LI><A id=focus_3 onmouseover=show_focus_image(3); title="Haber Başlık 4" 
      onclick=setClick(); 
      href="http://www.pcgazete.com/" target="_blank"
      blockid="931">Haber Başlık 4</A> </LI>
      <LI><A id=focus_4 onmouseover=show_focus_image(4); title="Haber Başlık 5" 
      onclick=setClick(); 
      href="http://www.pcgazete.com/" target="_blank"
      blockid="931">Haber Başlık 5</A> </LI>
      <LI><A id=focus_5 onmouseover=show_focus_image(5); title="Haber Başlık 6" 
      onclick=setClick(); 
      href="http://www.pcgazete.com/" target="_blank"
      blockid="931">Haber Başlık 6</A> </LI>
      <LI><A id=focus_6 onmouseover=show_focus_image(6); title="Haber Başlık 7" 
      onclick=setClick(); 
      href="http://www.pcgazete.com/" target="_blank"
      blockid="931">Haber Başlık 7</A> </LI></UL></DIV></DIV>
    <DIV class=topNewsBg></DIV></DIV>
    <SCRIPT>
                
                function cleanallstyle() {
                    for (i=0;i<7;i++) {
                        document.getElementById("focus_"+i).className = "" ;
                    }
                }
                function show_focus_image(index) {
                    clearTimeout(refreshHotQueryTimer);
                    setHotQueryList(index);
                    refreshHotQueryTimer = setTimeout('refreshHotQuery();', 5000);
                }
                function setClick() {
                    clearTimeout(refreshHotQueryTimer);
                }
              var refreshHotQueryTimer = null ;
              var hot_query_td =  document.getElementById('HotSearchList');
              setHotQueryList(CurrentHotScreen);
              refreshHotQueryTimer = setTimeout('refreshHotQuery();', 5000);
    
                </SCRIPT></DIV>
  • 23-09-2010, 22:08:17
    #2
    Merhabalar!!
    Sorun ney hata mı veriyor ;resimler mi çıkmıyor?
    Eğer hata veriyorsa hangi satırda ve ne tür bir hata?
    Bizim hatayı görebileceğimiz bir demo sayfası var mı?Bunlar olmadan yardımcı olmak zorlaşıyor.