Neler yeni
Türkiye'nin En Güncel Forum Sitesi

Forum içeriğine ve tüm hizmetlerimize erişim sağlamak için foruma kayıt olmalı yada giriş yapmalısınız. Forum üye olmak tamamen ücretsizdir.

Yeni tasarı (ing)

ByOnur58

Kayıtlı Üye
MFC Üyesi
  • Üyelik Tarihi
    7 Ocak 2015
  • Mesajlar
    2,113
  • MFC Puanı
    10
  • MFC Seviyesi

Kod:
<!-- TWO STEPS TO INSTALL NEW TO YOU:

  1.  Copy the coding into the HEAD of your HTML ********
  2.  Add the last code into the BODY of your HTML ********  -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML ********  -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
now = new Date
expireDate = new Date
expireDate.setMonth(expireDate.getMonth()+6)
lastVisit = new Date(cookieVal("pageVisit"))
********.cookie = "pageVisit="+now+";expires=" + expireDate.toGMTString()

function cookieVal(cookieName) {
  thisCookie = ********.cookie.split("; ")
    for (i=0; i<thisCookie.length; i++) {
      if (cookieName == thisCookie[i].split("=")[0]) {
        return thisCookie[i].split("=")[1]
      }
    }
  return "1 January 1970"
}

function newCheck(yyy,mm,dd) {
  lastChgd = new Date(yyy,mm-1,dd)
  if (lastChgd.getTime() > lastVisit.getTime()) {
    ********.write("<img src=''/img/new-to-you/new.gif'' alt=''new''>")
  }
}
//  End -->

</script>


</HEAD>


<!-- STEP TWO: Copy this code into the BODY of your HTML ********  -->


<BODY>

<p>
<script type="text/javascript" language="JavaScript"> newCheck(2005,2,11)</script> Be sure to check out our new scripts!
<br>
<script type="text/javascript" language="JavaScript"> newCheck(2005,2,3)</script> Have you seen our Tutorials?
</p>

<!-- Also remember to save the new.gif image to your server.
     Right click the link below and select "Save Image As..."

     http://javascript.internet.com/img/new-to-you/new.gif  -->



<p><center>

<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>

by <a href="http://javascriptsource.com">The JavaScript Source</a></font>

</center><p>



<!-- Script Size:  1.59 KB -->
 
Üst Alt