Solved

scrollbar problem!!!!

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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 Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

746 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

10 Experts available now in Live!

Get 1:1 Help Now