Tooltip im IE

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Tooltip im IE

    Hallo, habe jetzt ein Tooltip eingebaut und dieser funktioniert leider nur im Firefox aber nicht im IE. Im IE ist er einmal kurz am zucken und dann wird nichts angezeigt. Weiß vieleicht jemand warum ?

    PHP Code:
    <html>
    <
    head>
    <
    style type="text/css">
    .
    tooltip {
        
    positionabsolute;
        
    displaynone;
        
    font:10px Verdana;
        
    font-style:normal;  
        
    color#cccccc;
        
    padding:2px 2px 2px 2px
        
    background-color:#336699; 
        
    border:1px solid #000000;
    }

    .
    tooltip .head{
        
    font-size10px;
        
    colorwhite;
        
    font-weightbold;
        
    padding2px;
    }
    .
    tooltip .table{
        
    font-size9px;
        
    border-collapsecollapse;
        
    border1px dashed #000000;
    }
    </
    style>
    <
    script language="JavaScript" type="text/javascript">
    var 
    xFromMouse 50;
    var 
    yFromMouse = -100;

    tip null;
    document.onmousemove moveTip;

    function 
    moveTip(e) {
        
    = (document.all) ? window.event.document.body.scrollLeft e.pageX;
        
    = (document.all) ? window.event.document.body.scrollTop  e.pageY;
        if (
    tip != null) {
            
    tip.style.left = (xFromMouse) + "px";
            
    tip.style.top  = (yFromMouse) + "px";
        }
    }

    function 
    showTip(id) {
        
    tip document.getElementById(id);
        
    tip.style.display "block";
    }

    function 
    hideTip() {
        
    tip.style.display "none";
    }
    </
    script

    PHP Code:
    $tplv .= "<div class=\"tooltip\" id=\".$row[id].\">
    <IMG SRC=\"
    $row[pict_url]\" width=\"100%\" border=\"0\" alt=\"\"></div>
    <a href=\#; onMouseOver=\"showTip('.
    $row[id].');\" onMouseOut=\"hideTip();\">
    <IMG SRC=\"
    $row[pict_url]\" width=\"80\" border=\"0\" alt=\"\">"
    Gruß Paulus

  • #2
    Ich rate mal drauf los:
    http://de.selfhtml.org/html/referenz...#id_idref_name

    Comment


    • #3
      Hilft mir nicht wirklich weiter ! Leider.

      Comment


      • #4
        Zum x-ten verflixten Mal:
        PHP-Code interessiert absolut kein Bisschen, wenn du ein clientseitiges Problem diskutieren willst.
        I don't believe in rebirth. Actually, I never did in my whole lives.

        Comment


        • #5
          Reg dich ab Junge. Schließ dein Forum wenn Du dich nur aufregst weil man mal was falsches postet.

          Comment

          Working...
          X