Welcome to W3Courses
 Like Us on Facebook

Automatic

Add an Automatic / Dynamic Copyrighted Year Message in PHP

Instead of manually updating the copyrighted message every year, you can add a dynamic and automatic copyrighted year message at the bottom of your website. To do so, include the following code at the bottom of your php files just before the body tag.

<?
      $year= date('Y');
      echo("Copyrighted &copy;$year W3courses.com");
?>

Share

Prompt an Automatic Add to Favorite popup window with 10 second delay using JavaScript

Prompt an Automatic Add to Favorite Popup window 10 seconds after a user visits your website. Add the following code to the body section of your html document

<SCRIPT LANGUAGE="JavaScript">
<!-- //Hide From Old Browsers

/* Do Not Remove the Following Line
   For more scripts visit http://www.w3courses.com
*/

//Change the following link to yours
var link = "http://www.w3courses.com";

Share

Prompt an automatic Add to Favorite Popup Window using JavaScript

Prompt an automatic Add to Favorite Popup window when a user visits your website. Add the following code to the head section of your html document

<SCRIPT LANGUAGE="JavaScript">
<!-- //Hide From Old Browsers

/* Do Not Remove the Following Line
   For more scripts visit http://www.w3courses.com
*/

//Change the following link to yours
var link = "http://www.w3courses.com";

Share