A rollover button script with stylish
popup menus. You can include any HTML code inside the popup menus and design them
any way you like.
EXAMPLE
See the rollover buttons and popup menus
on the left of
the page.
1) Insert this code in the <HEAD> section of the page.
2)Download
this ZIP file with the rollover56a.js
and unzip into the appropriate directory. NOTE: the ZIP file also contains the images we made.
3) Insert the following HTML code
anywhere inside the <BODY> section of the page.
4) Insert the following HTML code in the <BODY> section
where you want the rollover buttons to appear in the page.
then copy (CTRL-C) & paste
(CTRL-V)
This is how the script works:
There are 5 sections in this script:
1) a <STYLE> command section
2) a rollover section (rollover56a.js)
3) a menu section
4) a buttons section
5) a script section
1) In the <STYLE> section define the
font family, font size and the color of the links in the popup menus:
2) In the rollover56a.js define the
rollover images and their location in this section of the script:
if (document.images) {
image0on = new Image();
image0on.src = "menu_files/button1_on.gif";
image0off = new Image();
image0off.src = "menu_files/button1_off.gif";
image1on = new Image();
image1on.src = "menu_files/button2_on.gif";
image1off = new Image();
image1off.src = "menu_files/button2_off.gif";
3) In the menu section define the tables, the
position of the pop-up menus in the page and the content to appear in the
menus in this section of the HTML code: