Research - Scripts - cinema - lyrics - Sport - Poemes

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

عــلوم ، دين ـ قرآن ، حج ، بحوث ، دراسات أقســام علمية و ترفيهية .


    نقاط ملونة حول مؤشر الماوس

    avatar
    GODOF
    Admin
    Admin


    عدد المساهمات : 10329
    نقــــاط التمـــيز : 60756
    تاريخ التسجيل : 08/04/2009
    العمر : 32

    نقاط ملونة حول مؤشر الماوس Empty نقاط ملونة حول مؤشر الماوس

    مُساهمة من طرف GODOF الأربعاء 7 أكتوبر - 19:21

    نقاط ملونة حول مؤشر الماوس






    if (document.all){
    with (document){
    write('')
    write('
    ')
    write('
    ')
    write('
    ')
    write('
    ')
    write('
    ')
    write('
    ')
    write('
    ')
    write('
    ')
    write('
    ')
    write('
    ')
    write('
    ')
    write('
    ')
    write('
    ')
    write('
    ')
    write('
    ')
    }
    }

    if (document.layers)
    {window.captureEvents(Event.MOUSEMOVE);}
    var yBase = 200;
    var xBase = 200;
    var step = 1;
    var currStep = 0;
    var Xpos = 1;
    var Ypos = 1;

    if (document.all)
    {
    function MoveHandler(){
    Xpos = document.body.scrollLeft+event.x;
    Ypos = document.body.scrollTop+event.y;
    }
    document.onmousemove = MoveHandler;
    }

    else if (document.layers)
    {
    function xMoveHandler(evnt){
    Xpos = evnt.pageX;
    Ypos = evnt.pageY;
    }
    window.onMouseMove = xMoveHandler;
    }

    function animateLogo() {
    if (document.all)
    {
    yBase = window.document.body.offsetHeight/6;
    xBase = window.document.body.offsetWidth/6;
    }
    else if (document.layers)
    {
    yBase = window.innerHeight/8;
    xBase = window.innerWidth/8;
    }

    if (document.all)
    {
    for ( i = 0 ; i < starsDiv.all.length ; i++ )
    {
    starsDiv.all[i].style.top = Ypos + yBase*Math.sin((currStep + i*4)/12)*Math.cos(400+currStep/200);
    starsDiv.all[i].style.left = Xpos + xBase*Math.sin((currStep + i*3)/10)*Math.sin(currStep/200);
    }
    }

    else if (document.layers)
    {
    for ( j = 0 ; j < 14 ; j++ ) //number of NS layers!
    {
    var templayer="a"+j
    document.layers[templayer].top = Ypos + yBase*Math.sin((currStep + j*4)/12)*Math.cos(400+currStep/200);
    document.layers[templayer].left = Xpos + xBase*Math.sin((currStep + j*3)/10)*Math.sin(currStep/200);
    }
    }
    currStep+= step;
    setTimeout("animateLogo()", 10);
    }
    animateLogo();

















    طريقة التركيب

    انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY





















    if (document.all){
    with (document){
    write('
    ')
    write('
    ')
    write('
    ')
    write('
    ')
    write('
    ')
    write('
    ')
    write('
    ')
    write('
    ')
    write('
    ')
    write('
    ')
    write('
    ')
    write('
    ')
    write('
    ')
    write('
    ')
    write('
    ')
    write('
    ')
    }
    }

    if (document.layers)
    {window.captureEvents(Event.MOUSEMOVE);}
    var yBase = 200;
    var xBase = 200;
    var step = 1;
    var currStep = 0;
    var Xpos = 1;
    var Ypos = 1;

    if (document.all)
    {
    function MoveHandler(){
    Xpos = document.body.scrollLeft+event.x;
    Ypos = document.body.scrollTop+event.y;
    }
    document.onmousemove = MoveHandler;
    }

    else if (document.layers)
    {
    function xMoveHandler(evnt){
    Xpos = evnt.pageX;
    Ypos = evnt.pageY;
    }
    window.onMouseMove = xMoveHandler;
    }

    function animateLogo() {
    if (document.all)
    {
    yBase = window.document.body.offsetHeight/6;
    xBase = window.document.body.offsetWidth/6;
    }
    else if (document.layers)
    {
    yBase = window.innerHeight/8;
    xBase = window.innerWidth/8;
    }

    if (document.all)
    {
    for ( i = 0 ; i < starsDiv.all.length ; i++ )
    {
    starsDiv.all[i].style.top = Ypos + yBase*Math.sin((currStep + i*4)/12)*Math.cos(400+currStep/200);
    starsDiv.all[i].style.left = Xpos + xBase*Math.sin((currStep + i*3)/10)*Math.sin(currStep/200);
    }
    }

    else if (document.layers)
    {
    for ( j = 0 ; j < 14 ; j++ ) //number of NS layers!
    {
    var templayer="a"+j
    document.layers[templayer].top = Ypos + yBase*Math.sin((currStep + j*4)/12)*Math.cos(400+currStep/200);
    document.layers[templayer].left = Xpos + xBase*Math.sin((currStep + j*3)/10)*Math.sin(currStep/200);
    }
    }
    currStep+= step;
    setTimeout("animateLogo()", 10);
    }
    animateLogo();





      الوقت/التاريخ الآن هو الخميس 2 مايو - 6:46