|
|||
Wie meinst du das mit herausnehmen?
In line1 und line2 stehen keine Eventhandler. PHP-Code:
https://developer.mozilla.org/en/DOM...dEventListener Leider weiß ich noch nicht wie. |
Sponsored Links |
|
|||
Magento-Quellcode
HTML-Code:
/** * @var Mage_Page_Block_Html_Header $this */ ?> <div class="header-container"> <div class="header"> <?php if ($this->getIsHomePage()):?> <h1 class="logo"><strong><?php echo $this->getLogoAlt() ?></strong><a href="<?php echo $this->getUrl('') ?>" title="<?php echo $this->getLogoAlt() ?>" class="logo"><img src="<?php echo $this->getLogoSrc() ?>" alt="<?php echo $this->getLogoAlt() ?>" /></a></h1> <?php else:?> <a href="<?php echo $this->getUrl('') ?>" title="<?php echo $this->getLogoAlt() ?>" class="logo"><strong><?php echo $this->getLogoAlt() ?></strong><img src="<?php echo $this->getLogoSrc() ?>" alt="<?php echo $this->getLogoAlt() ?>" /></a> <?php endif?> <div class="quick-access"> <?php echo $this->getChildHtml('topSearch') ?> <p class="welcome-msg"><?php echo $this->getWelcome()?></p> <?php echo $this->getChildHtml('topLinks') ?> <?php echo $this->getChildHtml('store_language') ?> <!-- Aufruf zu meinem einem eigenen Block --> <?php echo $this->getChildHtml('test'); ?> <!-- --> </div> <?php echo $this->getChildHtml('topContainer'); ?> </div> </div> HTML-Code:
<li> <div id="button" onmouseover="mopen('menue');" onmouseout="mclose('menue');"> <div class="line1"> <?php echo $this->__('headline'); ?> </div> <div class="line2"> <?php echo $this->__('subline'); ?> </div> </div> <ul id="menue"> <li>accessory1</li> <li>accessory2</li> <li>accessory3</li> </ul> </li> |
|
|||
Hey, danke für dein Bemühen. Das Problem hab ich so gelöst, dass ich die Übergabeparameter im JS überprüfe onmouseover(id). Im Grenzbereich der inneren Divs werden nämlich auch Events ausgelöst mit "willkürlichen" Parametern.
|
|
||||
Zitat:
Zitat:
Das Problem in diesem Fall ist, dass das mouseout hier gefeuert wird, sobald die Maus das DIV '#button' verläßt, auch bei Elementen innerhalb des DIV. Wenn aber Jquery im Einsatz ist, ist dies auch kein Problem: .mouseenter() – jQuery API Geändert von protonenbeschleuniger (22.11.2010 um 12:12 Uhr) |
|
||||
Zitat:
Hier habe ich mal ein Script gefunden, wie das ganze mit etwas Aufwand trotzdem verhindert werden kann: fixOnMouseOut Test Gruß |
|
||||
Zitat:
Wie gesagt, wenn jquery zum, Einsatz kommt, ist diese Funktionalität schon eingebaut. |
|
||||
Zitat:
Testcase zu onMouseOut Für jQuery hast du ja schon geschrieben, dass dies es dort standardmäßig unterbunden wird. Wie man es auch ohne jQuery verhindert, steht in dem vorhin geposteten Link. Gruß |
Sponsored Links |
Themen-Optionen | |
Ansicht | |
|
|
Ähnliche Themen | ||||
Thema | Autor | Forum | Antworten | Letzter Beitrag |
Fragen zu CSS und Joomla | DOKTOR | CSS | 2 | 23.05.2011 20:29 |
Brauche Hilfe: Schwarzes Nichts | Zwox | CSS | 10 | 19.11.2010 17:53 |
Header entfernen | tripple | CSS | 17 | 15.06.2010 16:41 |
Schriftfarbe in den Eintragungsfeldern von jforms | Steveislucky | CSS | 2 | 16.03.2010 11:59 |
CSS Text nebeinander? | carstiee09 | CSS | 13 | 13.11.2009 20:18 |