?
Solved

scrollbar problem!!!!

Posted on 1998-10-29
1
Medium Priority
?
165 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 100 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month8 days, 18 hours left to enroll

764 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