Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

onMouseOver -> onMouseOut

Empfohlene Antworten

Veröffentlicht

Hi,

ich habe noch nie was mit onMouseOver und onMouseOut gemacht.

Und nun will ich das für meine Menüleiste verwenden. Ich habe eine Tabelle erstellt. Die Tabelle erhält eine Hintergrundgrafik.

Deswegen ist die Tabellenspalte mit pixel und nicht relativ angegeben.

Mein OnMouseOver und Out habe ich soweit auch eingefügt und funktioniert. Nun würde

ich allerdings gerne nicht den Text selbst ändern, sondern die Schriftfarbe

und die Größe. Wie kann ich das machen?

hier mein Code der Tabelle:

<table width="181" border="0">
<tr>
<td width="181" height="42" background="menu_button.jpg">    <b><a href="start.html" onMouseover="this.innerHTML='Home'" onMouseout="this.innerHTML='Home'" style="text-decoration:none">Home</a></b></td>
</tr>
<tr>
<td width="181"height="42" background="menu_button.jpg">    <b>zur Person</b></td>
</tr>
<tr>
<td width="181" height="42" background="menu_button.jpg">    <b>Bilder</b></td>
</tr>
<tr>
<td width="181" height="42" background="menu_button.jpg">    <b>Gästebuch</b></td>
</tr>
</tr>
<tr>
<td width="181" height="42" background="menu_button.jpg">    <b>Links</b></td>
</tr>
</table>[/PHP]

Cu Snopsy

Welche Schriftfarbe möchtest du ändern. Die der Menüpunkte oder des Mouseover/-out -Textes???

Ich möchte die Schriftfarbe und -größe des MouseOver/-Out Textes ändern.

Hallo,

geht mit Stylesheets. Allerdings würd ich mir das unter Opera auch anschaun(verhält sich anders, bei Vergrößerung "beschneidet" er den Text).

<html>
<head>
<style type="text/css">
a:link { font-weight:bold; color:#0000E0; text-decoration:none }
a:visited { font-weight:bold; color:#000080; text-decoration:none }
a:hover { font-weight:bold; color:#AAAAAA; text-decoration:none; font-size:20pt}
a:active { font-weight:bold; color:#E00000; text-decoration:underline }
a:focus { font-weight:bold; color:#00E000; text-decoration:underline }
</style>
</head>
<body>
<a href="start.html">Home</a>
</body>
</html>[/PHP]

Danke, das funktioniert so einwandfrei.

Grüßle Snopsy

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.