473,396 Members | 1,760 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 to have an Div on top of the Other items present in the page

Hi guys,

I need a DIV to be coming on top of every thing present in that page. I dont want to use absolute. How to do that.

Thanks for your comments.

Mahendran A.
Feb 7 '08 #1
2 1177
Death Slaught
1,137 1GB
Give it a z-index.

^_^ Hope it helps, Thanks, Death
Feb 7 '08 #2
Hi guys,

I have two pictures. If you move the mouse over the first one the second will appear, if you move the mouse out then the second will disappear. After this two images I have some texts.This is working fine. But I want the second image to be shown on top of the remaining texts.

Please give your suggestions.

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Simple Expanding</title>
<script language="javascript">
function show(){
ddd.style.display='inline';
}
function hide(){
ddd.style.display='none';
}
</script>
</head>
<body>
<div id="d1" style="z-index:2;position:relative">
<img src="http://www.leviossa.com/images/index_02.gif" onMouseOver="show()" onMouseOut="hide()"/>
</div>
<!--Effect.toggle('d6','appear')-->
<div id="d6" style="z-index:3;position:relative">
<img src="http://www.leviossa.com/images/index_03.gif"/>
</div>
<div id="d2" style="z-index:1;position:relative">
sadnjaksd asdlknasldnas<br />
</div>
<script language="javascript">
var ddd = document.getElementById('d6');
</script>
</body>
</html>

Thanks,
Mahendran A.
Feb 8 '08 #3

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

Similar topics

3
by: Varun | last post by:
Hello I am trying to make the items in my combobox be removed if they are present in my array I cant however get my code to work. The values are read into my combobox using a datareader. I then...
3
by: The Dana's | last post by:
I need to create a static HTML file that runs only on the local client PC. On the page (say PageA.htm), I would like for a hypelink to another page (Page B) to appear ONLY if the target file the...
2
by: dave | last post by:
This little problem is driving me nuts!! On my webform page I create 2 variables.. Protected p_dml As String = "I" Public Const mwv_id As Integer = 0 ' originally had mwv_id as Protected
21
by: StriderBob | last post by:
Situation : FormX is mdi child form containing 2 ListViews ListView1 contains a list of table names and 4 sub items with data about each table. ListView2 contains a list of the columns on each...
7
by: Mel | last post by:
I need to go through each and every one of the form elements on my page and save them to a file, so that when a user returns from whereever, i can present the data back to the user. Has anyone...
3
by: Kevin Blount | last post by:
I'm using the following code to create a DropDownList based on the contents of a text file, which works. Now I want to add another feature, which is where I need some guidance. On one page I...
9
by: Greg Collins [Microsoft MVP] | last post by:
I've done a bit of research on this topic in the newsgroups and on MSDN, and though it sounds possible, I still don't understand how I would make it work. I want to be able to use named groups to...
1
by: xpnctoc | last post by:
Here's the 30,000-ft. view: I wrapped an asp:Menu control in an ascx control. When I try to dynamically populate the menu in the ascx control, the items appear, but clicking on them fails to trigger...
0
by: =?Utf-8?B?bWFib25k?= | last post by:
Hi I want to loop through the menu items (including sub menus) of a toolbar. I'm using this at present Dim mnu As ToolStripMenuItem For Each mnu In Me.MenuStrip1.Items 'do something to menu...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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
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.