الساحر Admin
عدد الرسائل : 662 العمر : 39 الموقع : https://elsa7er.own0.com تاريخ التسجيل : 14/01/2008
بطاقة الشخصية العب: (1/1)
| موضوع: هاك الترحييب بالاعضاء فى اسفل البار بطريقه جميله وجديده الثلاثاء أبريل 08, 2008 9:18 am | |
| هاك الترحييب بالاعضاء فى اسفل البار بطريقه جميله وجديده
الاكواد توضع فى اخر الهيدر
واليكم الاكوادكود PHP: condition="$bbuserinfo[userid] != 0"> ******** ********="**********"> var speed = 10 var pause = 1500 var timerID = null var bannerRunning = false var ar = new Array() ar[0] = " مرحبا بك يا ][][ $bbuserinfo[username] ][][ " ar[1] = " ...][][ www.yallarab.com ][][... " ar[2] = " ][][ منتديات يلا عرب ][][ " ar[3] = " ][][ بريدك $bbuserinfo[email] ][][ " ar[4] = " ][][ آخر زيارة لك كانت في $pmbox[lastvisitdate] ][][ " ar[5]=" .... ][][ يوجد لديك $bbuserinfo[pmunread] رسالة خاصة غير مقروءة ][][" 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 } function startBanner() { // make sure the banner is stopped stopBanner() // start the banner from the current position showBanner() } 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" } } function showBanner() { if (getString()) { message++ if (ar.length <= message) message = 0 clearState() timerID = setTimeout("showBanner()", pause) } else { var str = "][][ $bbuserinfo[username] ][][" for (var j = 0; j < state.length; ++j) { str += (state.charAt(j) == "1") ? ar[message].charAt(j) : " " } window.status = str timerID = setTimeout("showBanner()", speed) } } function getString() { var full = true 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() // --> < | |
|