HomeHome  
  • WelcomeWelcome  
  • Events  
  • PublicationsPublications  
  • FAQFAQ  
  • SearchSearch  
  • MemberlistMemberlist  
  • UsergroupsUsergroups  
  • RegisterRegister  
  • Log inLog in  
  • You are not connected. Please login or register


    Add to favorites button

    avatar
    • Administrator

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

      Description


      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

      Code:
      <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:
      Code:
      function addbookmark() {
        if(window.sidebar)
          // 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;
        else
          // 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...

      Friendly,
      The team of the Forum of Codes.



      Niko wants you in the team Guest

      Community manager and Administrator at Forumattivo.com


      YOUR BANNER HERE
      728x90
      DMCA.com Protection Status
      Free forum | © PunBB | Free forum support | Contact | Report an abuse | Free forum