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 6 of 6
  1. #1
    Senior Member kade119's Avatar
    Join Date
    Feb 2007
    Location
    USA
    Posts
    532
    Member #
    14888
    Liked
    1 times
    what's the best way to do this w/ js?

    i read a few different ways , does one have an advantage over another?

    seems when done by dreamweaver it creates alot of extra script

  2.  

  3. #2
    Member
    Join Date
    Jun 2007
    Location
    Scotts Valley, CA
    Posts
    49
    Member #
    15405
    What would you like to have happen when your user rolls over the button? You can do lots of different stuff, and how you do it can depend a lot on what you're doing. Do you have an example of something you think is cool, with a URL of where we could check it out? That way, we could all have a look and see if we could help.

    Cheers,

    K.

  4. #3
    Senior Member
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    4,146
    Member #
    10263
    Liked
    1 times
    Button rollovers are most easily achieved using CSS as per the method described on this page.

  5. #4
    Senior Member Shani's Avatar
    Join Date
    Nov 2004
    Posts
    1,140
    Member #
    8171
    I agree with Shadowfiend.

    For simpler rollovers, using CSS is a lot quicker than javascript.
    Shani

    I have an eye for detail like you'd never believe.

  6. #5
    Senior Member kade119's Avatar
    Join Date
    Feb 2007
    Location
    USA
    Posts
    532
    Member #
    14888
    Liked
    1 times
    one thing i noticed on the using the css route is that when i first rollover after entering a page, the image or graphic is blank then i have to rollover again before it appears or it takes a sec or too... might have to do something w/ loading the image.. but its quite small.. like 15kb what causes this?

  7. #6
    Senior Member
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    4,146
    Member #
    10263
    Liked
    1 times
    If you look at the page I linked to, it describes a way to achieve CSS rollovers using a single file, which precludes any loading time issues beyond the initial load time of the background itself. There are also other optimizations that can be made like using single-pixel slices of gradients.


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