Forums

This topic is locked

Can anyone help me with copying layers?

Posted 27 Oct 2007 17:47:03
1
has voted
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> &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&gt;
&lt;link rel="stylesheet" type="text/css" href="style.css" /&gt;
&lt;title&gt;Untitled Document&lt;/title&gt;
&lt;script language="javascript"&gt;
function show(divValue){
document.getElementById("picture".innerHTML = '&lt;img src='+divValue+' /&gt;';

}

&lt;/script&gt;

&lt;/head&gt;
&lt;body onload="show('images/header_bg.png');"&gt;
&lt;table width="60%" border="0"&gt;
&lt;tr&gt;
&lt;td&gt;&lt;div id="picture"&gt;&nbsp;&lt;/div&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&nbsp;&lt;/td&gt;
&lt;td&gt;&nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;input name="button1" type="button" value="button 1" onclick="show('images/header_bg.png ')" /&gt;
&lt;a href="#" onclick="show('images/tab.png ')"&gt;click here&lt;/a&gt;
&lt;input name="button3" type="button" value="button 3" onclick="show('images/header_bg.png ')" /&gt;
&lt;a href="#" onclick="show('images/tab.png ')"&gt;click here&lt;/a&gt;
&lt;/body&gt;
&lt;/html&gt;</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

Reply to this topic