هل تريد التفاعل مع هذه المساهمة؟ كل ما عليك هو إنشاء حساب جديد ببضع خطوات أو تسجيل الدخول للمتابعة.

{.. أهـلاً وسهـلاً بكـے يآ زائر فـے منتدياتے الحديقة الذهبية ..}


    كود كلمه ياهو

    هلالي ودمي ازرق
    هلالي ودمي ازرق
    مشرف حديقة الأكواد والهاكات
     مشرف  حديقة الأكواد والهاكات


    عدد الرسائل : 149
    العمر : 34
    الموقع : منتديات النجوم
    الدولة : كود كلمه ياهو Soudia10
    تاريخ التسجيل : 17/06/2008

    كود كلمه ياهو Empty كود كلمه ياهو

    مُساهمة من طرف هلالي ودمي ازرق الجمعة يونيو 20, 2008 3:30 pm

    السلام عليكم

    كود كلمه ياهو عند الضقط على اي مكان

    تتحرك

    الكود

    <div align="center" id="staticBall" style="position:relative;visibility:visible">
    <img src="2.gif" height="35" width="160" alt="كرة ثابتة">
    </div>

    <div id="ball" style="visibility:hidden; position:absolute; left:100; top:10; height:34; width:34">
    <img src="2.gif" height="35" width="160" alt="كرة متحركة">
    </div>

    <script language="Javascript1.2">
    <!-- Begin
    iter = 0;
    setId = 0;
    down = true;
    up = false;
    bouncingBall = (is.VER5) ? document.getElementById("ball").style
    : (is.NS) ? document.layers["ball"]
    : document.all["ball"].style;
    stillBall = (is.VER5) ? document.getElementById("staticBall").style
    : (is.NS) ? document.layers["staticBall"] : document.all["staticBall"].style;
    winH = (is.NS) ? window.innerHeight - 55 : document.body.offsetHeight - 55;
    document.onmouseup = buttonUp;
    if (is.NS4)
    document.captureEvents(Event.MOUSEUP);
    function buttonUp(e) {
    if ( ((is.NS) ? e.which : event.button) != 1) return true;
    if (setId != 0) clearInterval(setId);
    bouncingBall.visibility="visible";
    stillBall.visibility="hidden";
    bouncingBall.left = (is.NS) ? e.pageX - 15 : event.offsetX - 15;
    bouncingBall.top = (is.NS) ? e.pageY - 15 : event.offsetY - 15;
    iter = 0;
    setId = setInterval("generateGravity()", 20);
    return true;
    }
    function generateGravity() {
    if ((parseInt(bouncingBall.top)+iter < winH) && down) {
    bouncingBall.top = parseInt(bouncingBall.top) + iter;
    iter++;
    return;
    }
    else {
    if ((parseInt(bouncingBall.top)< winH) && down) {
    bouncingBall.top = winH + 5;
    return;
    }
    down = false;
    up = true;
    if (iter < 0 && parseInt(bouncingBall.top) > winH) {
    clearInterval(setId);
    bouncingBall.visibility = "hidden";
    stillBall.visibility="visible";
    setId = 0;
    }
    if (parseInt(bouncingBall.top) > 0 && up && iter >= 0) {
    bouncingBall.top = parseInt(bouncingBall.top) - iter;
    iter--;
    if (iter%3 == 0) iter--;
    return;
    }
    down = true;
    up = false;
    }
    }
    // End -->
    </script>

      مواضيع مماثلة

      -

      الوقت/التاريخ الآن هو الإثنين مايو 20, 2024 9:09 am