edward adlı üyeden alıntı: mesajı görüntüle
Teşekkür Ederim Hocam. Birşey soracağım renge göre yazı rengi belirleye bilme imkanımız varmı acaba
Buyrun hocam;
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body id="autocolor">
<h1>Yazıı testttt</h1>
<script type="text/javascript">
(function() {
    var s = document.getElementById('autocolor').style,
        f = false,
        c1 = '#000000',
        c2 = '#ffffff';

    setInterval(function() {
        s.backgroundColor = f ? c1 : c2;
        s.color = f ? c2 : c1;
        f = !f;
    }, 500);
})();
</script>
</body>
</html>