I atached the image with the webpage, do anybody knows how to do to show an advertise like in the photo after the page has been loaded, let's say after a few seconds, it seems similar to the lightbox.js but it's diferent. Can somebody help me with some ideeas ? Thanks

Use the window.onload to call the setTimeout function. In this example, it will call the displayAdvert() function 3 seconds (3000 milliseconds) after the page has loaded.

<script type="text/javascript">
	window.onload=function(){
		setTimeout('displayAdvert()',3000);
	}
	
	function displayAdvert(){
		//your code here
	}
</script>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.