Keresés

Új hozzászólás Aktív témák

  • loszerafin

    senior tag

    válasz kalló #1147 üzenetére

    Innen:

    [link]

    Ez segíthet
    (egy div-et pozicionálhatsz)

    function getRefToDiv(divID,oDoc) {
    if( !oDoc ) { oDoc = document; }
    if( document.layers ) {
    if( oDoc.layers[divID] ) { return oDoc.layers[divID]; } else {
    //repeatedly run through all child layers
    for( var x = 0, y; !y && x < oDoc.layers.length; x++ ) {
    //on success, return that layer, else return nothing
    y = getRefToDiv(divID,oDoc.layers[x].document); }
    return y; } }
    if( document.getElementById ) {
    return document.getElementById(divID); }
    if( document.all ) {
    return document.all[divID]; }
    return false;
    }

    function moveDivTo(x,y) {
    myReference = getRefToDiv( 'mydiv' );
    if( !myReference ) { return; }
    if( myReference.style ) { myReference = myReference.style; }
    var noPx = document.childNodes ? 'px' : 0;
    myReference.left = x + noPx;
    myReference.top = y + noPx;
    }

    Ha a célod animáció, akkor :

    [link]

Új hozzászólás Aktív témák