Joined
Last Seen
0 Reputation Points
27% Quality Score
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
0 Endorsements
Ranked #72.9K
~50.6K People Reached
This member's community profile is only visible to logged in members until they have earned 15 reputation points.
Favorite Forums
Web Development x 2
Favorite Tags
2 Posted Topics
This is an example of JavaScript automatic popup closing after 3 seconds with countdown, <p style="text-align:center">This window will close automatically within <span id="counter">3</span> second(s).</p> <script type="text/javascript"> function countdown() { var i = document.getElementById('counter'); i.innerHTML = parseInt(i.innerHTML)-1; if (parseInt(i.innerHTML)<=0) { window.close(); } } setInterval(function(){ countdown(); },1000); </script> I have found it …
Use simple function. function RandImg($dir) { $images = glob($dir . '*.{jpg,jpeg,png,gif}', GLOB_BRACE); $randomImage = $images[array_rand($images)]; return $randomImage; } $the_image = RandImg('images/tips/'); echo $the_image;
The End.