|
5 vertical examples
in this border!
Scroll down to see changes to size, color and spacing
The next two buttons
are the same except:
the 1st is outset
the 2nd is inset!
For one last example,
look below.
These are not buttons.
It's just a table with regular links in it!
for more variations
like adding image to background and a different way to place horizontal buttons!
|
Rollover Menu Buttons
horizontal buttons:
|
|
|
I place them inside a table
For easier viewing, I made the cells
white so you can see the table behind
the buttons. Usually the table and
cells are transparent behind buttons.
|
This opens a pdf document in
this frame
press back arrow to
return to this page!
|
This button opens a mini window.
It even has a miniature version of the button tied to close window on it!
|
|
Shows the button can be used alone
This button opens a new window
|
This button uses the same style settings as the buttons above. Any new buttons using that style just need the DIV section!
This button opens in same window
|
GENERAL INSTRUCTION:
 If you have more than one set of buttons on a page like this one does, then rename the next version so they do not interfere with each other. Notice that in the scripts, the buttons are named rollbutton, rollbutton1, rollbutton2, rollbutton3, rollbutton4, rollbutton5
 Each group of buttons must have a Style setting section of code, then each button is added after that. Style settings are put into the page only 1 time no matter how many buttons are used or where they are placed.
 Change the Style codes at the beginning of the code to adjust the color of the button, size, space between buttons, etc. The four button examples to the left show some of the adjustments you can do...just play with the codes until you find the right combination.
 The DIV style for the type of button you want is flexible. You can pick and choose which ever suits the need for that particular link. Several options are below.
 For each button, change the link, the rollover title, and the button name to your own.
 These codes are placed into your webpage using Insert > HTML (or webgem in Trellix)
The following are the individual button codes:
For a regular button opening in the same window use this DIV:
<DIV id=rollbutton>
<DIV><A href="../id11.htm" title="List of All Lambert Products" onfocus="this.blur()" target="_top"><center>ALL PRODUCTS</center></A></DIV>
</DIV
For a regular button opening into a mini popup window use this DIV:
You can adjust to have scrollbars or not by changing the code: 0= no, 1 = yes
<DIV id=rollbutton1>
<DIV><A href="javascript:void(0)"
ONCLICK="open('http://www.lambertusa.com/id145.htm','miniwin','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=01,width=325,height=250')" title="Contact us for a fax copy" onfocus="this.blur()"><center>MSDS</center></A> </DIV>
</DIV>
For a regular button opening into a new window use this DIV:
<DIV id=rollbutton1>
<DIV><A href="../resource/id156.htm" title="Product brochure, leaflets, other helpful information..." onfocus="this.blur()" target="_blank"><center>MSDS</center></A> </DIV>
</DIV>
For a regular button opening into a the middle frame (when in button is in middle frame) use this DIV:
<DIV id=rollbutton1>
<DIV><A href="http://www.lambertusa.com/resource/spec/color-sp.pdf" title="Specification Sheet for Lambco® Color " onfocus="this.blur()"><center>SPECS</center></A> </DIV>
</DIV>
For a regular button opening into a the middle frame (when in top or left frame) use this DIV:
<DIV id=rollbutton1>
<DIV><A href="../resource/id156.htm" title="Product brochure, leaflets, other helpful information..." onfocus="this.blur()" target="TRLX_Middle"><center>MSDS</center></A> </DIV>
</DIV>
SAMPLE HORIZONTAL BUTTONS
1 opens in middle frame, 1 opens a mini window (side by side in separate cells of table)
3rd extra stand alone button using same style code opens in same window
 3 separate inserted HTML codes - ONE FOR EACH BUTTON
1ST BUTTON - USE STYLE CODES AND DIV
To capture the code, press Select All then COPY the contents.
Look at the code - the name of this set of buttons: rollbutton1.
2ND BUTTON - MINI - USE DIV ONLY
if you have more than 2 buttons, each extra button is just the DIV code for it.
choose any you want to use...I used the mini pop-up window button:
To capture the code, press Select All then COPY the contents.
Look at the code - the name of this set of buttons: rollbutton1.
3RD BUTTON - ALL PRODUCTS - USE DIV ONLY
To capture the code, press Select All then COPY the contents.
Look at the code - the name of this set of buttons: rollbutton1.
|
SINGLE GRAY BUTTON
Opens in a new window
 1 inserted HTML code
To capture the code, press Select All then COPY the contents.
Look at the code - the name of this button: rollbutton2.
|
LEFT BORDER BUTTONS (1st set)
All open in a same window
 1 inserted HTML code for the whole column of buttons
To capture the code, press Select All then COPY the contents.
Look at the code - the name of this button: rollbutton.
|
LEFT BORDER BUTTONS (2nd set)
All open in a same window
 1 inserted HTML code for the whole column of buttons. Only show the style codes below. Same DIV as previous version of code.
Besides changing colors to purples, these buttons are thinner (height) and wider (width) with more spacing between (margin)
To capture the code, press Select All then COPY the contents.
Look at the code - the name of this button: rollbutton3.
|
LEFT BORDER BUTTONS (3rd & 4th set)
All open in a same window
 1 inserted HTML code for the whole column of buttons, but only show the style codes below. Same DIV as previous version of code.
Besides changing colors to black and white, the second version of these buttons are opposite the others! They start inset and pop out on rollover! The margin between them was brought down to 0. The code below is for the 2nd version. Want the first? Just switch inset for outset!
To capture the code, press Select All then COPY the contents.
Look at the code - the name of this button: rollbutton4.
|
LEFT BORDER- ROLLOVER TABLE (NON- BUTTONS)
Rollover link - changes color (to lime green), but no background color change
STEP 1:
Use Insert > HTML to place this code on your page to remove underlines from all links. Since this site is published with frames, and the code to change the links is placed in the left border only, the rollover effect GREEN, NO UNDERLINE is only in the left border!
To turn off underline too as shown in the green table example and other left border links:
<STYLE>
<!--
a:hover {color: #00FF00}
U { text-decoration : none }
-->
</STYLE>
OR leaving the link underline intact while just changing the text color:
<STYLE>
<!--
a:hover {color: #00FF00}
-->
</STYLE>
STEP 2:
Build a table. Place links in the table as usual.
On rollover, the links will change color because of the inserted style code.
(NOTE: CSB4 has built-in rollover settings, but it will automatically change the color background and the font! See KW's site for example. All his links on the home page have a YELLOW background when rolled over. In order to use this in CSB4 all your frames must have the same setting.
This example/test page was made with CSB4, but did not use the built-in capabilities. Using the Style code intead allowed the links in this area to stay maroon with an underline, while the border links turn green!)
|
|