donbmjr
05-11-2003, 10:21 AM
Need Dropdown menu to show more items
The menu below shows approx 25 items when selecting from the list in Adobe Golive, but when
published to the web only 10 items are visable and you have to scrool for the rest, I would like to see 25
or more items when the selection window first opens.
The number of items in the script below have been shortened.
Also the second menu is used for our news on a php page.
It works great to open the popups but there is no ability to CERTER the window on TOP
Thanks
Don
<FORM name="guideform">
<SELECT name="guidelinks"
onChange="window.location=document.guideform.guidelinks.options[document.guideform.guidelinks.s
electedIndex].value">
<OPTION SELECTED value="title_page"> - - - - - - - - - - Make Selection - - - - - - -
<OPTION value="race_win.html"> Race Winners
<OPTION value="pole.html">Pole Winners
<OPTION value="manuf_wins.html">Manufacture Wins
<OPTION value="avg_start.html">Average Starting Position
<OPTION value="best_start.html"> Best Starting Position
</SELECT>
</FORM></td>
2nd Menu
Head
<SCRIPT language="JavaScript">
<!--
function n_window(theurl)
{
// set the width and height
var the_width=200;
var the_height=200;
// set window position
var from_top=20;
var from_left=20;
// set other attributes
var has_toolbar='yes';
var has_location='yes';
var has_directories='yes';
var has_status='yes';
var has_menubar='yes';
var has_scrollbars='yes';
var is_resizable='yes';
// attributes put together
var
the_atts='width='+the_width+',height='+the_height+',top='+from_top+',screenY='+from_top+',left='+fro m_l
eft+',screenX='+from_left;
the_atts+=',toolbar='+has_toolbar+',location='+has_location+',directories='+has_directories+',status ='+has
_status;
the_atts+=',menubar='+has_menubar+',scrollbars='+has_scrollbars+',resizable='+is_resizable;
// open window
window.open(theurl,'',the_atts);
}
//-->
</SCRIPT>
Body
<A HREF="javascript:n_window('http://someplace.com/page1.htm');">Link 1</A>
<BR>
<A HREF="javascript:n_window('http://someplace.com/page2.htm');">Link 2</A>
The menu below shows approx 25 items when selecting from the list in Adobe Golive, but when
published to the web only 10 items are visable and you have to scrool for the rest, I would like to see 25
or more items when the selection window first opens.
The number of items in the script below have been shortened.
Also the second menu is used for our news on a php page.
It works great to open the popups but there is no ability to CERTER the window on TOP
Thanks
Don
<FORM name="guideform">
<SELECT name="guidelinks"
onChange="window.location=document.guideform.guidelinks.options[document.guideform.guidelinks.s
electedIndex].value">
<OPTION SELECTED value="title_page"> - - - - - - - - - - Make Selection - - - - - - -
<OPTION value="race_win.html"> Race Winners
<OPTION value="pole.html">Pole Winners
<OPTION value="manuf_wins.html">Manufacture Wins
<OPTION value="avg_start.html">Average Starting Position
<OPTION value="best_start.html"> Best Starting Position
</SELECT>
</FORM></td>
2nd Menu
Head
<SCRIPT language="JavaScript">
<!--
function n_window(theurl)
{
// set the width and height
var the_width=200;
var the_height=200;
// set window position
var from_top=20;
var from_left=20;
// set other attributes
var has_toolbar='yes';
var has_location='yes';
var has_directories='yes';
var has_status='yes';
var has_menubar='yes';
var has_scrollbars='yes';
var is_resizable='yes';
// attributes put together
var
the_atts='width='+the_width+',height='+the_height+',top='+from_top+',screenY='+from_top+',left='+fro m_l
eft+',screenX='+from_left;
the_atts+=',toolbar='+has_toolbar+',location='+has_location+',directories='+has_directories+',status ='+has
_status;
the_atts+=',menubar='+has_menubar+',scrollbars='+has_scrollbars+',resizable='+is_resizable;
// open window
window.open(theurl,'',the_atts);
}
//-->
</SCRIPT>
Body
<A HREF="javascript:n_window('http://someplace.com/page1.htm');">Link 1</A>
<BR>
<A HREF="javascript:n_window('http://someplace.com/page2.htm');">Link 2</A>