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

  • j0k3r!

    senior tag

    válasz :-I #3107 üzenetére

    na szoval, akkor:

    a <head> es </head> koze illezd be, hogy:
    <script type="text/javascript" src="scripts.js"></script>

    azutan a html fileod melle hozz letre egy sima szoveges filet, es mentsd el scripts.js neven. ezutan nyisd meg valami texteditorral (notepad, stb.) es illezd bele, hogy:

    function BackgroundChange (id,src)
    {
    document.getElementById(id).style.backgroundImage = src;
    }

    azutan a html kododon belul

    <section id="intro">

    <header>
    <h2>Tagjaink</h2>
    </header>
    <p>elso</p>
    <div id="photo">
    <div>
    <h3><a onMouseOver="imgChange('elso','images/adyz.png')"></a></h3>
    </div>

    </div>
    </section>

    ezt modositsd at, ugy hogy:

    <section id="intro">

    <header>
    <h2>Tagjaink</h2>
    </header>
    <p onmousemove="BackgroundChange('ezvaltozik','images/elso.png')">elso nev</p>
    <p onmousemove="BackgroundChange('ezvaltozik','images/masodik.png')">masodik nev</p>
    <p onmousemove="BackgroundChange('ezvaltozik','images/harmadik.png')">harmadik nev</p>
    <div id="photo">
    <div id="ezvaltozik">
    </div>

    </div>
    </section>

    termeszetesen a kepek nevet es eleresi utvonalat helyesen add meg.

    (#3109) :-I ja ok : )) (keson vettem eszre)

    [ Szerkesztve ]

    some men just wanna watch the world burn...

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