And the creation of the provisional target coordinates the DIV
Related Tags:CSS DIV div css div css Guide div css layout div class div location div borders div position div positioning div height div align div layer not-for-div trip div span div background div layout div rolling div select div effects div around div width div ul div flash div nbsp div manuals div usage div site div parameters div interface div nested div top div width div border div style div onmouseover div visibility the body div div skills div framework div css tutorial css map download div
<DOCTYPE html PUBLIC "- / / w3c / / DTD XHTML 1.0 Transitional / / EN"
"Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title> Create and target coordinates of the Council of DIV </ title>
<script Language="javascript">
<! --
Function getXY (Obj)
(
/ / This method from bbs.51js.com Baoyu
For (var sumTop = 0, sumLeft = 0; Obj! = Document.body; sumTop + = Obj.offsetTop, sumLeft + = Obj.offsetLeft, Obj = Obj.offsetParent);
Return (left: sumLeft, top: sumTop)
)
Function getCellPos ()
(
Document.getElementById ( 'cellPos')? Document.getElementById (' cellPos'). RemoveNode (true ):"";
Var pos = getXY (event.srcElement);
Var temp = document.createElement ( "DIV");
Temp.style.position = "absolute";
Temp.style.width = event.srcElement.width;
Pos.left temp.style.left = +10;
Temp.style.top = pos.top-6;
Temp.style.border = 1;
Temp.style.background = "# 969696";
Temp.style.color = "# FFFFFF";
Temp.id = "cellPos";
Temp.innerHTML = "<marquee scrollamount='2'> left:" + + pos.left "| top:" + + pos.top "</ marquee>";
Document.body.appendChild (temp);
)
/ / ->
</ Script>
<style Type="text/css">
<! --
Td (
Font-size: 12px;
Text-decoration: none;
)
-->
</ Style>
</ Head>
<body>
<table Width="868" cellpadding="6" bgcolor="#969696" onclick="getCellPos()">
<tr>
<td Width="213" bgcolor="#E0E0E0"> click on the cell above location to create DIV </ td>
<td Width="199" bgcolor="#E0E0E0"> click on the cell above location to create DIV </ td>
<td Width="214" bgcolor="#E0E0E0"> click on the cell above location to create DIV </ td>
<td Width="232" bgcolor="#E0E0E0"> click on the cell above location to create DIV </ td>
</ Tr>
<tr>
<td Width="213" bgcolor="#E0E0E0"> click on the cell above location to create DIV </ td>
<td Width="199" bgcolor="#E0E0E0"> click on the cell above location to create DIV </ td>
<td Width="214" bgcolor="#E0E0E0"> click on the cell above location to create DIV </ td>
<td Width="232" bgcolor="#E0E0E0"> click on the cell above location to create DIV </ td>
</ Tr>
<tr>
<td Width="213" bgcolor="#E0E0E0"> click on the cell above location to create DIV </ td>
<td Width="199" bgcolor="#E0E0E0"> click on the cell above location to create DIV </ td>
<td Width="214" bgcolor="#E0E0E0"> click on the cell above location to create DIV </ td>
<td Width="232" bgcolor="#E0E0E0"> click on the cell above location to create DIV </ td>
</ Tr>
</ Table>
</ Body>
</ Html>
- CSS + DIV simple example
- DIV CSS a tree menu
- The advantages and disadvantages of CSS + DIV
- CSS: ? ? ? ?div ? ?
- What is DIV + CSS
- + CSS DIV named norms
- Div + css ? ? ?
- Div + css layout examples
- On div css layout
- Div + css layout entry
- On css layout div +
- Css + div information collection
- Css + interface standard div
- + CSS classic div
- Reconstruction with Div + CSS website
- CSS layout + DIV Guide
- Div + css Series
- CSS + DIV benefits
- DIV + CSS ranks control
- A DIV CSS navigation of the results




