Persönliche Werkzeuge

Vorlage:BildGrossZoom

Aus BogenWiki

(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
Zeile 28: Zeile 28:
.btn1d { color:#808080; }
.btn1d { color:#808080; }
.btn1a { color:#80FF80; background-color:#D0D0D0; border: 1px solid #B0B0B0; }
.btn1a { color:#80FF80; background-color:#D0D0D0; border: 1px solid #B0B0B0; }
-
</style></html>
+
</style>
 +
<script type="text/javascript">
 +
function BGZBtnClick(sBtn)
 +
{
 +
  eDivNormal = document.getElementById('BGZ-ModeNormal');
 +
  eDivZoom = document.getElementById('BGZ-ModeZoom');
 +
  eDivFSZoom = document.getElementById('BGZ-ModeFSZoom');
 +
  switch (sBtn) {
 +
  case 'BGZNormal':
 +
    eDivZoom.style.display = 'none';
 +
    eDivFSZoom.style.display = 'none';
 +
    eDivNormal.style.display = 'inline-block';
 +
    break;
 +
  case 'BGZZoom':
 +
    eDivFSZoom.style.display = 'none';
 +
    eDivNormal.style.display = 'none';
 +
    eDivZoom.style.display = 'inline-block';
 +
    eDivBGZZoomNL = document.getElementById('BGZ-zoom-nl');
 +
    if (eDivBGZZoomNL) {
 +
      eDivBGZZoomNL.id = 'BGZ-zoom';
 +
      LoadBGZZoom();
 +
    }
 +
    break;
 +
  case 'BGZFSZoom':
 +
    eDivZoom.style.display = 'none';
 +
    eDivNormal.style.display = 'none';
 +
    eDivFSZoom.style.display = 'inline-block';
 +
    break;
 +
  }
 +
}
 +
LoadScriptElem = 0;
 +
function loadScript(url, callback)
 +
{
 +
  // Adding the script tag to the head
 +
  var eHead = document.getElementsByTagName('head')[0];
 +
  LoadScriptElem = document.createElement('script');
 +
  LoadScriptElem.type = 'text/javascript';
 +
  LoadScriptElem.src = url;
 +
  // Then bind the event to the callback function.
 +
  // There are several events for cross browser compatibility.
 +
  if (typeof(callback) != 'undefined') {
 +
    LoadScriptElem.onreadystatechange = callback;
 +
    LoadScriptElem.onload = callback;
 +
  }
 +
  // Fire the loading
 +
  eHead.appendChild(LoadScriptElem);
 +
}
 +
function LoadBGZZoom()
 +
{
 +
  var DateObj = new Date();
 +
  BGZLoadTimeStart = DateObj.getTime()/1000;
 +
  loadScript('/bogenwiki/extensions/BGZ/BGZGate.php?BI=</html>{{{Bild}}}<html>&CL&_WU='+wgUserName+'&_GE=</html>{{{Gebiet}}}<html>&_GE1=</html>{{{Gebiet1|}}}<html>&_KN=</html>{{{MiNr}}}<html>',BGZZoomInit);
 +
}
 +
var BGZZoomInit = function() {
 +
  BGZInit("</html>{{{Bild}}}<html>",false,wgUserName,'</html>{{{Gebiet}}}<html>','</html>{{{Gebiet1|}}}<html>',</html>{{{MiNr}}}<html>);
 +
  BGZ.eCCScript.parentNode.removeChild(LoadScriptElem);
 +
};
 +
</script></html>
{|style="background:#C0C0C0" cellpadding="4" cellspacing="1" width="100%"
{|style="background:#C0C0C0" cellpadding="4" cellspacing="1" width="100%"
|-style="background:#E0E0E0"
|-style="background:#E0E0E0"
Zeile 42: Zeile 99:
  |#default=<html><span style="color:red"><b>Gebiet1 unbekannt! ({{{Gebiet1}}})</b></span></html>}} Jahr
  |#default=<html><span style="color:red"><b>Gebiet1 unbekannt! ({{{Gebiet1}}})</b></span></html>}} Jahr
|#default={{{Gebiet}}} MiNr.}} {{{SatzMiNr}}}#{{#ifeq:"{{{Typ}}}"|"Marke"|MiNr{{{MiNr}}}|{{#ifeq:"{{{Typ}}}"|"Link"|{{{Link}}}|Bogen_{{{Bild}}}}}}}|Zurück]]</b>&nbsp;&nbsp;&nbsp;<nowiki
|#default={{{Gebiet}}} MiNr.}} {{{SatzMiNr}}}#{{#ifeq:"{{{Typ}}}"|"Marke"|MiNr{{{MiNr}}}|{{#ifeq:"{{{Typ}}}"|"Link"|{{{Link}}}|Bogen_{{{Bild}}}}}}}|Zurück]]</b>&nbsp;&nbsp;&nbsp;<nowiki
-
/><html><div class="btn1a" id="BGZ-ModeNormal" onclick="BgFormBtnClick(this);" onmouseenter="this.className='btn1h';" onmouseleave="this.className='btn1n';">Normal</div></html>&nbsp;<nowiki
+
/><html><div class="btn1a" id="BGZ-ModeNormal" onclick="BgFormBtnClick('BGZNormal');" onmouseenter="this.className='btn1h';" onmouseleave="this.className='btn1n';">Normal</div></html>&nbsp;<nowiki
-
/><html><div class="btn1n" id="BGZ-ModeZoom" onclick="BgFormBtnClick(this);" onmouseenter="this.className='btn1h';" onmouseleave="this.className='btn1n';" >Zoom</div></html>&nbsp;<nowiki
+
/><html><div class="btn1n" id="BGZ-ModeZoom" onclick="BgFormBtnClick('BGZZoom');" onmouseenter="this.className='btn1h';" onmouseleave="this.className='btn1n';" >Zoom</div></html>&nbsp;<nowiki
-
/><html><div class="btn1n" id="BGZ-ModeFSZoom" onclick="BgFormBtnClick(this);" onmouseenter="this.className='btn1h';" onmouseleave="this.className='btn1n';">Fullscreen-Zoom</div></html>&nbsp;
+
/><html><div class="btn1n" id="BGZ-ModeFSZoom" onclick="BgFormBtnClick('BGZFSZoom');" onmouseenter="this.className='btn1h';" onmouseleave="this.className='btn1n';">Fullscreen-Zoom</div></html>&nbsp;
|-style="background:black;"
|-style="background:black;"
|<html><div id="BGZ-ModeNormalDiv" style="display:inline-block;width:100%;padding:0px;margin:0px;"></html>
|<html><div id="BGZ-ModeNormalDiv" style="display:inline-block;width:100%;padding:0px;margin:0px;"></html>
Zeile 56: Zeile 113:
|align="left" width="10px"|<html><img id="BGZ-thumb" src=""></html>
|align="left" width="10px"|<html><img id="BGZ-thumb" src=""></html>
|align="left" rowspan="2"|<html>
|align="left" rowspan="2"|<html>
-
<div id="BGZ-zoom" style="display:box;cursor:default;width:100%;height:100px;background-color:black;background-repeat:no-repeat;"></div>
+
<div id="BGZ-zoom-nl" style="display:box;cursor:default;width:100%;height:100px;background-color:black;background-repeat:no-repeat;"></div>
-
<script type="text/javascript">
+
-
  var DateObj = new Date();
+
-
  BGZLoadTimeStart = DateObj.getTime()/1000;
+
-
</script><script type="text/javascript" src="/bogenwiki/extensions/BGZ/BGZGate.php?BI=</html>{{{Bild}}}<html>&CL&_WU=Nugman&_GE=</html>{{{Gebiet}}}<html>&_GE1=</html>{{{Gebiet1|}}}<html>&_KN=</html>{{{MiNr}}}<html>"></script>
+
-
<script type="text/javascript">
+
-
  BGZInit("</html>{{{Bild}}}<html>",false,wgUserName,'</html>{{{Gebiet}}}<html>','</html>{{{Gebiet1|}}}<html>',</html>{{{MiNr}}}<html>);
+
-
</script>
+
</html>
</html>
|-valign="center"
|-valign="center"

Version vom 09:32, 10. Nov. 2018

Beschreibung
Name: BildGrossZoom
Beschreibung:
Parameter:
Gebiet  
Bezeichnung des Gebietes. Zulässige Bezeichnungen siehe Vorlage SeiteLink Parameter Gebiet.
Gebiet1  
Untergeordnetes Gebiet zum Sammelgebiet. Siehe Vorlage SeiteLink Parameter Gebiet1.
SatzMiNr 
Katalognummer des Satzed zu dem die Marke gehört.
MiNr  
Katalognummer der Marke.
Bild  
Anfang des Bilddateinamens. z.B. bnd0694A.1
Typ  
Bogen
Beispiele
Beispiele siehe Seite Test Bogen-Zoom (Einbidung ins Wiki) oder als Stand alone (Fullscreen).

Eine ausführliche Beschreibung befindet sich in "Beschreibung BildGrossZoom".

Zurück zur Referenzliste der Vorlagen