Forums
This topic is locked
Can anyone help me with copying layers?
27 Oct 2007 17:47:03 ps sheba posted:
Hi everyone,I have a table in a Dreamweaver working space.
I need a certain cell to change pictures so i converted the table to layers and at that particular layer i want to create many layers one lays on the other , each contains a different picture and when will a picture turns "visible" that depends on where the user clicks.
As first step i want to make many layers on that existing layer so i want to copy it to many layers i dont know how to do that .
Can anyone help me with that ?
Replies
Replied 01 Nov 2007 20:17:06
01 Nov 2007 20:17:06 john newsome replied:
not sure if this is what you want
<pre id=code><font face=courier size=2 id=code> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="style.css" />
<title>Untitled Document</title>
<script language="javascript">
function show(divValue){
document.getElementById("picture".innerHTML = '<img src='+divValue+' />';
}
</script>
</head>
<body onload="show('images/header_bg.png');">
<table width="60%" border="0">
<tr>
<td><div id="picture"> </div></td>
<td></td>
<td> </td>
<td> </td>
</tr>
</table>
<input name="button1" type="button" value="button 1" onclick="show('images/header_bg.png ')" />
<a href="#" onclick="show('images/tab.png ')">click here</a>
<input name="button3" type="button" value="button 3" onclick="show('images/header_bg.png ')" />
<a href="#" onclick="show('images/tab.png ')">click here</a>
</body>
</html></font id=code></pre id=code>
<pre id=code><font face=courier size=2 id=code> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="style.css" />
<title>Untitled Document</title>
<script language="javascript">
function show(divValue){
document.getElementById("picture".innerHTML = '<img src='+divValue+' />';
}
</script>
</head>
<body onload="show('images/header_bg.png');">
<table width="60%" border="0">
<tr>
<td><div id="picture"> </div></td>
<td></td>
<td> </td>
<td> </td>
</tr>
</table>
<input name="button1" type="button" value="button 1" onclick="show('images/header_bg.png ')" />
<a href="#" onclick="show('images/tab.png ')">click here</a>
<input name="button3" type="button" value="button 3" onclick="show('images/header_bg.png ')" />
<a href="#" onclick="show('images/tab.png ')">click here</a>
</body>
</html></font id=code></pre id=code>
Replied 02 Nov 2007 17:05:29
02 Nov 2007 17:05:29 ps sheba replied:
Hi John,
And thanks for your efforts.
I was looking for "copying" the layer "visually" using dreamweaver and i finally got a very simple
solution: Making a new layer anywhere on the "design" space of dw and then, in "properties" i
inserted the same dimensions (W,H) and location of the first layer (L, T). That made a new layer of
same size and location as the other layer.
Thanks
And thanks for your efforts.
I was looking for "copying" the layer "visually" using dreamweaver and i finally got a very simple
solution: Making a new layer anywhere on the "design" space of dw and then, in "properties" i
inserted the same dimensions (W,H) and location of the first layer (L, T). That made a new layer of
same size and location as the other layer.
Thanks