[req] Lesson On Rollover

Discussion in 'GR Classic Archive' started by blounder, Apr 13, 2007.

Thread Status:
Not open for further replies.
  1. blounder

    blounder Well-Known Member

    Posts:
    2,218
    Likes Received:
    0
    Joined:
    Jul 25, 2005
    Location:
    United States, Maryland
    I am designing a website and I need to know how to make any shaped button have rollover. For example, how would you do rollover with a star shaped button?
     
  2. .Atiken

    .Atiken Well-Known Member

    Posts:
    82
    Likes Received:
    0
    Joined:
    Jan 11, 2007
    I can teach you how many credits is your budget for the lesson. :D
     
  3. KinXiom

    KinXiom Well-Known Member

    Posts:
    1,802
    Likes Received:
    0
    Joined:
    Jul 10, 2006
    Theres a tutorial about it on

    pixel2life.com
     
  4. DarkPrince11

    DarkPrince11 Well-Known Member

    Age:
    34
    Posts:
    772
    Likes Received:
    0
    Joined:
    Mar 22, 2006
    Location:
    Deer Park, New York
    Ill just tell you right here. :tongue:

    There different ways to do it, use javascript, or css. And if you use CSS there are also many other ways to do it. The most common way...

    CSS:
    a {display:block;width:*width*;height:*height*;background: url(*link*) no-repeat;}
    a:hover {background: url(*link to rollover*) no-repeat;}

    HTML:
    Link

    There are other ways to do it too.

    CSS:
    a {display:block;width:*width*;height:*height*;background: url(*link to rollover*) no-repeat;}
    a:hover img{visibility:hidden;}

    HTML:
    [​IMG]

    Instead of using links, you can also use divs in replacement for the a (link tags).
     
Thread Status:
Not open for further replies.

Share This Page