[GastForen Archiv Adobe GoLive layer erscheint nicht dort wo er soll

  • Suche
  • Hilfe
  • Lesezeichen
  • Benutzerliste
Archiv - Archivierte Foren
Themen
Beiträge
Moderatoren
Letzter Beitrag

layer erscheint nicht dort wo er soll

max
Beiträge gesamt:

19. Jun 2002, 21:28
Beitrag # 1 von 3
Bewertung:
(437 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
Hallo,
habe ein Problem auf folgender Seite:

<html>

<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta name="generator" content="Adobe GoLive 5">
<title>test</title>
<style type="text/css" media="screen"><!--
.hg { background: white url(../../Eigene%20Dateien/Max/Web_Auftritte/owd_6_02%20ordner/owd_6_02/grafik/hg/home.gif) no-repeat }
#hometext { position: absolute; top: 27px; left: 514px; width: 258px; height: 336px; visibility: visible }
#leistungentext { position: absolute; top: 1px; left: 514px; width: 254px; height: 382px; visibility: hidden }
#realisationtext { position: absolute; top: 60px; left: 528px; width: 245px; height: 308px; visibility: hidden }
#loesungentext { position: absolute; top: 30px; left: 516px; width: 256px; height: 336px; visibility: hidden }
--></style>
<style media="screen" type="text/css"><!--
#leistungentext { position: absolute; top: 3px; left: 479px; width: 321px; height: 382px; visibility: hidden }
#realisationtext { position: absolute; top: 60px; left: 528px; width: 282px; height: 308px; visibility: hidden }
#loesungentext { position: absolute; top: 30px; left: 541px; width: 287px; height: 336px; visibility: hidden }
#hometext { position: absolute; top: 115px; left: 536px; width: 231px; height: 267px; visibility: visible }
--></style>
<csactions>
<csaction name="3998D51" class="ShowHide" type="onevent" val0="hometext" val1="0">
<csaction name="3998D73" class="ShowHide" type="onevent" val0="leistungentext" val1="1">
<csaction name="3998D85" class="ShowHide" type="onevent" val0="leistungentext" val1="0">
<csaction name="3998D87" class="ShowHide" type="onevent" val0="hometext" val1="1">
<csaction name="3998DD9" class="ShowHide" type="onevent" val0="realisationtext" val1="1">
<csaction name="3998DE11" class="ShowHide" type="onevent" val0="hometext" val1="0">
<csaction name="3998DF13" class="ShowHide" type="onevent" val0="realisationtext" val1="0">
<csaction name="3998E015" class="ShowHide" type="onevent" val0="hometext" val1="1">
<csaction name="3998E917" class="ShowHide" type="onevent" val0="hometext" val1="0">
<csaction name="3998EA19" class="ShowHide" type="onevent" val0="loesungentext" val1="1">
<csaction name="3998EB21" class="ShowHide" type="onevent" val0="loesungentext" val1="0">
<csaction name="3998EC23" class="ShowHide" type="onevent" val0="hometext" val1="1">
</csactions>
<csscriptdict>
<script><!--
CSStopExecution = false;
function CSAction(array) {
return CSAction2(CSAct, array);
}
function CSAction2(fct, array) {
var result;
for (var i=0;i<array.length;i++) {
if(CSStopExecution) return false;
var actArray = fct[array[i]];
if(actArray == null) return false;
var tempArray = new Array;
for(var j=1;j<actArray.length;j++) {
if((actArray[j] != null) && (typeof(actArray[j]) == "object") && (actArray[j].length == 2)) {
if(actArray[j][0] == "VAR") {
tempArray[j] = CSStateArray[actArray[j][1]];
}
else {
if(actArray[j][0] == "ACT") {
tempArray[j] = CSAction(new Array(new String(actArray[j][1])));
}
else
tempArray[j] = actArray[j];
}
}
else
tempArray[j] = actArray[j];
}
result = actArray[0](tempArray);
}
return result;
}
CSAct = new Object;

CSAg = window.navigator.userAgent; CSBVers = parseInt(CSAg.charAt(CSAg.indexOf("/")+1),10);
function IsIE() { return CSAg.indexOf("MSIE") > 0;}
function CSIEStyl(s) { return document.all.tags("div")[s].style; }
function CSNSStyl(s) { return CSFindElement(s,0); }
function CSFindElement(n,ly) { if (CSBVers < 4) return document[n];
var curDoc = ly ? ly.document : document; var elem = curDoc[n];
if (!elem) { for (var i=0;i<curDoc.layers.length;i++) {
elem = CSFindElement(n,curDoc.layers[i]); if (elem) return elem; }}
return elem;
}

function CSSetStyleVis(s,v) { if (IsIE()) CSIEStyl(s).visibility = (v == 0) ? "hidden" : "visible";
else CSNSStyl(s).visibility = (v == 0) ? 'hide' : 'show'; }
function CSGetStyleVis(s) { if (IsIE()) return (CSIEStyl(s).visibility == "hidden") ? 0 : 1;
else return (CSNSStyl(s).visibility == 'hide') ? 0 : 1;}

function CSShowHide(action) {
if (action[1] == '') return;
var type=action[2];
if(type==0) CSSetStyleVis(action[1],0);
else if(type==1) CSSetStyleVis(action[1],1);
else if(type==2) {
if (CSGetStyleVis(action[1]) == 0) CSSetStyleVis(action[1],1);
else CSSetStyleVis(action[1],0);
}
}

// --></script>

</csscriptdict>
<csactiondict>
<script><!--
CSAct[/*CMP*/ '3998D51'] = new Array(CSShowHide,/*CMP*/ 'hometext',0);
CSAct[/*CMP*/ '3998D73'] = new Array(CSShowHide,/*CMP*/ 'leistungentext',1);
CSAct[/*CMP*/ '3998D85'] = new Array(CSShowHide,/*CMP*/ 'leistungentext',0);
CSAct[/*CMP*/ '3998D87'] = new Array(CSShowHide,/*CMP*/ 'hometext',1);
CSAct[/*CMP*/ '3998DD9'] = new Array(CSShowHide,/*CMP*/ 'realisationtext',1);
CSAct[/*CMP*/ '3998DE11'] = new Array(CSShowHide,/*CMP*/ 'hometext',0);
CSAct[/*CMP*/ '3998DF13'] = new Array(CSShowHide,/*CMP*/ 'realisationtext',0);
CSAct[/*CMP*/ '3998E015'] = new Array(CSShowHide,/*CMP*/ 'hometext',1);
CSAct[/*CMP*/ '3998E917'] = new Array(CSShowHide,/*CMP*/ 'hometext',0);
CSAct[/*CMP*/ '3998EA19'] = new Array(CSShowHide,/*CMP*/ 'loesungentext',1);
CSAct[/*CMP*/ '3998EB21'] = new Array(CSShowHide,/*CMP*/ 'loesungentext',0);
CSAct[/*CMP*/ '3998EC23'] = new Array(CSShowHide,/*CMP*/ 'hometext',1);

// --></script>

</csactiondict>
</head>

<body leftmargin="4" marginwidth="4" topmargin="0" marginheight="0" class="hg" text="#ff6603">
<table cool width="776" height="371" showgridx showgridy gridx="16" gridy="16" border="0" cellpadding="0" cellspacing="0">
<tr height="16">
<td width="80" height="370" rowspan="4"></td>
<td width="96" height="208" rowspan="3"></td>
<td width="176" height="80" rowspan="2"></td>
<td width="423" height="16"></td>
<td width="1" height="16"><spacer type="block" width="1" height="16"></td>
</tr>
<tr height="64">
<td width="423" height="192" rowspan="2" valign="top" align="left" xpos="352"><a href="../../Eigene%20Dateien/Max/Web_Auftritte/owd_6_02%20ordner/owd_6_02/seiten/leistungen.html" onmouseover="CSAction(new Array(/*CMP*/'3998D51',/*CMP*/'3998D73'));return true;" csover="3998D51,3998D73" onmouseout="CSAction(new Array(/*CMP*/'3998D85',/*CMP*/'3998D87'));" csout="3998D85,3998D87" title="Leistungen" target="body"><img src="../../Eigene%20Dateien/Max/Web_Auftritte/owd_6_02%20ordner/owd_6_02/bilder/home/leistungenblass2.JPG" width="160" height="85" border="0" alt="Leistungen"></a></td>
<td width="1" height="64"><spacer type="block" width="1" height="64"></td>
</tr>
<tr height="128">
<td width="176" height="128" valign="top" align="left" xpos="176"><a href="../../Eigene%20Dateien/Max/Web_Auftritte/owd_6_02%20ordner/owd_6_02/seiten/realisation.html" onmouseover="CSAction(new Array(/*CMP*/'3998DD9',/*CMP*/'3998DE11'));return true;" csover="3998DD9,3998DE11" onmouseout="CSAction(new Array(/*CMP*/'3998DF13',/*CMP*/'3998E015'));" csout="3998DF13,3998E015" title="Realisation" target="body"><img src="../../Eigene%20Dateien/Max/Web_Auftritte/owd_6_02%20ordner/owd_6_02/bilder/home/realisationrund2.JPG" width="160" height="98" border="0" alt="Umsetzung"></a></td>
<td width="1" height="128"><spacer type="block" width="1" height="128"></td>
</tr>
<tr height="162">
<td width="272" height="162" colspan="2" valign="top" align="left" xpos="80"><a href="../../Eigene%20Dateien/Max/Web_Auftritte/owd_6_02%20ordner/owd_6_02/seiten/leistungen.html" onmouseover="CSAction(new Array(/*CMP*/'3998E917',/*CMP*/'3998EA19'));return true;" csover="3998E917,3998EA19" onmouseout="CSAction(new Array(/*CMP*/'3998EB21',/*CMP*/'3998EC23'));" csout="3998EB21,3998EC23" title="L&ouml;sungen" target="body"><img src="../../Eigene%20Dateien/Max/Web_Auftritte/owd_6_02%20ordner/owd_6_02/bilder/home/loesungenrund2.JPG" width="160" height="83" border="0" alt="L&ouml;sungen"></a></td>
<td width="423" height="162"></td>
<td width="1" height="162"><spacer type="block" width="1" height="162"></td>
</tr>
<tr height="1" cntrlrow>
<td width="80" height="1"><spacer type="block" width="80" height="1"></td>
<td width="96" height="1"><spacer type="block" width="96" height="1"></td>
<td width="176" height="1"><spacer type="block" width="176" height="1"></td>
<td width="423" height="1"><spacer type="block" width="423" height="1"></td>
<td width="1" height="1"></td>
</tr>
</table>
<div id="hometext">
<p>layer 1</p>
</div>
<div id="leistungentext">
<div align="left">
<p>Layer <font face="Verdana,Lucida Console,Times New Roman" color="#ff6603" size="3"><b><nobr>Leistungen<br>
</nobr></b></font></p>
<p></p>
</div>
</div>
<div id="realisationtext">
Layer <font face="Verdana,Lucida Console,Times New Roman" color="#ff6603"><b>Umsetzung</b></font>
<p></p>
</div>
<div id="loesungentext">
<font face="Verdana,Lucida Console,Times New Roman" color="#ff6603"><b>L&ouml;sungen<br>
</b><br>
</font></div>
</body>

</html>
____________________________
Frage: diese Seite hat 4 Layer, die alle so ziemlich den gleichen Pixelabstand zum linken Rand haben. Bei der Aktion "Layer ein- bzw. ausblenden" erscheinen alle Layer bis auf "Layer Leistungen" (Leistungentext) an der richtigen Stelle. Warum verschiebt sich dieser eine Layer nach links, obwohl die Einstelungen im Inspektor gleich sind? Was muß ich tun damit es klappt? Wäre sehr dankbar für eine Antwort.
X

layer erscheint nicht dort wo er soll

Dirk Levy
  
Beiträge gesamt: 9464

19. Jun 2002, 21:49
Beitrag # 2 von 3
Beitrag ID: #5653
Bewertung:
(437 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
Hi,

warum hast Du einen Teil der Layer doppelt definiert?
Siehe mal in Deinen Quellcode, die Namen kommen
doppelt vor.
Außerdem stehen bei mir in GL6 alle Layer an
verschiedenen Positionen....

Gruß
Dirk


als Antwort auf: [#5652]

layer erscheint nicht dort wo er soll

SabineP
Beiträge gesamt: 7586

19. Jun 2002, 22:09
Beitrag # 3 von 3
Beitrag ID: #5655
Bewertung:
(437 mal gelesen)
URL zum Beitrag
Beitrag als Lesezeichen
Hallo Max, du hast da zwei mal Styles im Quellcode für die gleichen IDs.
Die IDs sind die Dinger mit dem Gartenzaun # davor.

<style type="text/css" media="screen"><!--
.hg eine Klasse für den Hintergrund
viele IDs
--></style>

Den zweiten style-Tag kannst Du komplett löschen:

<style media="screen" type="text/css"><!--
die gleichen IDs nochmal
--></style>

Der Abstand jeder einzelnen Ebene zum Linken Rand wird mit

left: 479px;
(left: Anzahl der Pixel)

festgelegt, egal ob die Ebene gerade sichtbar oder unsichtbar ist.

Ich hoffe das war verständlich.
Grüße von Sabine

[ Diese Nachricht wurde geändert von: SabineP am 2002-06-19 22:10 ]


als Antwort auf: [#5652]