|
|
Hallo, ich habe eine Reihe von ImageMaps (kleine Quadrate) erstellt, bei MouseOver erscheint ein Erklärungstext. Dieser Text soll so positioniert werden, dass er immer an selbiger Stelle erscheint, unabhängig davon, über welcher ImageMap ich mich gerade im MouseOver - Zustand befinde, lediglich der Inhalt des Textes soll variieren! Das finktioniert auch alles!
Problem:
Wenn ich die Größe meines Browserfensters ändere, verschiebt sich der Text. Ich möchte aber, dass er immer an selbiger Stelle erscheint, absolut positioniert, unabhängig davon, wie beim Anwender die Fenstergröße des Browsers aufgezogen ist - das kann ich ja schlecht beeinflussen!
//////////////// HTML - Code /////////////////////
<div class="quadrateProjekte" style="margin-left: 21px"><a href="foto_reportage.htm" onmouseover="this.T_FIX = [500, 460];return escape('Reportage')"><img src="images/A59B87_quadrat_akt.gif" alt="" width="9" height="9"></a></div>
<div class="quadrateProjekte" style="margin-left: 38px"><a href="foto_architektur.htm" onmouseover="this.T_FIX = [500, 460];return escape('Architektur')"><img src="images/D0C3A7_quadrat.gif" alt="" width="9" height="9"></a></div> <div class="quadrateProjekte" style="margin-left: 56px"><a href="foto_portrait.htm" onmouseover="this.T_FIX = [500, 460];return escape('Portrait')"><img src="images/D0C3A7_quadrat.gif" alt="" width="9" height="9"></a></div> etc...
Der Befehl genügt nicht ???: onmouseover="this.T_FIX = [500, 460]
//////////////// GLOBAL TOOPTIP CONFIGURATION /////////////////////
var ttAbove = true; // tooltip above mousepointer? Alternative: true var ttBgColor = ""; var ttBgImg = ""; // path to background image; var ttBorderColor = ""; var ttBorderWidth = 0; var ttDelay = 100; // time span until tooltip shows up [milliseconds] var ttFontColor = "#706C6C"; var ttFontFace = "verdana,sans-serif"; var ttFontSize = "9px"; var ttFontWeight = "normal"; // alternative: "bold"; var ttLeft = false; // tooltip on the left of the mouse? Alternative: true var ttOffsetX = 12; // horizontal offset of left-top corner from mousepointer var ttOffsetY = 15; // vertical offset " var ttOpacity = 100; // opacity of tooltip in percent (must be integer between 0 and 100) var ttPadding = 3; // spacing between border and content var ttShadowColor = ""; var ttShadowWidth = 0; var ttStatic = true; // tooltip move with the mouse? Alternative: false var ttSticky = false; // do NOT hide tooltip on mouseout? Alternative: true var ttTemp = 0; // time span after which the tooltip disappears; 0 (zero) means "infinite timespan" var ttTextAlign = "left"; var ttTitleColor = "#ffffff"; // color of caption text var ttWidth = 400;
//////////////////// END OF TOOLTIP CONFIG ////////////////////////
|
|
| 15.05.2006 17:10:18 |
|
Wechsel zu
Die letzten Beiträge aus diesen Forum
|
|