Solved

scrollbar problem!!!!

Posted on 1998-10-29
1
158 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
z = x + y – 1 6 67
Help in WHSCRIPT 9 47
Excel object stays open 19 70
Macro which automatically sends attachment to Outlook 14 61
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

932 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now