Automobile Refresh and Hyperlink Loop
copyright>
// Function to shuffle an array randomly
functionality shuffleArray(array)
for (Allow i = array.length - one; i > 0; i--)
const j = Math.ground(Math.random() * (i + one));
[array[i], array[j]] = [array[j], array[i]];


// Perform to refresh the webpage at a hard and fast interval
operate refreshPage()
var refreshInterval = 250000;
setInterval(function ()
location.reload();
, refreshInterval);

// Functionality to complete the hyperlink loop
function executeLoop()
var backlinks = [
'Your Link one',
'Your Link two',
'Your Website link 3',
'Your Backlink four',
'Your Backlink five',
'Your Link six',
];
// Shuffle the array randomly
shuffleArray(back links);
var currentIndex = 0;
perform openLink()
var link = get more info inbound links[currentIndex];
// Screen the backlink from the modal
openModalWithLink(connection);

var interval = Math.floor(Math.random() * (30000 - 20000 + one) + 20000);
// Close the modal following the desired interval
setTimeout(function ()
closeModal();
// Transfer to the subsequent connection
currentIndex = (currentIndex + one) % links.duration;
// Connect with openLink again With all the up to date index
openLink();
, interval);

// Initial execution
openLink();

// Function to open the modal that has a supplied link
functionality openModalWithLink(backlink)
doc.getElementById('modalIframe').src = backlink;
// Explicitly load the iframe immediately after location the source
doc.getElementById('modalIframe').onload = perform ()
document.getElementById('myModal').model.Show = 'block';
;

// Function to shut the modal
perform closeModal()
doc.getElementById('myModal').design.Show = 'none';

// Initial execution
window.onload = purpose ()
refreshPage(); // Get started the web page refresh
executeLoop(); // Begin the hyperlink loop
;







------------------------------------------------------------------------------------------


2nd Code: (Note: Use distinct Gmail/blog for this code)




Embedded Web site





Leave a Reply

Your email address will not be published. Required fields are marked *