• WelcomeWelcome  
  • Events  
  • PublicationsPublications  
  • SearchSearch  
  • RegisterRegister  
  • Log inLog in  

  • You are not connected. Please login or register

    Add to favorites button

    • Administrator

        Reputation : 317
        Registered on : 2012-02-22
        Posts : 2364
        School of codes courses: coming soon
      Add to favorites button


      Add the page to your favorites on your browser bar

      Set up

      First, paste this html code wherever you want to place the button to add the page as favorite yes

      <a href="javascript:addbookmark()"><img src="http://illiweb.com/fa/i/smiles/icon_cat.png" /></a>

      Now, Paste this javascript code in your Javascript panel:
      function addbookmark() {
          // Mozilla Firefox
          window.sidebar.addPanel("http://" + location.hostname, document.title, "");
        else if(window.external && window.external.AddFavorite)
          // Internet Explorer
          window.external.AddFavorite("http://" + location.hostname, document.title);
        else if(window.opera && window.print)
          // Opera
          this.title = document.title;
          // Autres
          alert("Click Ctrl and D to add the page to your favorites");

      > Done :birra:

      Customize the tutorial

      You can edit the message:
      Click Ctrl and D to add the page to your favorites

      Technical problems

      The tutorial was tested on this forum and with the browser Google Chrome; If you notice that the tutorial doesn't work for a browser or for a version of forum (PhpBB2, PhpBB3, PunBB, Invision) contact an administrator and we will fill this field with your reporting.

      Thanks, the staff
      For every problem or question please, contact us in the section Support for the tutorials, The staff will answer you as soon as it is possible...

      The team of the Forum of Codes.

      Niko wants you in the team Guest

      Community manager and Administrator at Forumattivo.com

      DMCA.com Protection Status
      © PunBB | Contact | Report an abuse