473,396 Members | 2,014 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

js not working since ie7

JohanK
13
hi there,
i'm having a problem with a javascript used to show and hide certain div layers.
It used to work great but since installing ie7 it's not "showing" correctly.

on a mouseover event it calls popupmenu and on a mouseout event it calls hidemenu

here's the javascript:

Expand|Select|Wrap|Line Numbers
  1. function popupmenu(menuid) {
  2.     div = document.getElementById( 'div_' + menuid );
  3.     if (div.style.visibility != 'visible' ) {
  4.         div.style.visibility = 'visible';
  5.     }
  6. }
  7.  
  8.  
  9.  
  10. function hidemenu(menuid) {
  11.     div = document.getElementById( 'div_' + menuid );
  12.     if (div.style.visibility != 'hidden' ) {
  13.         div.style.visibility = 'hidden';
  14.     }
  15. }
  16.  
  17.  
  18.  
  19. function highlight(linkid) {
  20.     // Highlight the linkset link for this page
  21.     li = document.getElementById( 'link_' + linkid );
  22.  
  23.     // Check that li exists
  24.     if (li) {
  25.         li.className = 'current';
  26.     }
  27. }
hopefully there's a quick work around for this but no luck so far
so please help

thanks in advance

Johan Kestlmeier
Apr 4 '07 #1
1 2312
r035198x
13,262 8TB
hi there,
i'm having a problem with a javascript used to show and hide certain div layers.
It used to work great but since installing ie7 it's not "showing" correctly.

on a mouseover event it calls popupmenu and on a mouseout event it calls hidemenu

here's the javascript:

Expand|Select|Wrap|Line Numbers
  1. function popupmenu(menuid) {
  2.     div = document.getElementById( 'div_' + menuid );
  3.     if (div.style.visibility != 'visible' ) {
  4.         div.style.visibility = 'visible';
  5.     }
  6. }
  7.  
  8.  
  9.  
  10. function hidemenu(menuid) {
  11.     div = document.getElementById( 'div_' + menuid );
  12.     if (div.style.visibility != 'hidden' ) {
  13.         div.style.visibility = 'hidden';
  14.     }
  15. }
  16.  
  17.  
  18.  
  19. function highlight(linkid) {
  20.     // Highlight the linkset link for this page
  21.     li = document.getElementById( 'link_' + linkid );
  22.  
  23.     // Check that li exists
  24.     if (li) {
  25.         li.className = 'current';
  26.     }
  27. }
hopefully there's a quick work around for this but no luck so far
so please help

thanks in advance

Johan Kestlmeier
Java != Javascript

Moved to Javascript forum.
Apr 4 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Mullin Yu | last post by:
hi, i have a web service that has file operations on Windows OS, and there may be a file concurrency issue if only one working directory e.g. c:\working therefore, i want to have a unique sub...
5
by: Martin Heuckeroth | last post by:
Hi We are working on a webservice application and are having some problems with the cookies and/or sessions. We have them working on our intranet but then its not working on the internet. We...
5
by: tshad | last post by:
I have been working with setting my drop boxes to allow double clicking to select an item. It worked fine until I made some changes. I then stripped the page down to the bare essentials to find...
8
by: jojobar | last post by:
Okay, I am trying to do is to test the webresource in 2.0 1. I created a new project with assembly name (and default assembly name) "Office". 2. I added the following to the AssemblyInfo.cs...
2
by: Don | last post by:
I'm having problems with intellisense, autocomplete, etc. suddenly not working in certain classes of a project I'm working on. All the options are set, and it all works fine for most classes, but...
9
by: MSDNAndi | last post by:
Hi, I have a set of simple webservices calls that worked fine using .NET Framework 1.0. I am calling a Java/Apache based webservices, the calling side is not able to supply a proper WSDL. ...
4
by: qbproger | last post by:
I'm developing a plugin for some software. The previous version of the software didn't require a start in directory to be set. This allowed me to leave the working directory to the default in the...
3
by: Jason Huang | last post by:
Hi, In our C# Windows Form application, we are using the SQL Server 2000 as the database server. The Database table MyTable has a field RegistrationDate which represents the Date a client comes...
0
by: WORKING IN FAITH | last post by:
three years I LOVE You Monica More options 1 message - Collapse all WORKING IN FAITH View profile More options Nov 13, 11:29 am three years I LOVE You Monica
3
by: lds | last post by:
On our server we have both applications that have been migrated to use v2.0 of the framework as well as apps that have not yet been migrated and still use 1.1. When I tried to deploy my v2.0 app...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.