• 20-10-2007, 11:37:55
    #1
    Platin üye
    Başlıkta belirttiğim gibi 24 saatte bir yazıyı değiştirebilecek bir kod lazım.
    Yardımlarınız için teşekkürler.


    Not : PHP kategorisi hata verdiği için konuyu buraya açtım.İlgili arkadaşlar taşırlarsa sevinirim.
  • 20-10-2007, 23:03:47
    #2
    Platin üye
    Buldum arkadaşlar belki işine yarayan olur
    <table border="0" width="100%" bgcolor="#E8E8E8" cellspacing="0" cellpadding="0">
    <tr><td width="100%">
    
    <script>
    <!--
    
    /*
    Tip of the day script
    By JavaScript Kit (http://javascriptkit.com)
    Over 200+ free scripts here!
    */
    
    var today_obj=new Date()
    var today_date=today_obj.getDate()
    
    var tips=new Array()
    //Configure the below variable to contain the "header" of the tip
    var tiptitle='<img src="../../tip.gif"> <b>JavaScript Tip of the day</b><br>'
    
    //Configure the below array to hold the 31 possible tips of the month
    tips[1]='Tip 1 goes here'
    tips[2]='Tip 2 goes here'
    tips[3]='Tip 3 goes here'
    tips[4]='Tip 4 goes here'
    tips[5]='Tip 5 goes here'
    tips[6]='Tip 6 goes here'
    tips[7]='Tip 7 goes here'
    tips[8]='Tip 8 goes here'
    tips[9]='Tip 9 goes here'
    tips[10]='Tip 10 goes here'
    tips[11]='Tip 11 goes here'
    tips[12]='Tip 12 goes here'
    tips[13]='Tip 13 goes here'
    tips[14]='Tip 14 goes here'
    tips[15]='Tip 15 goes here'
    tips[16]='Tip 16 goes here'
    tips[17]='Tip 17 goes here'
    tips[18]='Tip 18 goes here'
    tips[19]='Tip 19 goes here'
    tips[20]='Tip 20 goes here'
    tips[21]='Tip 21 goes here'
    tips[22]='Tip 22 goes here'
    tips[23]='Tip 23 goes here'
    tips[24]='Tip 24 goes here'
    tips[25]='Tip 25 goes here'
    tips[26]='Tip 26 goes here'
    tips[27]='Tip 27 goes here'
    tips[28]='Tip 28 goes here'
    tips[29]='Tip 29 goes here'
    tips[30]='Tip 30 goes here'
    tips[31]='Tip 31 goes here'
    
    document.write(tiptitle)
    document.write(tips[today_date])
    
    //-->
    </script>
    
    </td></tr></table>
    <p align="center"><font face="arial" size="-2">This free script provided by</font><br>
    <font face="arial, helvetica" size="-2"><a href="http://javascriptkit.com">JavaScript
    Kit</a></font></p>
  • 20-10-2007, 23:28:39
    #3
    Kimlik doğrulama veya yönetimden onay bekliyor.
    siteyi bakıma aldımda koyarım bunu sayfaya 3 gün kaldı 2 gün kaldı 1 gün kaldı gibi felan saol arkadaşım vs.vs. daha çok şeyde işime yarayacak
  • 21-10-2007, 00:24:12
    #4
    Platin üye
    Önemli değil Banada çok lazımdı uzun bir araştırmanın ardından buldum.
  • 21-10-2007, 00:28:06
    #5
    Onurss adlı üyeden alıntı: mesajı görüntüle
    Önemli değil Banada çok lazımdı uzun bir araştırmanın ardından buldum.
    bişi sorabilirmiyim simdi ben değişmesini istedigim yazıları nereye yazıcam birde kendi siteme koydugumda benm sitem ile ilgiili editlemen gereken yer varmı varsa neresi simdiden tesekkürler
  • 21-10-2007, 00:31:40
    #6
    Platin üye
    tips[1]= diyor mesela buradaki 1 ayın 1'i demek oluyor.Ona göre 31 satırı editlemeniz gerekiyor.
    "JavaScript Tip of the day" yazan kısımda başlık için..Orayıda kendinize göre değiştirebilirsiniz.
  • 21-10-2007, 00:32:27
    #7
    aşağıdakide 1haftalık, her gün değişir, basit
    .html, .php, .asp , herşeyde çalışır..

    <SCRIPT LANGUAGE="JavaScript">
    <!--
    now = new Date()
    if (now.getDay() == 5)
    document.write("buraya yazzz")
    if (now.getDay() == 6)
    document.write("buraya yazzzn")
    if (now.getDay() == 0)
    document.write("buraya yazzz")
    if (now.getDay() == 1)
    document.write("buraya yazzz")
    if (now.getDay() == 2)
    document.write("buraya yazzz")
    if (now.getDay() == 3)
    document.write("buraya yazzz")
    if (now.getDay() == 4)
    document.write("buraya yazzz")
    //-->
    </SCRIPT>
  • 21-10-2007, 00:36:47
    #8
    cron job ataması ile de bunu yapabilirsiniz.
  • 21-10-2007, 00:38:29
    #9
    Platin üye
    Cronla ugraşmak yerine bu kodlar daha basit gibi