[WEB4LIB] Changing font in options

TMGB bennettt at am.appstate.edu
Mon Jan 31 13:15:22 EST 2000


This is from http://www.microsoft.com/windows2000/default.asp at
microsoft's site.  It took a while before I could even find a page where
they used lists.  As you can see IE supports [
STYLE=width:###px;height:###px;font-size:##px ] or I'm at least assuming
this is what their browser supports.  I'm not sure what else px can be
replaced with, maybe pr for percent.  Also I'm sure it'll make a
difference which resolution your computer is set.  I also noticed that
there is an extra graphic, actually 2, that loaded on IE after the last
graphic that loads on Netscape.

<SELECT STYLE="width:275px;height:17px;font-size:12px"
onChange="window.location.href=this[selectedIndex].value" ID="optTasks"
NAME="optTasks" TABINDEX="2" SIZE="1">
    <OPTION
VALUE="/windows2000/guide/platform/overview/default.asp">Windows 2000
Platform</A>
    <OPTION
VALUE="/windows2000/guide/professional/overview/default.asp">Windows
2000 Professional</A>
    <OPTION
VALUE="/windows2000/guide/server/overview/default.asp">Windows 2000
Server</A>
    <OPTION
VALUE="/windows2000/library/howitworks/cluster/asoverview.asp">Windows
2000 Advanced Server</A>
    <OPTION VALUE="/windows2000/news/default.asp">Windows 2000 News</A>
    <OPTION VALUE="/windows2000/library/default.asp">Technical
Information</A>
    <OPTION VALUE="/windows2000/library/planning/default.asp">Planning &
Deployment Information</A>
    <OPTION
VALUE="/windows2000/guide/professional/sysreq/default.asp">Client System
Requirements</A>
    <OPTION VALUE="/windows2000/guide/server/sysreq/default.asp">Server
System Requirements</A>
    <OPTION
VALUE="/windows2000/upgrade/compat/search/default.asp">Hardware and
Software Compatibility</A>
  </SELECT>

Thomas


"Michael A. Weber" wrote:
> 
> Hello Weblibers:
> 
> I need some help with a pull down menu on our homepage.
> 
> <http://www.alvernia.edu/>
> 
> I am using some javascript and the tags: form name, select name, and option
> values.  The code is listed below.
> 
> My problem is with alignment.  My pulldown menu lines up exactly with my
> navbar border on netscape, but not on Explorer.  I have tried using font
> size commands to alter the size of the text, but they don't seem to work
> inside of the option tag.
> 
> Is there any way of changing the size of the text shown in the option value
> tags?  This would put the pulldown menu inside of the navbar.
> 
> Any other suggestions on how to achieve alignment in this situation?
> 
> Thank you!
> 
> Mike Weber
> 
> <!--// original code by Bill Trefzger 12/12/96
> 
> function go(){
> 
>         if
> (document.selecter.select1.options[document.selecter.select1.selectedIndex].
> value != "none")
>                 location =
> document.selecter.select1.options[document.selecter.select1.selectedIndex].v
> alue
> }
> //-->
> 
> <FORM name="selecter">
> 
> <SELECT name="select1" size=1>
> <font size=-1>
> <OPTION value=none>Quick Index
> 
> <OPTION value=none>--------------------
> 
> <OPTION value="admin.htm">Admissions
> 
> <OPTION value="alumn.htm">Alumni Affairs
> <OPTION value="admiss3.htm">Application
> 
> <OPTION value="about1.htm">Campus Map & Tour
> <OPTION value="campu3.htm">Campus Ministry
> <OPTION value="campu4.htm">Career Services
> <OPTION value="acade10.htm">Class Schedules
> <OPTION value="campu5.htm">Community Service
> <OPTION value="about2.htm">Core Values
> 
> <OPTION value="acade6.htm">Degrees (Majors)
> <OPTION value="alumn5.htm">Development Office
> <OPTION value="about6.htm">Directions to Campus
> <OPTION value="about10.htm">Employment
> <OPTION value="admin.htm">Financial Aid
> 
> <OPTION value="gradpro.htm">Graduate Programs
> 
> <OPTION value="libra8.htm">Library Resources
> <OPTION value="about7.htm">Mission Statement
> <OPTION value="libra15.htm">Off Campus Library
> <OPTION value="acade4.htm">Non-Traditional Student
> <OPTION value="campu9.htm">Residence Life
> <OPTION value="campu10.htm">Student Activities
> <OPTION value="campu1.htm">Student Affairs
> <OPTION value="about3.htm">Vision Statement
> 
> </font>
> </SELECT>
> 
> <INPUT TYPE="button" VALUE="Go to Page" onclick="go()">
> 
> </FORM>
> 
> Michael Weber
> Dr. Frank A. Franco Library
> ALVERNIA COLLEGE
> 400 St. Bernardine Street
> Reading PA  19518
> (610) 796-8352
> (610) 796-8347 Fax
> webermi at alvernia.edu

-- 
--------------------------------------------------------------------
                      Rock and Rule
             Zope Rocks -- http://www.zope.org
           Python Rules  -- http://www.python.org    
--------------------------------------------------------------------
Thomas McMillan Grant Bennett      Appalachian State University
Computer Consultant II             University Library
bennettt at am.appstate.edu          
http://www.library.appstate.edu/webmaster/
Voice:  828 262 6587	           FAX:    828 262 3001

Windows 95 is a 32-bit extension to a 16-bit patch for an 8-bit
operating system that was originally coded for a 4-bit microprocessor.
 - Chris Dunphy     Boot Magazine


More information about the Web4lib mailing list