بحـث
المواضيع الأخيرة
كود نافذه دعائية متحركه2015
صفحة 1 من اصل 1
كود نافذه دعائية متحركه2015
كود نافذه دعائية متحركه2015
طريقة التركيب
انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY
<SCRIPT LANGUAGE='JavaScript'><!--
/*
* Visit our site at [ندعوك للتسجيل في المنتدى أو التعريف بنفسك لمعاينة هذا الرابط] for more code
*/
var popUp = 0;
var popURL = 0;
var popWidth = 0;
var popHeight = 0;
var thisMargin = 10;
var popTopPosition = thisMargin;
var popLeftPosition = thisMargin;
var pause = 20;
var step = 10; // كل ما زودت الرقم كل ما اسرعت النافذة
var timer = 0;
var screenWidth = 0;
var screenHeight = 0;
var endX = 0;
var endY = 0;
function startPop(thisurl,thiswidth,thisheight) {
popURL = thisurl;
popWidth = thiswidth;
popHeight = thisheight;
popUp = window.open(popURL, "traveler","toolbar=no,width="+popWidth+",height="+popHeight+",top="+popTopPosition+",left="+(popLeftPosition)+"");
screenWidth = window.screen.width;
screenHeight = window.screen.height;
endX = screenWidth - thiswidth - thisMargin;
endY = screenHeight - thisheight - thisMargin;
movedown();
}
function movedown() {
if (popTopPosition <= endY - 50) {
popUp.moveTo(popLeftPosition,popTopPosition);
popTopPosition += step;
timer = setTimeout("movedown()",pause);
}
else {
clearTimeout(timer);
popTopPosition = endY - 50;
popUp.moveTo(popLeftPosition,popTopPosition);
moveright();
}
}
function moveright() {
if (popLeftPosition <= endX) {
popUp.moveTo(popLeftPosition,popTopPosition);
popLeftPosition += step;
timer = setTimeout("moveright()",pause);
}
else {
clearTimeout(timer);
popLeftPosition = endX;
popUp.moveTo(popLeftPosition,popTopPosition);
moveup();
}
}
function moveup() {
if (popTopPosition >= thisMargin) {
popUp.moveTo(popLeftPosition,popTopPosition);
popTopPosition -= step;
timer = setTimeout("moveup()",pause);
}
else {
clearTimeout(timer);
popTopPosition = thisMargin;
popUp.moveTo(popLeftPosition,popTopPosition);
moveleft();
}
}
function moveleft() {
if (popLeftPosition >= thisMargin) {
popUp.moveTo(popLeftPosition,popTopPosition);
popLeftPosition -= step;
timer = setTimeout("moveleft()",pause);
}
else {
clearTimeout(timer);
popLeftPosition = thisMargin;
popUp.moveTo(popLeftPosition,popTopPosition);
}
}
startPop('test.html','300','200'); // ضع رابط البانر هنا
// --></SCRIPT>
طريقة التركيب
انسخ هذا الكود و ضعه في المكان الذي تريده في منطقة BODY
<SCRIPT LANGUAGE='JavaScript'><!--
/*
* Visit our site at [ندعوك للتسجيل في المنتدى أو التعريف بنفسك لمعاينة هذا الرابط] for more code
*/
var popUp = 0;
var popURL = 0;
var popWidth = 0;
var popHeight = 0;
var thisMargin = 10;
var popTopPosition = thisMargin;
var popLeftPosition = thisMargin;
var pause = 20;
var step = 10; // كل ما زودت الرقم كل ما اسرعت النافذة
var timer = 0;
var screenWidth = 0;
var screenHeight = 0;
var endX = 0;
var endY = 0;
function startPop(thisurl,thiswidth,thisheight) {
popURL = thisurl;
popWidth = thiswidth;
popHeight = thisheight;
popUp = window.open(popURL, "traveler","toolbar=no,width="+popWidth+",height="+popHeight+",top="+popTopPosition+",left="+(popLeftPosition)+"");
screenWidth = window.screen.width;
screenHeight = window.screen.height;
endX = screenWidth - thiswidth - thisMargin;
endY = screenHeight - thisheight - thisMargin;
movedown();
}
function movedown() {
if (popTopPosition <= endY - 50) {
popUp.moveTo(popLeftPosition,popTopPosition);
popTopPosition += step;
timer = setTimeout("movedown()",pause);
}
else {
clearTimeout(timer);
popTopPosition = endY - 50;
popUp.moveTo(popLeftPosition,popTopPosition);
moveright();
}
}
function moveright() {
if (popLeftPosition <= endX) {
popUp.moveTo(popLeftPosition,popTopPosition);
popLeftPosition += step;
timer = setTimeout("moveright()",pause);
}
else {
clearTimeout(timer);
popLeftPosition = endX;
popUp.moveTo(popLeftPosition,popTopPosition);
moveup();
}
}
function moveup() {
if (popTopPosition >= thisMargin) {
popUp.moveTo(popLeftPosition,popTopPosition);
popTopPosition -= step;
timer = setTimeout("moveup()",pause);
}
else {
clearTimeout(timer);
popTopPosition = thisMargin;
popUp.moveTo(popLeftPosition,popTopPosition);
moveleft();
}
}
function moveleft() {
if (popLeftPosition >= thisMargin) {
popUp.moveTo(popLeftPosition,popTopPosition);
popLeftPosition -= step;
timer = setTimeout("moveleft()",pause);
}
else {
clearTimeout(timer);
popLeftPosition = thisMargin;
popUp.moveTo(popLeftPosition,popTopPosition);
}
}
startPop('test.html','300','200'); // ضع رابط البانر هنا
// --></SCRIPT>
صفحة 1 من اصل 1
صلاحيات هذا المنتدى:
لاتستطيع الرد على المواضيع في هذا المنتدى
الخميس يونيو 25, 2015 10:47 pm من طرف Admin
» برنامج لطلاب الجامعات لحل المعادلات الرياضية والتوابع
الأربعاء يونيو 17, 2015 2:54 pm من طرف Admin
» أهم تطبيق بعد عملية الروت!!System App Safe Remover
الأربعاء يونيو 17, 2015 2:50 pm من طرف Admin
» لعبة Asphalt 8: Airborne كاملة بملفات الداتا + مهكرة
الأربعاء يونيو 17, 2015 2:41 pm من طرف Admin
» افضل 6 تطبيقات اندرويد لتطبيق الفديوهات مع الموسيقا وتعديل على صور والتصوير الاحترافي2015
الأربعاء يونيو 17, 2015 2:38 pm من طرف Admin
» لعبة Asphalt 8: Airborne كاملة بملفات الداتا + مهكرة
الأربعاء يونيو 17, 2015 2:35 pm من طرف Admin
» برنامج :تنزيل فديوهات من اليوتيوب
الأربعاء يونيو 17, 2015 2:27 pm من طرف Admin
» برنامج :Camera51للألتقاط الصور بحرفيه
الأربعاء يونيو 17, 2015 2:24 pm من طرف Admin
» برنامج تصفح يحافط على شحن بطاريتك
الأربعاء يونيو 17, 2015 2:18 pm من طرف Admin