منتديات براء أونلاين
أهلا بك أيها الزائر أو الزائرة في منتديات براء أونلاين

نرجو منكم التسجيل والأنضمام الى موقنا
منتديات براء أونلاين
أهلا بك أيها الزائر أو الزائرة في منتديات براء أونلاين

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

منتديات براء أونلاين

 
الرئيسيةالبوابةأحدث الصورالتسجيلدخول

 

 نص يومض في أسفل الصفحة

اذهب الى الأسفل 
كاتب الموضوعرسالة
البراء جرجنازي
الأوسمة
الأوسمة
البراء جرجنازي


الأدارة وسام الأدارة
عدد المساهمات : 1910
نقاط : 5528
تاريخ التسجيل : 01/10/2010
العمر : 21
الموقع : حلب

نص يومض في أسفل الصفحة Empty
مُساهمةموضوع: نص يومض في أسفل الصفحة   نص يومض في أسفل الصفحة I_icon_minitimeالخميس سبتمبر 01, 2011 4:44 pm


نص يومض في أسفل الصفحة







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


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

<script>

/*
Always-on-top message Script-
Dynamic Drive (www.dynamicdrive.com)
// Visit http://www.star28.com/ for more code
// Translated By http://www.star28.com/
*/

// ضع النص الذي تريده و يمكنك التعديل في أكواد HTML
var message='<b><font face=Arial color=000000 size=5>ضع النص هنا</font></b>';

// ضع لون الخلفية الأول
var backgroundcolor="yellow";

//enter 0 for always display, 1 for a set period, 2 for random display mode
var displaymode=0;

//if displaymode is set to display for a set period, enter the period below (1000=1 sec)
var displayduration=10000;

// اذا أردت أن لا يومض النص غير القيمة الى 0
var flashmode=1;
// ضع لون الخلفية الآخر
var flashtocolor="LIME";


///////////////do not edit below this line////////////////////////////////////////

function regenerate(){
window.location.reload();
}

var which=0;

function regenerate2(){
if (document.layers)
setTimeout("window.onresize=regenerate",400);
}


function display2(){
if (document.layers){
if (topmsg.visibility=="show")
topmsg.visibility="hide";
else
topmsg.visibility="show";
}
else if (document.all){
if (topmsg.style.visibility=="visible")
topmsg.style.visibility="hidden";
else
topmsg.style.visibility="visible";
setTimeout("display2()",Math.round(Math.random()*10000)+10000);
}
}

function flash(){
if (which==0){
if (document.layers)
topmsg.bgColor=flashtocolor;
else
topmsg.style.backgroundColor=flashtocolor;
which=1;
}
else{
if (document.layers)
topmsg.bgColor=backgroundcolor;
else
topmsg.style.backgroundColor=backgroundcolor;
which=0;
}
}


if (document.all){
document.write('<span id="topmsg" style="position:absolute;visibility:hidden">'+message+'</span>');
}


function logoit(){
document.all.topmsg.style.left=document.body.scrollLeft+document.body.clientWidth/2-document.all.topmsg.offsetWidth/2;
document.all.topmsg.style.top=document.body.scrollTop+document.body.clientHeight-document.all.topmsg.offsetHeight-4;
}


function logoit2(){
topmsg.left=pageXOffset+window.innerWidth/2-topmsg.document.width/2;
topmsg.top=pageYOffset+window.innerHeight-topmsg.document.height-5;
setTimeout("logoit2()",90);
}

function setmessage(){
document.all.topmsg.style.left=document.body.scrollLeft+document.body.clientWidth/2-document.all.topmsg.offsetWidth/2;
document.all.topmsg.style.top=document.body.scrollTop+document.body.clientHeight-document.all.topmsg.offsetHeight-4;
document.all.topmsg.style.backgroundColor=backgroundcolor;
document.all.topmsg.style.visibility="visible";
if (displaymode==1)
setTimeout("topmsg.style.visibility='hidden'",displayduration);
else if (displaymode==2)
display2();
if (flashmode==1)
setInterval("flash()",1000);
window.onscroll=logoit;
window.onresize=new Function("window.location.reload()");
}


function setmessage2(){
topmsg=new Layer(window.innerWidth);
topmsg.bgColor=backgroundcolor;
regenerate2();
topmsg.document.write(message);
topmsg.document.close();
logoit2();
topmsg.visibility="show";
if (displaymode==1)
setTimeout("topmsg.visibility='hide'",displayduration);
else if (displaymode==2);
display2();
if (flashmode==1)
setInterval("flash()",1000);
}


if (document.layers)
window.onload=setmessage2;
else if (document.all)
window.onload=setmessage;

</script>

الرجوع الى أعلى الصفحة اذهب الى الأسفل
https://albraaonline.mam9.com/t1649-topic https://albraaonline.mam9.com
 
نص يومض في أسفل الصفحة
الرجوع الى أعلى الصفحة 
صفحة 1 من اصل 1
 مواضيع مماثلة
-
»  عمل وصف للرابط يظهر في أسفل الصفحة
» صورة تتحرك من أسفل الى أعلى الشاشة و بالعكس
» صورة تتحرك الى أعلى و أسفل الشاشة و تقف عند الضغط عليها
» صورة خارجية تتحرك من أسفل الى أعلى الشاشة تصلح كدعاية و يمكنك التحكم بحجم الصورة
» غير لون الصفحة حسب رمز اللون

صلاحيات هذا المنتدى:لاتستطيع الرد على المواضيع في هذا المنتدى
منتديات براء أونلاين :: الفئة الرئيسية :: أكواد الجافا-
انتقل الى: