Welcome guest, is this your first visit? Create Account now to join.
Page 1 of 3 123 LastLast
Results 1 to 10 of 27

This is a discussion on Simple toolbar creation within the Plugins Development section, part of the Chrome Plugins category: Hello everyone, I am somewhat new to the plugin creation scene and was wondering if someone could point me in ...


  1. #1
    adonato is offline Junior Member
    Join Date
    Jul 2009
    Posts
    8

    Default Simple toolbar creation

    Hello everyone,
    I am somewhat new to the plugin creation scene and was wondering if someone could point me in the right direction. I am trying to make a simple toolbar that would allow me to click a button the would redirect you to a link. Something like a google toolbar. Any help would be appreaciated.

  2. #2
    Waha's Avatar
    Waha is offline Senior Member
    Join Date
    Apr 2009
    Location
    Oregon
    Posts
    788

    Default

    You can't make toolbars, however, you can add a panel to the toolstrip at the bottom.
    ~ Projects ~
    Specialized: Carapass Auction Watcher, Kongregate Chat
    Libraries: bliplib
    Tools: manifest syntax highlighting & snippits
    ~ Happy to make extensions for pay too ;D ~
    Portfolio: Search and Share

  3. #3
    adonato is offline Junior Member
    Join Date
    Jul 2009
    Posts
    8

    Default

    I've seen that before, I was wondering how to make each button redirect to a link.

    Would it be ahref="www.google.ca" with <>

  4. #4
    Luc VN's Avatar
    Luc VN is offline Senior Member
    Join Date
    Sep 2008
    Location
    Belgium - Europe
    Posts
    758

    Default

    You have just described a bookmark

  5. #5
    Waha's Avatar
    Waha is offline Senior Member
    Join Date
    Apr 2009
    Location
    Oregon
    Posts
    788

    Default

    Toolstrips merely contain HTML data, so yes, &lt;a href="www.google.ca"&gt;Text&lt;/a&gt; would work for that.
    ~ Projects ~
    Specialized: Carapass Auction Watcher, Kongregate Chat
    Libraries: bliplib
    Tools: manifest syntax highlighting & snippits
    ~ Happy to make extensions for pay too ;D ~
    Portfolio: Search and Share

  6. #6
    adonato is offline Junior Member
    Join Date
    Jul 2009
    Posts
    8

    Default

    I have tried this, it does not work. It shows the google homepage within the button. I would actually need the button to open google in a new tab/window.
    Code:
    <div class="toolstrip-button">
      <!-- Image is optional and should be a 16x16 icon. -->
      
      <span>a href="www.google.ca">google</a></span>
    </div>

    Any idea on how to make this work?
    Last edited by adonato; 07-15-2009 at 08:56 PM.

  7. #7
    pcki11's Avatar
    pcki11 is offline Senior Member
    Join Date
    Jun 2009
    Posts
    214

    Default

    Before asking for help read at least some docs about HTML. Here is a description of the &#60;a&#62; tag. In short, RTFM! =)

  8. #8
    Waha's Avatar
    Waha is offline Senior Member
    Join Date
    Apr 2009
    Location
    Oregon
    Posts
    788

    Default

    And don't forget the necessary toolstrip code around everything in the body of it:
    Code:
    &lt;div class="toolstrip-button"&gt;
    &lt;/div&gt;
    (And of course &amp;gt; and &amp;lt; in your post it display &gt; and &lt; instead of getting it interpreted as HTML.)
    ~ Projects ~
    Specialized: Carapass Auction Watcher, Kongregate Chat
    Libraries: bliplib
    Tools: manifest syntax highlighting & snippits
    ~ Happy to make extensions for pay too ;D ~
    Portfolio: Search and Share

  9. #9
    pcki11's Avatar
    pcki11 is offline Senior Member
    Join Date
    Jun 2009
    Posts
    214

    Default

    toolstrip-button class isn't obligatory, i think. it just puts the images used in the bookmarks bar to show the edges of the buttons around the toolstrip.

    upd. in fact, div tag is not obligatory too =)
    Last edited by pcki11; 07-15-2009 at 11:03 PM.

  10. #10
    adonato is offline Junior Member
    Join Date
    Jul 2009
    Posts
    8

    Default

    Quote Originally Posted by pcki11 View Post
    Before asking for help read at least some docs about HTML. Here is a description of the <a> tag. In short, RTFM! =)
    I'm having trouble using the code tags but i think i figured it out now. Let me post what I have to you guys and maybe you could point me in the right direction.

Page 1 of 3 123 LastLast

Similar Threads

  1. Resizing bookmark toolbar
    By davefrooney in forum Chrome Tips & Tricks
    Replies: 2
    Last Post: 02-10-2011, 01:59 PM
  2. Creating a Simple .crx theme
    By Stamga in forum Themes Development
    Replies: 11
    Last Post: 08-16-2010, 02:28 AM
  3. Moving the Toolbar
    By GreenKman in forum Chrome Tips & Tricks
    Replies: 0
    Last Post: 07-11-2009, 11:54 AM
  4. Simple javascript not working - OK on Firefox, IE etc,
    By Skibrowse in forum Bugs and Vulnerabilities
    Replies: 0
    Last Post: 04-17-2009, 10:52 PM
  5. Google Toolbar
    By achilipu in forum Chrome Plugins
    Replies: 1
    Last Post: 12-18-2008, 01:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •