Değişen Yazı? - Google Fan Webmaster Forum
Google Fan Webmaster Forum  
herşeyi sana yazdım

Geri git   Google Fan Webmaster Forum > Webmaster Genel > Webmaster Genel konular sorunlar
KEY
Kayıt ol Articles Sosyal Gruplar Forumları Okundu Kabul Et

Webmaster Genel konular sorunlar Webmaster genel konular sorular sorunlar

Cevapla
 
LinkBack Seçenekler
  1  
Alt 12-01-2010, 21:28:36
 
Standart Değişen Yazı?

Meraba arkadaşlar aradım bi türlü bulamadım..

Sitemde belirlediğim cümleleri otomatik olarak değişmesini istiyorum fakat kodu bulamadım...

Örnek 5 tane belirlediğim cümle 5 saniye ara ile değişecek otomatik olarak...
__________________
Msn/Mail: gonzi@gonzi.org
Alıntı ile Cevapla
  2  
Alt 12-01-2010, 22:05:06
 
Standart

Kod1 Sayfa yeniledikce

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
var a = Math.random() + ""
var rand1 = a.charAt(5)
quotes = new Array
quotes[1] = "1. yazi"
quotes[2] = "2. yazi"
quotes[3] = "3. yazi"
quotes[4] = "4. yazi"
quotes[5] = "5. yazi"
quotes[6] = "6. yazi"
quotes[7] = "7. yazi"
quotes[8] = "8. yazi"
quotes[9] = "9. yazi"
quotes[0] = "10. yazi"
var quote = quotes[rand1]
document.write(quote);
// End -->
</SCRIPT>



Kod 2 Normal degisen

<script language="JavaScript">
var speed = 10
var pause = 3000
var timerID = null
var bannerRunning = false
var ar = new Array()

ar[0] = " ....::: yazı 1 :::...."
ar[1] = " ....::: yazı 2 ...:::...."
ar[2] = " ....::: yazı 3 :::...."
ar[3] = " ....:::yazı 4 :::...."
ar[4] = " ....::: yazı 5 :::...."
ar[5] = " ....::: yazı 6 :::...."

var message = 0

var state = ""

clearState()

function stopBanner() {
// if banner is currently running
if (bannerRunning)
// stop the banner
clearTimeout(timerID)
// timer is now stopped
timerRunning = false
}

// start the banner
function startBanner() {
// make sure the banner is stopped
stopBanner()
// start the banner from the current position
showBanner()
}

// assign state a string of "0" characters of the length of the current message
function clearState() {
// initialize to empty string
state = ""
// create string of same length containing 0 digits
for (var i = 0; i < ar[message].length; ++i) {
state += "0"
}
}

// display the current message
function showBanner() {
// if the current message is done
if (getString()) {
// increment message
message++
// if new message is out of range wrap around to first message
if (ar.length <= message)
message = 0
// new message is first displayed as empty string
clearState()
// display next character after pause milliseconds
timerID = setTimeout("showBanner()", pause)
}
else {
// initialize to empty string
var str = ""
// built string to be displayed (only character selected thus far are displayed)
for (var j = 0; j < state.length; ++j) {
str += (state.charAt(j) == "1") ? ar[message].charAt(j) : " "
}
document.title = str
timerID = setTimeout("showBanner()", speed)
}
}

function getString() {
// set variable to true (it will stay true unless proven otherwise)
var full = true
// set variable to false if a free space is found in string (a not-displayed char)
for (var j = 0; j < state.length; ++j) {
// if character at index j of current message has not been placed in displayed string
if (state.charAt(j) == 0)
full = false
}
// return true immediately if no space found (avoid infinitive loop later)
if (full) return true
// search for random until free space found (braoken up via break statement)
while (1) {
// a random number (between 0 and state.length - 1 == message.length - 1)
var num = getRandom(ar[message].length)
// if free space found break infinitive loop
if (state.charAt(num) == "0")
break
}
// replace the 0 character with 1 character at place found
state = state.substring(0, num) + "1" + state.substring(num + 1, state.length)
// return false because the string was not full (free space was found)
return false
}

function getRandom(max) {
// create instance of current date
var now = new Date()
// create a random number (good generator)
var num = now.getTime() * now.getSeconds() * Math.random()
// cut random number to value between 0 and max - 1, inclusive
return num % max
}
startBanner()
// -->
</script>


Kod 3 Durmadan Degisiyor

<script language="JavaScript">

<!--- hide script from old browsers
var CurrentMsg = 'hello ';
function update(msg) {
var pad_str="";
n = msg.length;
if(n<72) {
pad = (73-n)/2;
for(var i=0; i<pad; i++) {
pad_str+=" ";
}
}
CurrentMsg = pad_str + msg;
document.messages.field.value = CurrentMsg; clearTimeout(timer);
timer = setTimeout("idleMsg()",1500);
}

function MakeArray(n) {
this.length=n;
for(var i = 1; i<= n; i++) {
this[i] = "";
}
return(this);
}
var index = 1;
var notice_num = 9;
var notices = new MakeArray(notice_num);
notices[1] = "ilk Mesajınızı Buraya...";
notices[2] = "2.sini ise buraya";
notices[3] = "www.candostum.com u da";
notices[4] = "Ziyaret edin ";
notices[5] = "100lerce script";
notices[6] = "ve herhafta güncellenen";
notices[7] = "Büyük bir arşiv için ";
notices[8] = "www.candostum.com";
var timer = setTimeout('idleMsg()',1500);

function nochange() {
document.messages.field.value = CurrentMsg;
}

function idleMsg() {
update(notices[index++]);
if(index>notice_num) {
index=1;
}
}

// end hiding from old browsers-->

</script>

<CENTER>
<form name="messages" onSubmit="return false">
<input type="text" name="field" size=73 value="MERHABA" onFocus="self.status='This is a JavaScript information data field'; return true" onChange="nochange()">
</form>
</CENTER>
__________________

Konu RahuL tarafından (12-01-2010 Saat 22:11:13 ) değiştirilmiştir..
Alıntı ile Cevapla
  3  
Alt 12-01-2010, 22:13:12
 
Standart

Kod 4 Tikladikca degisen yazi
<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
var a = Math.random() + ""
var rand1 = a.charAt(5)
quotes = new Array
quotes[1] = "Sevebilecek gücün varsa eger, Üzülmeye katlanabilecek güç ayir kendine."
quotes[2] = "Her istedigini söyleyen kisi, istemedigi sözleri isitir."
quotes[3] = "Dream as you will live forever, live as you will die tomorrow."
quotes[4] = "Yasam belirtisinin kökeninde duygulanma vardir; duygulanmanin da temeli asktir(Freud)"
quotes[5] = "Kendini görmek için, aynadaki kendine degil, içindeki aynaya bak."
quotes[6] = "Her zaman dogrulari söyle ki, ne dedigini hatirlamak zorunda kalma."
quotes[7] = "Engeller asilmak içindir, takilmak için degil."
quotes[8] = "Aramak bulmaktan daha degerlidir, hep bir adim öndedir."
quotes[9] = "Çok dinlememiz ve az konusmamiz için, iki kulagimiz ve bir dilimiz var."
quotes[0] = "Bir seyler anlatmak istiyorsan önce bir seyler dinle."
var quote = quotes[rand1]
document.write(quote);
// End -->
</SCRIPT>
__________________
Alıntı ile Cevapla
  4  
Alt 14-01-2010, 00:35:06
 
Standart

@Raul

Usta verdiğin

Kod 2 Normal degisen

Titlede çıkıyor Sayfada çıkmıyor..

Verdiğin kod 3 te ise değişen cümlelere link verince değişmiyor aynı kalıyor...

Bun tür kodlar yokmu başka kimsede?
__________________
Msn/Mail: gonzi@gonzi.org
Alıntı ile Cevapla
Cevapla


Bookmarks

Seçenekler

Yetkileriniz
Konu Acma Yetkiniz Yok
Cevap Yazma Yetkiniz Yok
Eklenti Yükleme Yetkiniz Yok
Mesajınızı Değiştirme Yetkiniz Yok

BB code is Açık
Smileler Açık
[IMG] Kodları Açık
HTML-Kodu Kapalı
Trackbacks are Kapalı
Pingbacks are Kapalı
Refbacks are Açık



Tüm Zamanlar GMT +3 Olarak Ayarlanmış. Şuanki Zaman: 12:37:58.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

“İnsanların en hayırlısı, insanlara faydalı olandır”. H.Ş

Hosting by Radore Hosting

İçerik sağlayacı paylaşım sitelerinden biri olan R10.net WebMaster Forum Adresimizde 5651 Sayılı Kanun’un 8. Maddesine ve T.C.K’nın 125. Maddesine göre TÜM ÜYELERİMİZ yaptıkları paylaşımlardan sorumludur. R10.net hakkında yapılacak tüm hukuksal Şikayetler adresi ile iletişime geçilmesi halinde ilgili kanunlar ve yönetmelikler çerçevesinde en geç 1 (Bir) Hafta içerisinde R10.net yönetimi olarak tarafımızdan gereken işlemler yapılacak ve Avukatlarımız size dönüş yapacaktır.
ARGUS_OK

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252