tutorials.de Buch-Aktion 05/2012
Seite 1 von 2 12 LetzteLetzte
ERLEDIGT
JA
ANTWORTEN
23
ZUGRIFFE
6657
EMPFEHLEN
  • An Twitter übertragen
  • An Facebook übertragen
DIESES THEMA IST
GESCHLOSSEN
  1. #1
    antarama72 antarama72 ist offline Grünschnabel
    Registriert seit
    Jul 2007
    Beiträge
    3
    hallo forum...

    ...meine javascript kenntnisse wchsen grad und ich erarbeite mir grad im learning by doing die materie. bin aber seit tagen bei ein und dem selben problem:

    ich habe ein js kopiert und wollte dies gerne auch bei einer anderen seite einsetzen. doch leider funktioniert dies nicht...

    ...ich hätte gerne, dass ein kleines bild beim onmouseover groß angezeigt wird!

    auf dieser seite funktioniert es wunderbar:
    http://www.antarama72.com/dipl/galerie_studien1.php

    hier leider nicht:
    http://antarama72.com/architektour/k...tur_fotos.html

    kann mir jemand weiterhelfen?
    es muß auch nicht unbedingt der text unter dem bild stehen, es würde reichen wenn das bild größer angezeigt wird.
    PHP-Code:
    <a href="javascript:void(0);" onmouseover="this.T_WIDTH=164;this.T_PADDING=6;this.T_BGCOLOR='#ffffff'; return escape('<img src=img/bestand6/1.gif width=400 height=300><br />gunnar hat entworfen ...</a></a>')"><img src="img/bestand6/1.1.gif" alt="" height="90" width="120" border="0" /></a>] 
    das ist der quellcode der funktionierenden seite und dies der nicht funktionierenden...
    PHP-Code:
    <a href="javascript:void(0);" onmouseover="this.T_WIDTH=164;this.T_PADDING=6;this.T_BGCOLOR='#ffffff'; return escape('<img src=img/architektour/media/testkochen/1.gif width=261 height=173><br />schürze binden nicht vergessen ...</a></a>')"><img src="/architektour/media/testkochen/1.1.gif" alt="" height="85" width="85" border="0"></td
    eigentlich gleich, oder?
    am ende der seiten steht dann das script
    PHP-Code:
    <script language="JavaScript" type="text/javascript" src="wz_tooltip.js"></script> 
    es kann auch etwas anders sein, muß nicht mit dem script funktionieren...

    ...vielen dank für eure hilfe!
    grüße
    Geändert von antarama72 (03.07.07 um 10:17 Uhr)
     

  2. #2
    Maik Tutorials.de Gastzugang
    Hi,

    im HTML-Dokument stimmen die relativen Grafikpfade nicht, weshalb der Browser sie derzeit nicht findet.

    "img/architektour/media/testkochen/1.gif" muß "media/testkochen/1.gif" lauten, da der absolute Pfad zur Grafik http://antarama72.com/architektour/m...stkochen/1.gif lautet - gleiches gilt für die übrigen Grafiken.

    Und bitte beachte die Netiquette bzgl. deiner durchgängigen Kleinschreibung.
     

  3. #3
    antarama72 antarama72 ist offline Grünschnabel
    Registriert seit
    Jul 2007
    Beiträge
    3
    ... vielen Dank!

    Jetzt funktioniert es wie gewünscht...

    Manchmal sieht man den Wald vor lauter Bäumen nicht! Werde auch das mit der Groß- und Kleinschreibung beim nächsten mal beachten!

    Werde mich dann mal an die Arbeit machen und alle Fotos überarbeiten!

    Grüße
    Gunnar
     

  4. #4
    Slyd Slyd ist offline Rookie
    Registriert seit
    Jul 2007
    Beiträge
    7
    Hi...
    das mit den Bildern ist super....habe natürlich auch gleich versucht, dies in die HP einzubinden. Auch bei mr funktioniert das nicht....allerdings hab ich um diese Geschichte mit den Relativpfad zu umgehen direkt in Verzeichnis das Bild hineingepackt.....trozdem will es nicht...
    Code :
    1
    
    <A HREF="javascript:void(0);"ONMOUSEOVER="this.T_WIDTH=164;this.T_PADDING=6;this.T_BGCOLOR='#ffffff'; return escape('<img src=Raquel.JPG width=216 height=300><br />test</a></a>')"><IMG SRC="Raquel.JPG" ALT="" HEIGHT="150" WIDTH="120" BORDER="1"></A> </TD>
    Das Script habe ich natürlich auch aufgerufen....Vielleicht kann mir jemand helfen...

    Danke und beste Grüße Slyd
     

  5. #5
    Maik Tutorials.de Gastzugang
    Hi,

    hast du einen Link zur Problemseite, damit man da einen Blick drauf werfen kann? An dem Quellcode-Auszug lässt sich nämlich die Ursache für den Fehler nicht so recht ausmachen.

    Ansonsten überprüfe die Groß- und Kleinschreibung des Dateinamens, sowie die Dateiendung, denn "*.JPG" ist nicht gleich "*.jpg".
     

  6. #6
    Slyd Slyd ist offline Rookie
    Registriert seit
    Jul 2007
    Beiträge
    7
    Hi Maik,

    der link ist www.rac-bavaria.de schau mal rein.

    Danke

    Sorry musst ja auch wissen wohin...also unter "Unser Club" dann "Mitglieder" die Raquel hat den script bis jetzt...
     

  7. #7
    Maik Tutorials.de Gastzugang
    Hab's schon gefunden

    Stimmt der Pfad zur Script-Datei "wz_tooltip.js"?

    Denn unter http://www.rac-bavaria.de/java/wz_tooltip.js erfolgt eine 404-Fehlermeldung.
     

  8. #8
    Slyd Slyd ist offline Rookie
    Registriert seit
    Jul 2007
    Beiträge
    7
    eigentlich schon ../ einmal zurück verzeichnis java/tooltip.js
    habe aber gerade noch etwas ausprobiert...schau jetzt nochmal..
     

  9. #9
    Maik Tutorials.de Gastzugang
    Das Script liegt im Verzeichnis "sides" -> http://www.rac-bavaria.de/sides/wz_tooltip.js
     

  10. #10
    Slyd Slyd ist offline Rookie
    Registriert seit
    Jul 2007
    Beiträge
    7
    Hattest recht war noch vonheut morgen...habe das java verzeichnis kopiert aber totzdem nix....aber hier wird was angezeit http://www.rac-bavaria.de/java/wz_tooltip.js
     

  11. #11
    Maik Tutorials.de Gastzugang
    Der zweite Grund könnte das Leerzeichen im Bilder-Verzeichnisnamen "Mitglieder Bilder" sein.
     

  12. #12
    Slyd Slyd ist offline Rookie
    Registriert seit
    Jul 2007
    Beiträge
    7
    habs geändert aber das geht auch noch nicht...sag mal sind das eigentlich 2 unterschiedliche bilder die da abgefragt werden..1.JPG und einmal ohne 1
     

  13. #13
    Maik Tutorials.de Gastzugang
    Ich hab jetzt mal die Script-Version vom Autor dieses Themas eingesetzt, und damit funktioniert es:

    Code :
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    
    /* This notice must be untouched at all times.
     
    wz_tooltip.js    v. 3.41
     
    The latest version is available at
    http://www.walterzorn.com
    or http://www.devira.com
    or http://www.walterzorn.de
     
    Copyright (c) 2002-2005 Walter Zorn. All rights reserved.
    Created 1. 12. 2002 by Walter Zorn (Web: http://www.walterzorn.com )
    Last modified: 26. 10. 2006
     
    Cross-browser tooltips working even in Opera 5 and 6,
    as well as in NN 4, Gecko-Browsers, IE4+, Opera 7+ and Konqueror.
    No onmouseouts required.
    Appearance of tooltips can be individually configured
    via commands within the onmouseovers.
     
    LICENSE: LGPL
     
    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License (LGPL) as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.
     
    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
     
    For more details on the GNU Lesser General Public License,
    see http://www.gnu.org/copyleft/lesser.html
    */
     
     
     
    ////////////////  GLOBAL TOOPTIP CONFIGURATION  /////////////////////
    var ttAbove       = false;        // tooltip above mousepointer? Alternative: true
    var ttBgColor     = "#e6ecff";
    var ttBgImg       = "";           // path to background image;
    var ttBorderColor = "#ffffff";
    var ttBorderWidth = 0;
    var ttDelay       = 500;          // time span until tooltip shows up [milliseconds]
    var ttFontColor   = "#000066";
    var ttFontFace    = "arial,helvetica,sans-serif";
    var ttFontSize    = "11px";
    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      = false;        // tooltip NOT move with the mouse? Alternative: true
    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       = 300;
    ////////////////////  END OF TOOLTIP CONFIG  ////////////////////////
     
     
     
    //////////////  TAGS WITH TOOLTIP FUNCTIONALITY  ////////////////////
    // List may be extended or shortened:
    var tt_tags = new Array("a","area","b","big","caption","center","code","dd","div","dl","dt","em","h1","h2","h3","h4","h5","h6","i","img","input","li","map","ol","p","pre","s", 
     
    "select", "small","span","strike","strong","sub","sup","table","td","textarea","th","tr","tt","u","var","ul","layer");
    /////////////////////////////////////////////////////////////////////
     
     
     
    ///////// DON'T CHANGE ANYTHING BELOW THIS LINE /////////////////////
    var tt_obj = null,         // current tooltip
    tt_ifrm = null,            // iframe to cover windowed controls in IE
    tt_objW = 0, tt_objH = 0,  // width and height of tt_obj
    tt_objX = 0, tt_objY = 0,
    tt_offX = 0, tt_offY = 0,
    xlim = 0, ylim = 0,        // right and bottom borders of visible client area
    tt_sup = false,            // true if T_ABOVE cmd
    tt_sticky = false,         // tt_obj sticky?
    tt_wait = false,
    tt_act = false,            // tooltip visibility flag
    tt_sub = false,            // true while tooltip below mousepointer
    tt_u = "undefined",
    tt_mf = null,              // stores previous mousemove evthandler
    // Opera: disable href when hovering <a>
    tt_tag = null;             // stores hovered dom node, href and previous statusbar txt
     
     
    var tt_db = (document.compatMode && document.compatMode != "BackCompat")? document.documentElement : document.body? document.body : null,
    tt_n = navigator.userAgent.toLowerCase(),
    tt_nv = navigator.appVersion;
    // Browser flags
    var tt_op = !!(window.opera && document.getElementById),
    tt_op6 = tt_op && !document.defaultView,
    tt_op7 = tt_op && !tt_op6,
    tt_ie = tt_n.indexOf("msie") != -1 && document.all && tt_db && !tt_op,
    tt_ie7 = tt_ie && typeof document.body.style.maxHeight != tt_u,
    tt_ie6 = tt_ie && !tt_ie7 && parseFloat(tt_nv.substring(tt_nv.indexOf("MSIE")+5)) >= 5.5,
    tt_n4 = (document.layers && typeof document.classes != tt_u),
    tt_n6 = (!tt_op && document.defaultView && typeof document.defaultView.getComputedStyle != tt_u),
    tt_w3c = !tt_ie && !tt_n6 && !tt_op && document.getElementById;
     
    function tt_Int(t_x)
    {
        var t_y;
        return isNaN(t_y = parseInt(t_x))? 0 : t_y;
    }
    function wzReplace(t_x, t_y)
    {
        var t_ret = "",
        t_str = this,
        t_xI;
        while((t_xI = t_str.indexOf(t_x)) != -1)
        {
            t_ret += t_str.substring(0, t_xI) + t_y;
            t_str = t_str.substring(t_xI + t_x.length);
        }
        return t_ret+t_str;
    }
    String.prototype.wzReplace = wzReplace;
    function tt_N4Tags(tagtyp, t_d, t_y)
    {
        t_d = t_d || document;
        t_y = t_y || new Array();
        var t_x = (tagtyp=="a")? t_d.links : t_d.layers;
        for(var z = t_x.length; z--;) t_y[t_y.length] = t_x[z];
        for(z = t_d.layers.length; z--;) t_y = tt_N4Tags(tagtyp, t_d.layers[z].document, t_y);
        return t_y;
    }
    function tt_Htm(tt, t_id, txt)
    {
        var t_bgc = (typeof tt.T_BGCOLOR != tt_u)? tt.T_BGCOLOR : ttBgColor,
        t_bgimg   = (typeof tt.T_BGIMG != tt_u)? tt.T_BGIMG : ttBgImg,
        t_bc      = (typeof tt.T_BORDERCOLOR != tt_u)? tt.T_BORDERCOLOR : ttBorderColor,
        t_bw      = (typeof tt.T_BORDERWIDTH != tt_u)? tt.T_BORDERWIDTH : ttBorderWidth,
        t_ff      = (typeof tt.T_FONTFACE != tt_u)? tt.T_FONTFACE : ttFontFace,
        t_fc      = (typeof tt.T_FONTCOLOR != tt_u)? tt.T_FONTCOLOR : ttFontColor,
        t_fsz     = (typeof tt.T_FONTSIZE != tt_u)? tt.T_FONTSIZE : ttFontSize,
        t_fwght   = (typeof tt.T_FONTWEIGHT != tt_u)? tt.T_FONTWEIGHT : ttFontWeight,
        t_opa     = (typeof tt.T_OPACITY != tt_u)? tt.T_OPACITY : ttOpacity,
        t_padd    = (typeof tt.T_PADDING != tt_u)? tt.T_PADDING : ttPadding,
        t_shc     = (typeof tt.T_SHADOWCOLOR != tt_u)? tt.T_SHADOWCOLOR : (ttShadowColor || 0),
        t_shw     = (typeof tt.T_SHADOWWIDTH != tt_u)? tt.T_SHADOWWIDTH : (ttShadowWidth || 0),
        t_algn    = (typeof tt.T_TEXTALIGN != tt_u)? tt.T_TEXTALIGN : ttTextAlign,
        t_tit     = (typeof tt.T_TITLE != tt_u)? tt.T_TITLE : "",
        t_titc    = (typeof tt.T_TITLECOLOR != tt_u)? tt.T_TITLECOLOR : ttTitleColor,
        t_w       = (typeof tt.T_WIDTH != tt_u)? tt.T_WIDTH  : ttWidth;
        if(t_shc || t_shw)
        {
            t_shc = t_shc || "#cccccc";
            t_shw = t_shw || 5;
        }
        if(tt_n4 && (t_fsz == "10px" || t_fsz == "11px")) t_fsz = "12px";
     
        var t_optx = (tt_n4? '' : tt_n6? ('-moz-opacity:'+(t_opa/100.0)) : tt_ie? ('filter:Alpha(opacity='+t_opa+')') : ('opacity:'+(t_opa/100.0))) + ';';
        var t_y = '<div id="'+t_id+'" style="position:absolute;z-index:1010;';
        t_y += 'left:0px;top:0px;width:'+(t_w+t_shw)+'px;visibility:'+(tt_n4? 'hide' : 'hidden')+';'+t_optx+'">' +
            '<table border="0" cellpadding="0" cellspacing="0"'+(t_bc? (' bgcolor="'+t_bc+'" style="background:'+t_bc+';"') : '')+' width="'+t_w+'">';
        if(t_tit)
        {
            t_y += '<tr><td style="padding-left:3px;padding-right:3px;" align="'+t_algn+'"><font color="'+t_titc+'" face="'+t_ff+'" ' +
                'style="color:'+t_titc+';font-family:'+t_ff+';font-size:'+t_fsz+';"><b>' +
                (tt_n4? '&nbsp;' : '')+t_tit+'</b></font></td></tr>';
        }
        t_y += '<tr><td><table border="0" cellpadding="'+t_padd+'" cellspacing="'+t_bw+'" width="100%">' +
            '<tr><td'+(t_bgc? (' bgcolor="'+t_bgc+'"') : '')+(t_bgimg? ' background="'+t_bgimg+'"' : '')+' style="text-align:'+t_algn+';';
        if(tt_n6) t_y += 'padding:'+t_padd+'px;';
        t_y += '" align="'+t_algn+'"><font color="'+t_fc+'" face="'+t_ff+'"' +
            ' style="color:'+t_fc+';font-family:'+t_ff+';font-size:'+t_fsz+';font-weight:'+t_fwght+';">';
        if(t_fwght == 'bold') t_y += '<b>';
        t_y += txt;
        if(t_fwght == 'bold') t_y += '</b>';
        t_y += '</font></td></tr></table></td></tr></table>';
        if(t_shw)
        {
            var t_spct = Math.round(t_shw*1.3);
            if(tt_n4)
            {
                t_y += '<layer bgcolor="'+t_shc+'" left="'+t_w+'" top="'+t_spct+'" width="'+t_shw+'" height="0"></layer>' +
                    '<layer bgcolor="'+t_shc+'" left="'+t_spct+'" align="bottom" width="'+(t_w-t_spct)+'" height="'+t_shw+'"></layer>';
            }
            else
            {
                t_optx = tt_n6? '-moz-opacity:0.85;' : tt_ie? 'filter:Alpha(opacity=85);' : 'opacity:0.85;';
                t_y += '<div id="'+t_id+'R" 
     
    style="position:absolute;background:'+t_shc+';left:'+t_w+'px;top:'+t_spct+'px;width:'+t_shw+'px;height:1px;overflow:hidden;'+t_optx+'"></div>' +
                    '<div 
     
    style="position:relative;background:'+t_shc+';left:'+t_spct+'px;top:0px;width:'+(t_w-t_spct)+'px;height:'+t_shw+'px;overflow:hidden;'+t_optx+'"></div>';
            }
        }
        return(t_y+'</div>');
    }
    function tt_EvX(t_e)
    {
        var t_y = tt_Int(t_e.pageX || t_e.clientX || 0) +
            tt_Int(tt_ie? tt_db.scrollLeft : 0) +
            tt_offX;
        if(t_y > xlim) t_y = xlim;
        var t_scr = tt_Int(window.pageXOffset || (tt_db? tt_db.scrollLeft : 0) || 0);
        if(t_y < t_scr) t_y = t_scr;
        return t_y;
    }
    function tt_EvY(t_e)
    {
        var t_y = tt_Int(t_e.pageY || t_e.clientY || 0) +
            tt_Int(tt_ie? tt_db.scrollTop : 0);
        if(tt_sup) t_y -= (tt_objH + tt_offY - 15);
        else if(t_y > ylim || !tt_sub && t_y > ylim-24)
        {
            t_y -= (tt_objH + 5);
            tt_sub = false;
        }
        else
        {
            t_y += tt_offY;
            tt_sub = true;
        }
        return t_y;
    }
    function tt_ReleasMov()
    {
        if(document.onmousemove == tt_Move)
        {
            if(!tt_mf && document.releaseEvents) document.releaseEvents(Event.MOUSEMOVE);
            document.onmousemove = tt_mf;
        }
    }
    function tt_ShowIfrm(t_x)
    {
        if(!tt_obj || !tt_ifrm) return;
        if(t_x)
        {
            tt_ifrm.style.width = tt_objW+'px';
            tt_ifrm.style.height = tt_objH+'px';
            tt_ifrm.style.display = "block";
        }
        else tt_ifrm.style.display = "none";
    }
    function tt_GetDiv(t_id)
    {
        return(
            tt_n4? (document.layers[t_id] || null)
            : tt_ie? (document.all[t_id] || null)
            : (document.getElementById(t_id) || null)
        );
    }
    function tt_GetDivW()
    {
        return tt_Int(
            tt_n4? tt_obj.clip.width
            : (tt_obj.style.pixelWidth || tt_obj.offsetWidth)
        );
    }
    function tt_GetDivH()
    {
        return tt_Int(
            tt_n4? tt_obj.clip.height
            : (tt_obj.style.pixelHeight || tt_obj.offsetHeight)
        );
    }
     
    // Compat with DragDrop Lib: Ensure that z-index of tooltip is lifted beyond toplevel dragdrop element
    function tt_SetDivZ()
    {
        var t_i = tt_obj.style || tt_obj;
        if(t_i)
        {
            if(window.dd && dd.z)
                t_i.zIndex = Math.max(dd.z+1, t_i.zIndex);
            if(tt_ifrm) tt_ifrm.style.zIndex = t_i.zIndex-1;
        }
    }
    function tt_SetDivPos(t_x, t_y)
    {
        var t_i = tt_obj.style || tt_obj;
        var t_px = (tt_op6 || tt_n4)? '' : 'px';
        t_i.left = (tt_objX = t_x) + t_px;
        t_i.top = (tt_objY = t_y) + t_px;
        //  window... to work around the FireFox Alzheimer Bug
        if(window_ifrm)
        {
            tt_ifrm.style.left = t_i.left;
            tt_ifrm.style.top = t_i.top;
        }
    }
    function tt_ShowDiv(t_x)
    {
        tt_ShowIfrm(t_x);
        if(tt_n4) tt_obj.visibility = t_x? 'show' : 'hide';
        else tt_obj.style.visibility = t_x? 'visible' : 'hidden';
        tt_act = t_x;
    }
    function tt_OpDeHref(t_e)
    {
        var t_tag;
        if(t_e)
        {
            t_tag = t_e.target;
            while(t_tag)
            {
                if(t_tag.hasAttribute("href"))
                {
                    tt_tag = t_tag
                    tt_tag.t_href = tt_tag.getAttribute("href");
                    tt_tag.removeAttribute("href");
                    tt_tag.style.cursor = "hand";
                    tt_tag.onmousedown = tt_OpReHref;
                    tt_tag.stats = window.status;
                    window.status = tt_tag.t_href;
                    break;
                }
                t_tag = t_tag.parentElement;
            }
        }
    }
    function tt_OpReHref()
    {
        if(tt_tag)
        {
            tt_tag.setAttribute("href", tt_tag.t_href);
            window.status = tt_tag.stats;
            tt_tag = null;
        }
    }
    function tt_Show(t_e, t_id, t_sup, t_delay, t_fix, t_left, t_offx, t_offy, t_static, t_sticky, t_temp)
    {
        if(tt_obj) tt_Hide();
        tt_mf = document.onmousemove || null;
        if(window.dd && (window.DRAG && tt_mf == DRAG || window.RESIZE && tt_mf == RESIZE)) return;
        var t_sh, t_h;
     
        tt_obj = tt_GetDiv(t_id);
        if(tt_obj)
        {
            t_e = t_e || window.event;
            tt_sub = !(tt_sup = t_sup);
            tt_sticky = t_sticky;
            tt_objW = tt_GetDivW();
            tt_objH = tt_GetDivH();
            tt_offX = t_left? -(tt_objW+t_offx) : t_offx;
            tt_offY = t_offy;
            if(tt_op7) tt_OpDeHref(t_e);
            if(tt_n4)
            {
                if(tt_obj.document.layers.length)
                {
                    t_sh = tt_obj.document.layers[0];
                    t_sh.clip.height = tt_objH - Math.round(t_sh.clip.width*1.3);
                }
            }
            else
            {
                t_sh = tt_GetDiv(t_id+'R');
                if(t_sh)
                {
                    t_h = tt_objH - tt_Int(t_sh.style.pixelTop || t_sh.style.top || 0);
                    if(typeof t_sh.style.pixelHeight != tt_u) t_sh.style.pixelHeight = t_h;
                    else t_sh.style.height = t_h+'px';
                }
            }
     
            xlim = tt_Int((tt_db && tt_db.clientWidth)? tt_db.clientWidth : window.innerWidth) +
                tt_Int(window.pageXOffset || (tt_db? tt_db.scrollLeft : 0) || 0) -
                tt_objW -
                (tt_n4? 21 : 0);
            ylim = tt_Int(window.innerHeight || tt_db.clientHeight) +
                tt_Int(window.pageYOffset || (tt_db? tt_db.scrollTop : 0) || 0) -
                tt_objH - tt_offY;
     
            tt_SetDivZ();
            if(t_fix) tt_SetDivPos(tt_Int((t_fix = t_fix.split(','))[0]), tt_Int(t_fix[1]));
            else tt_SetDivPos(tt_EvX(t_e), tt_EvY(t_e));
     
            var t_txt = 'tt_ShowDiv(\'true\');';
            if(t_sticky) t_txt += '{'+
                    'tt_ReleasMov();'+
                    'window_upFunc = document.onmouseup || null;'+
                    'if(document.captureEvents) document.captureEvents(Event.MOUSEUP);'+
                    'document.onmouseup = new Function("window.setTimeout(\'tt_Hide();\', 10);");'+
                '}';
            else if(t_static) t_txt += 'tt_ReleasMov();';
            if(t_temp > 0) t_txt += 'window_rtm = window.setTimeout(\'tt_sticky = false; tt_Hide();\','+t_temp+');';
            window_rdl = window.setTimeout(t_txt, t_delay);
     
            if(!t_fix)
            {
                if(document.captureEvents) document.captureEvents(Event.MOUSEMOVE);
                document.onmousemove = tt_Move;
            }
        }
    }
    var tt_area = false;
    function tt_Move(t_ev)
    {
        if(!tt_obj) return;
        if(tt_n6 || tt_w3c)
        {
            if(tt_wait) return;
            tt_wait = true;
            setTimeout('tt_wait = false;', 5);
        }
        var t_e = t_ev || window.event;
        tt_SetDivPos(tt_EvX(t_e), tt_EvY(t_e));
        if(tt_op6)
        {
            if(tt_area && t_e.target.tagName != 'AREA') tt_Hide();
            else if(t_e.target.tagName == 'AREA') tt_area = true;
        }
    }
    function tt_Hide()
    {
        if(window_obj)
        {
            if(window_rdl) window.clearTimeout(tt_rdl);
            if(!tt_sticky || !tt_act)
            {
                if(window_rtm) window.clearTimeout(tt_rtm);
                tt_ShowDiv(false);
                tt_SetDivPos(-tt_objW, -tt_objH);
                tt_obj = null;
                if(typeof window_upFunc != tt_u) document.onmouseup = window_upFunc;
            }
            tt_sticky = false;
            if(tt_op6 && tt_area) tt_area = false;
            tt_ReleasMov();
            if(tt_op7) tt_OpReHref();
        }
    }
    function tt_Init()
    {
        if(!(tt_op || tt_n4 || tt_n6 || tt_ie || tt_w3c)) return;
     
        var htm = tt_n4? '<div style="position:absolute;"></div>' : '',
        tags,
        t_tj,
        over,
        esc = 'return escape(';
        var i = tt_tags.length; while(i--)
        {
            tags = tt_ie? (document.all.tags(tt_tags[i]) || 1)
                : document.getElementsByTagName? (document.getElementsByTagName(tt_tags[i]) || 1)
                : (!tt_n4 && tt_tags[i]=="a")? document.links
                : 1;
            if(tt_n4 && (tt_tags[i] == "a" || tt_tags[i] == "layer")) tags = tt_N4Tags(tt_tags[i]);
            var j = tags.length; while(j--)
            {
                if(typeof (t_tj = tags[j]).onmouseover == "function" && t_tj.onmouseover.toString().indexOf(esc) != -1 && !tt_n6 || tt_n6 && (over = 
     
    t_tj.getAttribute("onmouseover")) && over.indexOf(esc) != -1)
                {
                    if(over) t_tj.onmouseover = new Function(over);
                    var txt = unescape(t_tj.onmouseover());
                    htm += tt_Htm(
                        t_tj,
                        "tOoLtIp"+i+""+j,
                        txt.wzReplace("& ","&")
                    );
                    // window... to work around the FF Alzheimer Bug
                    t_tj.onmouseover = new Function('e',
                        'if(window_Show && tt_Show) tt_Show(e,'+
                        '"tOoLtIp' +i+''+j+ '",'+
                        ((typeof t_tj.T_ABOVE != tt_u)? t_tj.T_ABOVE : ttAbove)+','+
                        ((typeof t_tj.T_DELAY != tt_u)? t_tj.T_DELAY : ttDelay)+','+
                        ((typeof t_tj.T_FIX != tt_u)? '"'+t_tj.T_FIX+'"' : '""')+','+
                        ((typeof t_tj.T_LEFT != tt_u)? t_tj.T_LEFT : ttLeft)+','+
                        ((typeof t_tj.T_OFFSETX != tt_u)? t_tj.T_OFFSETX : ttOffsetX)+','+
                        ((typeof t_tj.T_OFFSETY != tt_u)? t_tj.T_OFFSETY : ttOffsetY)+','+
                        ((typeof t_tj.T_STATIC != tt_u)? t_tj.T_STATIC : ttStatic)+','+
                        ((typeof t_tj.T_STICKY != tt_u)? t_tj.T_STICKY : ttSticky)+','+
                        ((typeof t_tj.T_TEMP != tt_u)? t_tj.T_TEMP : ttTemp)+
                        ');'
                    );
                    t_tj.onmouseout = tt_Hide;
                    if(t_tj.alt) t_tj.alt = "";
                    if(t_tj.title) t_tj.title = "";
                }
            }
        }
        if(tt_ie6) htm += '<iframe id="TTiEiFrM" src="javascript:false" scrolling="no" frameborder="0" 
     
    style="filter:Alpha(opacity=0);position:absolute;top:0px;left:0px;display:none;"></iframe>';
        document.write(htm);
        if(document.getElementById) tt_ifrm = document.getElementById("TTiEiFrM");
    }
    tt_Init();
     

  14. #14
    Slyd Slyd ist offline Rookie
    Registriert seit
    Jul 2007
    Beiträge
    7
    danke habe den text nun in eine js-datei hineinkopiert....aber nun liegt ein script fehler vor...bin wohl ein besonderes problem...oder muss ich noch etwas berücksichtigen?
     

  15. #15
    falo falo ist offline Grünschnabel
    Registriert seit
    Jul 2007
    Beiträge
    4
    Zitat Zitat von Maik Beitrag anzeigen
    Ich hab jetzt mal die Script-Version vom Autor dieses Themas eingesezt, und damit funktioniert es:
    Hallo, ich hoffe ich darf mich diesem Thema anhängen, da ich ebenfalls diesen mouseover effekt haben möchte.
    Leider ist meine Kenntnis gleich null.
    Vielleicht kann mir einer sagen wie es funktioniert, wo ich welche Datei ändern oder speichern muss.
    Ich habe den nötigen Pioniergeist, aber der Anfang ist immer das Schwerste.

    Meine Seite mit den Miniaturansichten: z:B. http://www.publicimmo.de/Generatione...ztal--_a37.htm

    Die Miniaturbilder öffnen sich im oberen Bildrand, was je nach Größe der Seite zum Nachteil sein kann, da man nicht merkt, dass sich ein Bild geöffnet hat.
    Besser wäre halt, wenn man mit der Maus drüber geht und sich das große Bild öffnet.
    So wie Ihr das Problem gelöst habt, wäre ich sehr zufrieden.

    Könnt Ihr mir helfen?

    Gruß Olaf
     

Ähnliche Themen

  1. Antworten: 4
    Letzter Beitrag: 08.06.08, 12:21
  2. Mouseover (kleines Bild) bei einem Mannschaftsfoto?
    Von Daysleeper77 im Forum Javascript & Ajax
    Antworten: 1
    Letzter Beitrag: 01.10.07, 09:34
  3. Bild Dateigröße zu groß!
    Von Suicider9184 im Forum Photoshop
    Antworten: 7
    Letzter Beitrag: 27.01.06, 12:02
  4. Bild zu groß wie verkleinern
    Von Dumah im Forum 3D Studio Max
    Antworten: 8
    Letzter Beitrag: 17.07.04, 08:35
  5. Bild zu Groß
    Von Molde im Forum Flash Plattform
    Antworten: 5
    Letzter Beitrag: 06.09.01, 14:16