Opera - the fastest browser on earth!
BeOS | Linux/Solaris | Mac | OS/2 | QNX | Symbian OS | Windows

Search:

Search Opera's knowledge base:

Customizing the toolbar in Opera

Customization

Windows 95/98/NT 4.0

Article: 518, Date: 2001-03-19

toolbar, customize

5.02Customize the toolbar in Opera:
First, you need to create the buttons in the toolbar and program their functions.

1) Open your Buttons.ini file with your favorite text editor and put the following things in it:

a) Under the list of button files [TOOLBAR]:

special = url.gif
special2 = url.gif
special3 = url.gif
special4 = url.gif
special5 = url.gif
special6 = url.gif
special7 = url.gif
special8 = url.gif

The images can be customised, with an application such as Microangelo we can rip the icons from the exes, retouch them (basically the size) with ACDSee or Paint Shop Pro and put it in the file.

b) Under [MAIN BUTTON BAR]

Button 16 = 1;1;13000;0 # Special
Button 17 = 1;1;13001;0 # Special2
Button 18 = 1;0;13002;0 # Special3
Button 19 = 1;0;13003;0 # Special4
Button 20 = 1;0;13004;0 # Special5
Button 21 = 1;0;13005;0 # Special6
Button 22 = 1;0;13006;0 # Special7
Button 23 = 1;0;13007;0 # Special8

(Adjust the actual button numbers 16-23 if necessary)

The part "1;1;130000;0" says:
"show in 'simple' toolbar; show in 'full' toolbar; button ID=130000; zero trailing space". You can configure this as you prefer.

c) Now, under the section [MAIN BUTTON BAR] you must create a
new section in the file called [Special URL]. Fill it in this way:

[Special URL]
Special = opera:history
Special2 = http://www.operamail.com
Special3 = http://www.ironmaiden.com
Special4 = http://www.opera.com
Special5 = http://www.opera.com/support/
Special6 = http://www.alistapart.com
Special7 = opera:cache
Special8 = opera:drives

There are some limitations about this: we can only add 8 buttons.

To add text instead of the newly created icons, simply add a section in Button.ini called [Special title] , and then add text as appropriate, like:

Special = opera:history
Special2 = Operamail
Special3 = Ironmaiden
Special4 = Opera
Special5 = Opera Support
Special6 = A List Apart
Special7 = opera:cache
Special8 = opera:drives

For those intrepid Opera fans who just have to know when a file was last updated, we offer the suggestion of Dan, aka Why Indeed:

javascript:alert(document.lastModified)

For those who want a button to close a window, Moe Greene suggests:

javascript:window.close();

[Note: File/Preferences/Windows/Allow documents to create new windows must be disabled (unchecked)]

Here's another suggestion:
Create a new bookmark called "Document Modified"
In the address field put "javascript:alert(document.lastModified);"
Now browse to any page and click on your "Document Modified" bookmark.

Note: And *don't* check 'Automatic new windows' in
'File/Prefrences/Windows', otherwise this script will be applied to a new, blank window.


If you are experiencing a problem, and you can't find a solution anywhere on our Web site, please submit a support request. We will respond as soon as possible.