|
|
Java menu script>Menu Make>radio menu
|
|
<SCRIPT>
<!-- Activate Cloaking Device
//***************************************************************************
//
// Radio Button LeapTo I
//
// by Tim Wallace (timothy@essex1.com)
//
// Uses radio buttons in place of a drop-down menu.
//
//***************************************************************************
// Called by an onClick in each radio button.
function leapTo (link)
{
var new_url=link;
if ( (new_url != "") && (new_url != null) )
window.location=new_url;
else
alert("\nYou must make a selection.");
}
// Called by View Source button - displays source of file.
function viewSource()
{
var current_url="";
current_url=document.location;
window.location="view-source:"+current_url;
}
// Called by Full Window button - loads file to full window for easy saving.
function WinOpen()
{
alert('\nPage will load to full screen.\n\nUse View/Document Source from menu bar to view
source.\n\nUse File/Save As from menu bar to save.\n\nClose new window to return to this
page. ');
window.open("radioleap1.html","DisplayWindow","menubar=yes,scrollbars=yes");
window.open("radioleap1.html","DisplayWindow","menubar=yes,scrollbars=yes");
// double for Macs
}
// Deactivate Cloaking -->
</SCRIPT><CENTER>
<FORM>
<TABLE BORDER=3 WIDTH=500>
<TD align="center" BGCOLOR=000080>
<INPUT TYPE="radio" NAME="buttons1"
onClick="leapTo('test.html')">
<FONT COLOR=00FFFF><B>Test Page 1</B></FONT>
<TD align="center" BGCOLOR=FF0000>
<INPUT TYPE="radio" NAME="buttons1"
onClick="leapTo('test2.html')">
<FONT COLOR=000000><B>Test Page 2</B></FONT>
<TD align="center" BGCOLOR=C0C0C0>
<INPUT TYPE="radio" NAME="buttons1"
onClick="leapTo('test3.html')">
<FONT COLOR=800000><B>Test Page 3</B></FONT>
<TD align="center" BGCOLOR=008080>
<INPUT TYPE="radio" NAME="buttons1"
onClick="leapTo('test4.html')">
<FONT COLOR=FFFF00><B>Test Page 4</B></FONT>
</TABLE>
<BR><BR><BR>
<TABLE BORDER=0 WIDTH=400>
<TD align="center"><INPUT TYPE="button" VALUE="Full
Window" onClick="WinOpen()">
</TABLE>
</FORM>
</CENTER> |
|
|
|
|