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 2 of 2
  1. #1
    Senior Member
    Join Date
    Oct 2007
    Posts
    241
    Member #
    15910
    In the code below, first it displays the button, and then it displays the text. But I want them on top of each other so that the text appears on the image button. How can I display the text of the link on the button image?
    <html>
    <head>
    <script type="text/javascript">
    function mouseOver()
    {
    document.b1.src ="b1b.jpg";
    }
    function mouseOut()
    {
    document.b1.src ="b1c.jpg";
    }
    </script>
    </head>
    <body>
    <a href="<A href="<A href="http://www..../....php"> <img border="0" src="b1c.jpg" name="b1" width="150" height="26" onmouseover="mouseOver()" onmouseout="mouseOut()" />TEXT OF LINK HERE</a>
    </br>
    </body>
    </html>

  2.  

  3. #2
    Senior Member raspberryh's Avatar
    Join Date
    Aug 2004
    Location
    Erie, PA
    Posts
    882
    Member #
    7208
    Liked
    1 times
    Hmmm, try something like this:

    <style type="text/css">
    a.b1 {
    background: url(b1b.jpg) no-repeat;
    display: block;
    width: 150px;
    height: 26px;
    padding: .2em; /* just a guess */
    }
    a.b1 : hover {
    background: url(b1c.jpg) no-repeat;
    }
    </style>
    </head>
    <body>
    <a href="http://www..../....php" class="b1">TEXT OF LINK HERE</a>
    </body>
    </html>
    choosy developers choose gif!
    website | paintings | blog


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 05:10 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com