473,396 Members | 2,013 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.

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:false;">
<object id="fl_index" type="application/x-shockwave-flash" .......>
</Object>
</div>

I wanto use index.style.left=100 in script but it's not working
Similarly i want to use index.style.visibility="Show" and it's not
working.

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

Waiting for affermative responce
Jul 23 '05 #1
2 4737
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.getElementById(obj);

elemLeft = elemLeft - 5;
elemId.style.left = elemLeft;

}

function disappear(obj){

var elemId = document.getElementById(obj);

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

elemId.style.visibility = "visible";

} else{

elemId.style.visibility = "hidden";

}

}

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

#dIndex{

position:absolute;
width:200px;
left: 100px;
height:115px;
z-index:1;
top: 286px;
visibility:hidden;
background: gray

}

</style>

</head>

<body>
<div id="dIndex">
<p>Hello World</p>
</div>
<a href = "#" onClick = "moveObj('dIndex');return false;">Move</a> | <a
href = "#" onClick = "disappear('dIndex');return false;">Disappear</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:false;">
<object id="fl_index" type="application/x-shockwave-flash" .......>
</Object>
</div>

I wanto use index.style.left=100 in script but it's not working
Similarly i want to use index.style.visibility="Show" and it's not
working.

I have tried to use in many case like
document.getElementById('index').style.visibility ="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.uconn.edu> wrote in message news:<42**************@engr.uconn.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.getElementById(obj);

elemLeft = elemLeft - 5;
elemId.style.left = elemLeft;

}

function disappear(obj){

var elemId = document.getElementById(obj);

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

elemId.style.visibility = "visible";

} else{

elemId.style.visibility = "hidden";

}

}

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

#dIndex{

position:absolute;
width:200px;
left: 100px;
height:115px;
z-index:1;
top: 286px;
visibility:hidden;
background: gray

}

</style>

</head>

<body>
<div id="dIndex">
<p>Hello World</p>
</div>
<a href = "#" onClick = "moveObj('dIndex');return false;">Move</a> | <a
href = "#" onClick = "disappear('dIndex');return false;">Disappear</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:false;">
<object id="fl_index" type="application/x-shockwave-flash" .......>
</Object>
</div>

I wanto use index.style.left=100 in script but it's not working
Similarly i want to use index.style.visibility="Show" and it's not
working.

I have tried to use in many case like
document.getElementById('index').style.visibility ="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
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
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...
5
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...
9
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...
3
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...
9
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...
5
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....
3
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...
2
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...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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,...
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.