|
<HTML><HEAD>
<TITLE> Buttons Page</TITLE>
<script type="text/javascript"
src="Buttons.js"></script>
</HEAD><BODY>
<P><SCRIPT type="text/javascript">
Buttons();
Buttons("Go
Back", "javascript:self.history.back()",<BR> "JScripts", "http://webdeveloper.earthweb.com/webjs/",<BR>
"Text Scripts", "http://webdeveloper.earthweb.com/webjs/jstext/",
"Js Utilities", "http://webdeveloper.earthweb.com/webjs/jsutility/",
"Forward", "javascript:self.history.forward()",<BR>
"Close Window", "javascript:self.close()");
Buttons("ThreeClicks.com",
"http://threeclicks.com");
</SCRIPT></P>
</BODY></HTML>
•
• A few
more examples.
|
•• |
<SCRIPT
type="text/javascript">
Buttons("<<", "javascript:self.history.back()",
"ThreeClicks.com", "http://threeclicks.com",
"Ü", "mailto:oz@threeclicks.com");
</SCRIPT> |
|
The number of rows
that can be generated are unlimited, but the number of buttons per row is
10 as per the existing array sizes, so just edit the arrays if you need
more buttons per row.
|
<SCRIPT type="text/javascript">
Buttons(">>", "javascript:self.history.forward()",
"Ü", "mailto:oz@threeclicks.com");
Buttons("A", "pageA.htm", "B", "pageB.htm",
"C", "pageC.htm", "X", "pageX.htm");
Buttons(" 1 ", "page1.htm", " 2 ",
"page2.htm", " 3 ", "page3.htm", " 4
", "page4.htm", " 5 ", "page5.htm",
" 6 ", "page6.htm", " 7 ",
"page7.htm", " 8 ", "page8.htm", " 9
", "page9.htm", "10", "page10.htm");
Buttons("Reload", "javascript:location.reload()", "^ Top", "#top");
Buttons("Ü", "mailto:oz@threeclicks.com",
"<<", "javascript:self.history.back()");
</SCRIPT> |
•• |
Note!<script
type="text/javascript"
src="Buttons.js"></script>
must be placed in the <HEAD>
of the page.
And a copy of Buttons.js must be placed in the same
directory as the page, or referenced
by some other correct path for the
above code to work. |
• This is the file that does the work:
Buttons.js Right click here and
Save Target As
or copy from the text box below.
|