فتح موقع عند تمرير لاسفل

<0script> // define an array of URLs const urls = [ "https://www.example.com/page44", "https://www.example.com/page3", "https://www.example.com/page4", ]; // calculate the height of the document and the window const docHeight = document.documentElement.scrollHeight; const windowHeight = window.innerHeight; // calculate the position where the URL should be changed const changeUrlPosition = docHeight - windowHeight; // listen for scroll events window.addEventListener("scroll", () => { // check if the user has scrolled past the change URL position if (window.pageYOffset >= changeUrlPosition) { // get the index of the current URL in the array const currentIndex = urls.indexOf(window.location.href); // set the new URL based on the next item in the array const nextUrl = urls[currentIndex + 1]; window.location.replace(nextUrl); } });

تحويل بعد مدة

تحويل إلى Amazon <0script> window.open('https://www.youtube.com', '_blank'); setTimeout(function() { // قم بتحويل المستخدم إلى Amazon في نفس النافذة window.location.href = "https://www.amazon.com"; }, 9000);
My Website

Welcome to My Website

تمرير لاسفل

<0script> document.addEventListener('scroll', function() { // احتساب موضع التمرير الرأسي var scrollPosition = window.scrollY || window.pageYOffset || document.documentElement.scrollTop; // إذا تم التمرير لأسفل بشكل كافي (يمكنك تعديل هذا الرقم حسب احتياجاتك) if (scrollPosition > 10) { // فتح نافذة "Popup" بعنوان محدد وأبعاد محددة window.open('https://www.example.com', 'Popup', 'width=600,height=400'); // يمكنك إلغاء حدث التمرير بعد فتح النافذة document.removeEventListener('scroll', arguments.callee); } });

افتح موقع مصر عندما يلمس المستخدم الشاشة

<0script> document.addEventListener('click', function() { setTimeout(function() { window.open('https://www.example.com', '_blank'); }, 3000); // 3000 milliseconds = 3 seconds });

نقر مباشر

مثال على فتح تاب وإعادة تحميل الصفحة