473,698 Members | 2,615 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can Access DIV Properties in Script while using Netscape 7.2

How can Access DIV Properties in Script while using Netscape 7.2.
I want to use the div id with it's Visibility and left propertyin
script but it's not working :-(
Main File :
-----------

<div id="index" style="position :absolute; width:200px; height:115px;
z-index:1; left:-400px; top: 286px visibility:fals e;">
<object id="fl_index" type="applicati on/x-shockwave-flash" .......>
</Object>
</div>

I wanto use index.style.lef t=100 in script but it's not working
Similarly i want to use index.style.vis ibility="Show" and it's not
working.

I have tried to use in many case like
document.getEle mentById('index ').style.visibi lity="visible"; but it is
also not working in Netscape 7

Waiting for affermative responce
Jul 23 '05 #1
2 4752
try this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
<title>Untitled </title>
<script language = "javascript " type = "text/javascript">

var elemLeft = 100;
var elemTop = 286;

function moveObj(obj){

var elemId = document.getEle mentById(obj);

elemLeft = elemLeft - 5;
elemId.style.le ft = elemLeft;

}

function disappear(obj){

var elemId = document.getEle mentById(obj);

if(elemId.style .visibility == "hidden"){

elemId.style.vi sibility = "visible";

} else{

elemId.style.vi sibility = "hidden";

}

}

</script>
<style type = "text/css">

#dIndex{

position:absolu te;
width:200px;
left: 100px;
height:115px;
z-index:1;
top: 286px;
visibility:hidd en;
background: gray

}

</style>

</head>

<body>
<div id="dIndex">
<p>Hello World</p>
</div>
<a href = "#" onClick = "moveObj('dInde x');return false;">Move</a> | <a
href = "#" onClick = "disappear('dIn dex');return false;">Disappe ar</a>

</body>
</html>
Nasir Wasim wrote:
How can Access DIV Properties in Script while using Netscape 7.2.
I want to use the div id with it's Visibility and left propertyin
script but it's not working :-(
Main File :
-----------

<div id="index" style="position :absolute; width:200px; height:115px;
z-index:1; left:-400px; top: 286px visibility:fals e;">
<object id="fl_index" type="applicati on/x-shockwave-flash" .......>
</Object>
</div>

I wanto use index.style.lef t=100 in script but it's not working
Similarly i want to use index.style.vis ibility="Show" and it's not
working.

I have tried to use in many case like
document.getEl ementById('inde x').style.visib ility="visible" ; but it is
also not working in Netscape 7

Waiting for affermative responce

Jul 23 '05 #2
Thanks Cycloneous Echevarria
One of my problem has been solved which is to display the Div tag by
clicking through index button.
But actually there are more then one index button in main page, each
time the Top position of div tag would be changed and this is not
working :-(

I want to changed the Position of top (pixelTop) of div tag???

Waiting for ur affermative responce.
Nasir Wasim



Cycloneous Echevarria <or*****@engr.u conn.edu> wrote in message news:<42******* *******@engr.uc onn.edu>...
try this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
<title>Untitled </title>
<script language = "javascript " type = "text/javascript">

var elemLeft = 100;
var elemTop = 286;

function moveObj(obj){

var elemId = document.getEle mentById(obj);

elemLeft = elemLeft - 5;
elemId.style.le ft = elemLeft;

}

function disappear(obj){

var elemId = document.getEle mentById(obj);

if(elemId.style .visibility == "hidden"){

elemId.style.vi sibility = "visible";

} else{

elemId.style.vi sibility = "hidden";

}

}

</script>
<style type = "text/css">

#dIndex{

position:absolu te;
width:200px;
left: 100px;
height:115px;
z-index:1;
top: 286px;
visibility:hidd en;
background: gray

}

</style>

</head>

<body>
<div id="dIndex">
<p>Hello World</p>
</div>
<a href = "#" onClick = "moveObj('dInde x');return false;">Move</a> | <a
href = "#" onClick = "disappear('dIn dex');return false;">Disappe ar</a>

</body>
</html>
Nasir Wasim wrote:
How can Access DIV Properties in Script while using Netscape 7.2.
I want to use the div id with it's Visibility and left propertyin
script but it's not working :-(
Main File :
-----------

<div id="index" style="position :absolute; width:200px; height:115px;
z-index:1; left:-400px; top: 286px visibility:fals e;">
<object id="fl_index" type="applicati on/x-shockwave-flash" .......>
</Object>
</div>

I wanto use index.style.lef t=100 in script but it's not working
Similarly i want to use index.style.vis ibility="Show" and it's not
working.

I have tried to use in many case like
document.getEl ementById('inde x').style.visib ility="visible" ; but it is
also not working in Netscape 7

Waiting for affermative responce

Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
15742
by: George Hester | last post by:
I have a css file this is a portion of it: /* trackaccept.css */ div.track { width:400px; height: 100px; } I have this in my ASP page:
11
1846
by: Jonny | last post by:
Netscape 7.02 is giving me a headache with a downloaded snow script. Starting with a blank page, I inserted the script and checked it in IE 6 and Netscape 7.02. Everything worked and looked fine. A check on CPU usage (Windows Task Manager>Performance) gave a 0% to 2% reading for both browsers on a Pentium 4, 3.06GHz running XP. As I added text, images, tiled background and so on. I noticed the mouse was becoming jerky in Netscape 7....
5
1564
by: Terri I. | last post by:
I have an application that uses HTML, JavaScript, and ColdFusion 4.5. It was originally written for NN 4.75, and I am updating it to work in the newer browser. The application consists of a number of frames (some embedded within each other), and for this particular function, I need to pass data between forms on 2 different frames. I updated all references to forms to use recommended syntax, i.e. document.forms.formname, but I am still...
9
1760
by: Christopher Benson-Manica | last post by:
In some old Javascript we have, we try to determine whether the client is IE or Netscape (assume for the purposes of this question that the question can be resolved satisfactorily) and tailor the script to it: var myOpen=open(url, 'subWin', 'width=600, height=400,*A*resizable=1,scrollbars=1' ); if ( myOpen && !myOpen.closed ) { myOpen.focus(); } *B*
3
3335
by: Crimefighter | last post by:
I'm not a javascript guy, but the use of this banner rotator script has given me fits. I know a few causes of the problem thus far, one being the layer tags aren't supported under Netscape 7.1 just the entire 4.X series. Script works fine under IE. I've tried a few things to get it working under Netscape, such as defining a style for the bannerLayer with the style tag, and trying to define the style under the div tag, I've tried the...
9
12424
by: kj | last post by:
Is there any way to programmatically discover and inspect *all* the properties of an object, even those that are not enumerable through a for/in loop? Thanks! kj -- NOTE: In my address everything before the period is backwards.
5
1658
by: zaw | last post by:
Hi I am working on implementing this script to shopping cart. Basically, it copies fill the shipping address from billing automatically. I believe one or more syntax is not netscape compatible. Can anyone point out which one it is and how to make it both netscape and MS browser compatible? I hope if I can make the script compatible for those two at extreme, it will probably work with most browser out there. As you would notice, this form...
3
9264
by: davidkarlsson74 | last post by:
Error: document.getElementById("folderMenu").cells has no properties File: http://www.volkswagen.se/tillbehor/js/foldermenu.js Rad: 49 The function activates different DIV:s, but doesn't seem to work on FireFox or Netscape. What could be wrong? The function: function setActiveTab(tabNo) {
2
1331
MsNova
by: MsNova | last post by:
I am getting an error ‘pic1 has no properties in this code’, which is supposed to float a gif file (alien.gif in this case) around the screen. The code works fine in IE, but in Netscape and Firefox I get the following error: Error: pic1 has no properties Line: 66 Which is this line: pic1.moveTo((x+pageXOffset),(y+pageYOffset)) I thought pic1 was defined with this line in the header: var pic1=eval('document.'+_all+'pic1'+_style);...
0
8685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8612
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9171
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9032
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8905
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8880
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5869
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4625
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.