Solved

scrollbar problem!!!!

Posted on 1998-10-29
1
163 Views
Last Modified: 2010-04-30
We have scrollbar in javascript, but we need it to work on internet Explorer. Is there code we can add to this thing to make it work in visual basic? Or does anyone know how to make it compatible with both Netscape and internet Explorer?
This is the script we have:

<SCRIPT LANGUAGE="JavaScript"><!-- Begin
function jumpTo(){
var URL = document.form.list.options[document.form.list.selectedIndex].value;
parent.frames[0].location=URL

}
// End --></SCRIPT></HEAD><DIV ALIGN=right><SELECT NAME="list"
onchange="jumpTo()">
   <OPTION>Please Select
   <OPTION VALUE="SRAprofile.html">About S'RA
   <OPTION VALUE="contact.html">Contact
   <OPTION VALUE="links.html">Links
</SELECT></DIV></P>
</FORM>
</BODY>
</HTML>

0
Comment
Question by:mgratama
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
RobS earned 50 total points
ID: 1442352
Do you mean selection list when you say scrollbar (I'm confused).
It seems like you want to jump to a url when the user selects an option from the combo box.

If that is the case, he's a javaScript that works (the JavaScript code is directly in the select tag):

      <SELECT NAME = "list" onChange = "if (htmlSite.options[list.selectedIndex].value != 'nope'){location.href = list.options[list.selectedIndex].value};">
        <OPTION VALUE="nope">Please Select
        <OPTION VALUE="SRAprofile.html">About S'RA
        <OPTION VALUE="contact.html">Contact
        <OPTION VALUE="links.html">Links
      </SELECT>

Hope this helps.  It works in IE and Netscape
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question