PULLDOWN tag - ACElist Code

1 Conversation

<BODY>
<P>If you want to have option buttons to choose whether to open the link in a New Window or in This Window, copy the code from the first text area. If you want to have command buttons instead, use the code of the second text area:<BR/></P>RADIO/OPTION Buttons:
<SCRIPT LANGUAGE="javaScript">
<!--
var acenewwin="0";
var ace2newwin="0";
function goACE(acenewwin){
acenumber=acelist.aces.options[acelist.aces.selectedIndex].value;
if(acenumber!='0'){
if(acenewwin=="1")
window.open(acenumber)
else window.location.href=acenumber;
}
}
function goACE2(ace2newwin){
ace2number=acelist2.aces2.options[acelist2.aces2.selectedIndex].value;
if(ace2number!='0'){
if(ace2newwin=="1")
window.open(ace2number)
else window.location.href=ace2number;
}
}
// -->
</SCRIPT>
<P ALIGN="center"><FORM NAME="acelist"><TABLE CELLSPACING="2" CELLPADDING="3"><TR><TD ALIGN="center"><SELECT NAME="aces"><SCRIPT LANGUAGE="javaScript" SRC="http://unfold.com/h2g2/ace.js">
/* just a fixer comment */
</SCRIPT></SELECT><INPUT TYPE="button" VALUE="Go" ONCLICK="goACE(acenewwin)"/></TD></TR><TR><TD><SMALL><INPUT NAME='win' TYPE='radio' VALUE='0' CHECKED='1' ONCLICK='acenewwin="0";'/>use THIS window<INPUT NAME='win' TYPE='radio' VALUE='1' ONCLICK='acenewwin="1";'/>
use NEW window</SMALL></TD></TR></TABLE></FORM></P>
<FORM NAME="acecode">
<TEXTAREA NAME="radio" COLS="70" ROWS="20" WRAP="VIRTUAL">
<SCRIPT LANGUAGE="javaScript">
<!--
var acenewwin="0";
function goACE(acenewwin){
acenumber=acelist.aces.options[acelist.aces.selectedIndex].value;
if(acenumber!='0'){
if(acenewwin=="1")
window.open(acenumber)
else window.location.href=acenumber;
}
}
// -->
</SCRIPT>
<P ALIGN="center">
<FORM NAME="acelist">
<TABLE CELLSPACING="2" CELLPADDING="3">
<TR>
<TD ALIGN="center">
<SELECT NAME="aces">
<SCRIPT LANGUAGE="javaScript" SRC="http://unfold.com/h2g2/ace.js">
/* just a fixer comment */
</SCRIPT>
</SELECT>
<INPUT TYPE="button" VALUE="Go" ONCLICK="goACE(acenewwin)"/>
</TD>
</TR>
<TR>
<TD>
<SMALL>
<INPUT NAME='win' TYPE='radio' VALUE='0' CHECKED='1' ONCLICK='acenewwin="0";'/>
use THIS window
<INPUT NAME='win' TYPE='radio' VALUE='1' ONCLICK='acenewwin="1";'/>
use NEW window
</SMALL>
</TD>
</TR>
</TABLE>
</FORM>
</P></TEXTAREA></FORM>
<BR/>
<BR/>COMMAND Buttons:
<P ALIGN="center">
<FORM NAME="acelist2">
<TABLE CELLSPACING="2" CELLPADDING="3"><TR><TD ALIGN="left"><SELECT NAME="aces2">
<SCRIPT LANGUAGE="javaScript" SRC="http://unfold.com/h2g2/ace.js">
/* just a fixer comment */
</SCRIPT></SELECT>&nbsp; In:</TD></TR><TR><TD ALIGN="left"><SMALL><INPUT TYPE="button" VALUE="This Window" ONCLICK="goACE2(0)"/> <INPUT TYPE="button" VALUE="New Window" ONCLICK="goACE2(1)"/></SMALL></TD></TR></TABLE>
</FORM></P><FORM NAME="comcode"><TEXTAREA NAME="command" COLS="70" ROWS="20" WRAP="VIRTUAL">
<SCRIPT LANGUAGE="javaScript">
<!--
var acenewwin="0";
function goACE(acenewwin){
acenumber=acelist.aces.options[acelist.aces.selectedIndex].value;
if(acenumber!='0'){
if(acenewwin=="1")
window.open(acenumber)
else window.location.href=acenumber;
}
}
// -->
</SCRIPT>
<P ALIGN="center">
<FORM NAME="acelist">
<TABLE CELLSPACING="2" CELLPADDING="3">
<TR>
<TD ALIGN="left">
<SELECT NAME="aces">
<SCRIPT LANGUAGE="javaScript" SRC="http://unfold.com/h2g2/ace.js">
/* just a fixer comment */
</SCRIPT>
</SELECT>
&amp;nbsp;&amp;nbsp; In:</TD>
</TR>
<TR>
<TD ALIGN="left">
<SMALL>
<INPUT TYPE="button" VALUE="This Window" ONCLICK="goACE(0)"/>
&amp;nbsp;<INPUT TYPE="button" VALUE="New Window" ONCLICK="goACE(1)"/>
</SMALL>
</TD>
</TR>
</TABLE>
</FORM>
</P></TEXTAREA></FORM>
</FORM>
<HR/>
<P>
PULLDOWN tag: <A HREF="http://www.h2g2.com/A362585">Rotating Version</A>; <A HREF="http://www.h2g2.com/A362602">Structure</A>
</P>
</BODY>

Bookmark on your Personal Space


Conversations About This Entry

Entry

A362594

Infinite Improbability Drive

Infinite Improbability Drive

Read a random Edited Entry


Written and Edited by

Disclaimer

h2g2 is created by h2g2's users, who are members of the public. The views expressed are theirs and unless specifically stated are not those of the Not Panicking Ltd. Unlike Edited Entries, Entries have not been checked by an Editor. If you consider any Entry to be in breach of the site's House Rules, please register a complaint. For any other comments, please visit the Feedback page.

Write an Entry

"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."

Write an entry
Read more