Results 1 to 3 of 3

Thread: Nice buttons - how to create?

  1. #1
    Join Date
    Aug 2009
    Posts
    399
    Thanks
    42
    Thanked 4 Times in 4 Posts

    Default Nice buttons - how to create?

    Hi,

    I want to create an effect like in this player. (buttons) That effect I would use for simple buttons. How it can be done?

    Regards.
    Last edited by auriaks; 09-11-2010 at 12:24 PM.

  2. #2
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    The buttons can be made in photoshop. one of these tutorial may help: http://tinyurl.com/37jhkby

    The fade effect can be achieved with something like this
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Fade button</title>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <script type="text/javascript">
    jQuery(document).ready(function($) {
    	$('#button').hover(function(){
    		$(this).stop().fadeTo(500, 0.6);	
    			 },  function () {
            $(this).stop().fadeTo(500, 1);	
    	});				
    });
    </script>
    </head>
    <body>
    <img src="button.jpg" id="button" alt="glossy button" width="95" height="90" />
    </body>
    </html>
    You can see a demo here
    Last edited by azoomer; 09-11-2010 at 11:45 AM.

  3. The Following User Says Thank You to azoomer For This Useful Post:

    auriaks (09-11-2010)

  4. #3
    Join Date
    Aug 2009
    Posts
    399
    Thanks
    42
    Thanked 4 Times in 4 Posts

    Default

    thanks, looks great

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
  •