Du bist nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: Panorama Community. Falls dies dein erster Besuch auf dieser Seite ist, lies bitte die Hilfe durch. Dort wird dir die Bedienung dieser Seite näher erläutert. Darüber hinaus solltest du dich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutze das Registrierungsformular, um dich zu registrieren oder informiere dich ausführlich über den Registrierungsvorgang. Falls du dich bereits zu einem früheren Zeitpunkt registriert hast, kannst du dich hier anmelden.

1

Mittwoch, 2. September 2015, 21:18

Polygone Hotspot - onclick=""

Hallo,

so und gleich das nächste Problem.

Habe mit dem Editor eine Hotspot gezeichnet. Habe jetzt verschiedene Versionen durch, wie ich, wenn ich drauf klicke - eine neue Website öffnen soll. aber bekomme es nicht hin. im prinzip braucht man doch nur irgnedwo $this->cacheCode('[php]','onclick="openurl('http://meineurl.de);"') eingeben. oder? Wenn es geht soll sich dabei noch ein neues fenster öffnen.

Was mache ich falsch. Danke .

$this->cacheCode('[php]',' <hotspot name="hs1" fillcolor="0xaaaaaa" fillalpha="0.5" borderwidth="3.0" bordercolor="0xaaaaaa" borderalpha="1.0"

>


<point ath="-68.996873" atv="80.936544" />
<point ath="-53.971245" atv="87.711084" />
<point ath="97.248162" atv="79.583488" />
<point ath="72.018786" atv="79.149549" />
<point ath="72.68644" atv="77.957549" />
<point ath="23.42239" atv="63.950187" />
<point ath="1.460879" atv="64.437515" />
<point ath="-13.968013" atv="62.50754" />
<point ath="-22.285312" atv="58.557593" />
<point ath="-38.149953" atv="67.58677" />
<point ath="-5.751307" atv="74.607959" />
<point ath="-24.568365" atv="81.7842" />
<point ath="-42.443519" atv="79.149646" />
<point ath="-42.443519" atv="79.149646" />



</hotspot>')

2

Mittwoch, 2. September 2015, 22:39

Ob der Code stimmt, weiß ich grad nicht, gängige Falle bei den "Neue Fenster" Geschichten in aktuellen Browsern: Wird oft geblockt und muss am oberene Fensterrand des Browsers manuell erlaubt werden. Übersieht man oft.

Gruß

3

Donnerstag, 3. September 2015, 08:29

Vor der schließenden Klammer fehlt ein Hochkomma:
$this->cacheCode('[php]','onclick="openurl('http://meineurl.de');"')

Und das onclick darf auch nicht irgendwo eigegeben werden, sondern das ist ein Attribut des hotspot Elements.

$this->cacheCode('[php]','<hotspot onclick="openurl('http://meineurl.de');" ... >...</hotspot>')

Für ein neues Fenster:

$this->cacheCode('[php]','<hotspot onclick="openurl('http://meineurl.de',_blank);" ... >...</hotspot>')

Immer nützlich:

Doku

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »uli021« (3. September 2015, 08:38)


4

Donnerstag, 3. September 2015, 12:41

Danke.

hmm

$this->cacheCode('[php]',' <hotspot name="hs1" fillcolor="0xaaaaaa" fillalpha="0.5" borderwidth="3.0" bordercolor="0xaaaaaa" borderalpha="1.0"

>


<point ath="-68.996873" atv="80.936544" />
<point ath="-53.971245" atv="87.711084" />
<point ath="97.248162" atv="79.583488" />
<point ath="72.018786" atv="79.149549" />
<point ath="72.68644" atv="77.957549" />
<point ath="23.42239" atv="63.950187" />
<point ath="1.460879" atv="64.437515" />
<point ath="-13.968013" atv="62.50754" />
<point ath="-22.285312" atv="58.557593" />
<point ath="-38.149953" atv="67.58677" />
<point ath="-5.751307" atv="74.607959" />
<point ath="-24.568365" atv="81.7842" />
<point ath="-42.443519" atv="79.149646" />
<point ath="-42.443519" atv="79.149646" />





<hotspot onclick="openurl('http://meineurl.de');">

</hotspot')

das kommt ein xml fehler... :-(

5

Donnerstag, 3. September 2015, 14:50

Wenn du dich mit xml nicht auskennst, wird es schwierig für dich, wenn du Änderungen per Hand machen willst.

Versuch's mal so:

$this->cacheCode('[php]','
<hotspot name="hs1" fillcolor="0xaaaaaa" fillalpha="0.5" borderwidth="3.0" bordercolor="0xaaaaaa" borderalpha="1.0" onclick="openurl('http://meineurl.de');">

<point ath="-68.996873" atv="80.936544" />
<point ath="-53.971245" atv="87.711084" />
<point ath="97.248162" atv="79.583488" />
<point ath="72.018786" atv="79.149549" />
<point ath="72.68644" atv="77.957549" />
<point ath="23.42239" atv="63.950187" />
<point ath="1.460879" atv="64.437515" />
<point ath="-13.968013" atv="62.50754" />
<point ath="-22.285312" atv="58.557593" />
<point ath="-38.149953" atv="67.58677" />
<point ath="-5.751307" atv="74.607959" />
<point ath="-24.568365" atv="81.7842" />
<point ath="-42.443519" atv="79.149646" />
<point ath="-42.443519" atv="79.149646" />

</hotspot>
')

6

Freitag, 4. September 2015, 17:44

Jo. Danke - jezzt klappt es - super.