473,398 Members | 2,343 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,398 software developers and data experts.

zoom problem in FF, working in IE

hey

this code works in IE but not in FF

Expand|Select|Wrap|Line Numbers
  1. function ZoomFrames(obj)
  2. {
  3.     if (isVisibleObject(document.getElementById("FRHEAD").style))
  4.     {
  5.         document.getElementById("FRZOOM").src='images/zoomin.gif';
  6.         hideObject(document.getElementById("FRHEAD").style);
  7.         hideObject(document.getElementById("FRINDEX").style)
  8.     }
  9.     else
  10.     {
  11.         document.getElementById("FRZOOM").src='images/zoomout.gif';
  12.         showObject(document.getElementById("FRHEAD").style);
  13.         showObject(document.getElementById("FRINDEX").style)
  14.    }
  15. }
  16.  
  17. ns4 = (document.layers)? true:false
  18. ie4 = (document.all)? true:false
  19.  
  20. function showObject(obj)
  21. {
  22.     if (ns4) obj.visibility = "show"
  23.     else if (ie4) obj.display="block"
  24. }
  25.  
  26. function hideObject(obj)
  27. {
  28.     if (ns4) obj.visibility = "hide"
  29.     else if (ie4) obj.display="none"
  30. }
does anybody has an idea?
Feb 9 '06 #1
1 1738
acoder
16,027 Expert Mod 8TB
Firefox doesn't support either document.layers or document.all.

If you don't need to support Netscape 4, just set the display property instead for all modern-ish browsers.
Apr 16 '08 #2

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

Similar topics

2
by: Marie | last post by:
When a report is open in preview mode, you can go to the Zoom button on the toolbar at the top of the screen, type in a zoom percent different from what is in the list and the magnification changes...
0
by: davide rocchelli | last post by:
I have found a probable bug when you draw with GDI. Look this simple code Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint ...
2
by: Mo Ade via .NET 247 | last post by:
How do I write code to include a zoom feature in my project so that when my Vb Form loads an image I can click in my main menu zoom in or zoom out? -------------------------------- From: Mo Ade ...
3
by: Boni | last post by:
Dear all, I need a picturebox on which I can with GDI+ draw rectangles. The scroll and zoom should be supported. Do I have to manually resize rectangles,when zoom button clicked and change...
0
by: gplana | last post by:
Hi all. I'm trying to create an application with a RichTextBox control in order to let user introduce a formatted text, and then I generate a word2007 .docx document with that text. I added the...
1
by: sivavenugopal | last post by:
Hi, Currently i am working with C# windows application. I want to provide Zoom In and Zoom Out facility for the entire Form including Controls on the Form. How can i achieve this. Thanks in...
3
by: jnag | last post by:
I am trying to implement font changer, where I have links on the banner of the site and when the user clicks on the links, the font size of the page has to change. I tried...
4
by: MC | last post by:
I am looking for a .js photo zoom. I saw a site that had a nice one that did expanded gradually and was really nice. I bookmarked the site but now the site is gone. Any other sites with nice...
0
by: murry19830507 | last post by:
i want creat an web application(c#.net),which contains an image and one radiobutton list with 3 radiobuttons(zoom in ,zoom out ,zoom window) when user checked on zoom in imge has to be zoom inthe...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.