SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Wizard edshuck's Avatar
    Join Date
    Jul 2000
    Posts
    1,200
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    mouseover to change text

    hi

    where is the mouseover to change text? Jus t cannot find it right now.

    thanks

  2. #2
    SitePoint Zealot
    Join Date
    Dec 1999
    Posts
    137
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You mean something like this? (just put your mouse over the paragraph)

    Here´s the code:

    <p onmouseover="this.innerText='Text 1 has changed'" onmouseout="this.innerText='This is text 1'">This is text 1</p>

    Hope that helps

  3. #3
    Spam Can Kill!!! Disk-t's Avatar
    Join Date
    Jul 2001
    Location
    n/a
    Posts
    214
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Like this:


    <a href="javascript:alert('heh')" onMouseover="this.style.color='0000ff'" onMouseout="this.style.color='008000'" onClick="this.style.color='ff0000'">
    <p style="border-style: dashed; border-color: #008000">CLICK ME!</a>

  4. #4
    SitePoint Wizard edshuck's Avatar
    Join Date
    Jul 2000
    Posts
    1,200
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the responses.

    I should have said this before, but my mind has been elsewhere.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •