Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 9 of 9

Thread: onmouseover/out

  1. #1
    Senior Member krazy's Avatar
    Join Date
    Apr 2003
    Location
    California
    Posts
    543
    Member #
    1078
    im trying to make a button...

    i want it to show home.jpg when it is "up" and home.gif when it is "over" but i keep getting an error... does any1 have another code?


    edit:
    im using the onmouseover commands.
    Ad space - for sale, $19.95/month

  2.  

  3. #2
    JR
    JR is offline
    Senior Member JR's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    4,354
    Member #
    257
    Liked
    1 times
    check my post somewhere around here....
    JR

  4. #3
    JR
    JR is offline
    Senior Member JR's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    4,354
    Member #
    257
    Liked
    1 times
    ... here is the link
    http://www.webdesignforums.net/showt...4568#post84568

    Alternatively you could post the code for me to look at if you are still having problems
    JR

  5. #4
    Senior Member krazy's Avatar
    Join Date
    Apr 2003
    Location
    California
    Posts
    543
    Member #
    1078
    tyvm
    Ad space - for sale, $19.95/month

  6. #5
    Senior Member krazy's Avatar
    Join Date
    Apr 2003
    Location
    California
    Posts
    543
    Member #
    1078
    errrr...
    its not working


    <div id="Layer2" style="position:absolute; width:84px; height:25px; z-index:2; left: 72px; top: 154px;">
    <a href="index.html"
    onMouseOver="document.getElementById('image1').src ='../buttonz/animated/home.gif';"
    onMouseOut="document.getElementById('image1').src = '../buttonz/still/home.jpg';">
    <img src="../buttonz/still/home.jpg" width="100" height="25" border="0" ></a></div>
    Ad space - for sale, $19.95/month

  7. #6
    JR
    JR is offline
    Senior Member JR's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    4,354
    Member #
    257
    Liked
    1 times
    you need to put id="image1" in your image tag
    JR

  8. #7
    Senior Member krazy's Avatar
    Join Date
    Apr 2003
    Location
    California
    Posts
    543
    Member #
    1078
    where exactly do i put that? heh.
    Ad space - for sale, $19.95/month

  9. #8
    JR
    JR is offline
    Senior Member JR's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    4,354
    Member #
    257
    Liked
    1 times
    <img src="../buttonz/still/home.jpg" width="100" height="25" border="0" id="image1">

    JR

  10. #9
    Senior Member krazy's Avatar
    Join Date
    Apr 2003
    Location
    California
    Posts
    543
    Member #
    1078
    MUAHAHAHAHA! it works. lol thanks. Also, thanks 4 the quick reply

    the answer is so simple, but then again, im just simple.


    edit:
    ok, i just noticed, that up there made NO sense at all...
    lol
    Ad space - for sale, $19.95/month


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 07:40 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com