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
    Member #
    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?
    <script type="text/javascript">
    function mouseOver()
    document.b1.src ="b1b.jpg";
    function mouseOut()
    document.b1.src ="b1c.jpg";
    <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>


  3. #2
    Senior Member raspberryh's Avatar
    Join Date
    Aug 2004
    Erie, PA
    Member #
    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;
    <a href="http://www..../....php" class="b1">TEXT OF LINK HERE</a>
    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 12:17 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: