Excel Forum

Excel Forum (http://www.excel.web.tr/index.php)
-   JavaScript (http://www.excel.web.tr/forumdisplay.php?f=75)
-   -   JavaScript örneği (http://www.excel.web.tr/showthread.php?t=55860)

Haluk 10-09-2008 10:49

JavaScript örneği
 
JavaScript ile ilgili bir örnek ....

Kod:

<html>
<title>ExcelWebTr</title>
<head>

    <meta http-equiv=Content-Type content="text/html; charset=Windows-1254">
    <meta http-equiv="refresh" content="5">   
   
    <script type="text/javascript">
    <!--
        function Liste()
        {
        var i=0;
        var j;
        var max = 5;
        if(threads.length < max)
        max = threads.length;
        document.write("<tr><td height=25 width='400'><center><b>Konu</center></b></td><td width='300'><center><b>Gönderen</center></b></td>")
        for(i = 0; i < max; i++)
        {
        j=i+1
        if (threads[i].title.length > 40)
        { threads[i].title = threads[i].title.substring(0, 40) + '...'; }
        document.write("<tr><td> <b>"+j+" ) "+"<a href=\"http://www.excel.web.tr/showthread.php?threadid="+threads[i].threadid+"\">"+threads[i].title+ "    "+ "</td><td><i><font size = '2' color='#009999'> ( " + threads[i].poster+ "  " + threads[i].threaddate + " ~ " + threads[i].threadtime + " )</font></i><br ></td>" );
        }
        }
    //-->
    </script>


</head>

<body bgcolor=lightyellow><font face="century">
    <img src="http://www.excel.web.tr/images/misc/vbulletin3_logo_white.gif" align="middle"><font size="6">&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<u>ExcelWebTr - Son Açılan Başlıklar</font></u>
    <center><b>Haluk ®</b></center>
    <br>
    <br><b><font size = "4" color="#000000">Makrolar - Son 5 Yeni Başlık :</font></b><br>
    <table border="2">
    <script type="text/javascript" src="http://www.excel.web.tr/external.php?type=js&amp;forumids=48"></script>
    <script type="text/javascript">
        Liste()
    </script>
    </table>
    <br>
    <br>

    <b><font size = "4" color="#000000">Fonksiyonlar - Son 5 Yeni Başlık :</font></b><br>
    <table border="2">
    <script type="text/javascript" src="http://www.excel.web.tr/external.php?type=js&amp;forumids=47"></script>
    <script type="text/javascript">
        Liste()
    </script>
    </table>
    <br>
    <br>

    <b><font size = "4" color="#000000">Diğer Excel Soruları - Son 5 Yeni Başlık :</font></b><br>
    <table border="2">
    <script type="text/javascript" src="http://www.excel.web.tr/external.php?type=js&amp;forumids=50"></script>
    <script type="text/javascript">
        Liste()
    </script>
    </table>
    <br>
    <br>

    <b><font size = "4" color="#000000">Access Soruları - Son 5 Yeni Başlık :</font></b><br>
    <table border="2">
    <script type="text/javascript" src="http://www.excel.web.tr/external.php?type=js&amp;forumids=57"></script>
    <script type="text/javascript">
        Liste()
    </script>
    </table>
</body>
</html>


Recep İpek 10-09-2008 11:16

Hocam yine başarılı bir iş çıkarmışsınız.Ellerinize ve bilginize sağlık.

Peki her 5 dk.bir kendi kendine Reflesh (F5) yapabilirmiyiz.

Haluk 10-09-2008 11:36

Recep bey;

5 dakikada bir sayfa kendini yenileyecek şekilde yukarıdaki kodlar revize edildi.

.

Recep İpek 10-09-2008 11:49

Teşekkürler.


Saat 03:11

Powered by vBulletin Version 3.7.2
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.