Softpedia
 


SCRIPTS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • PeoplePods 0.9
  • Brackets Sprint 8
  • elFinder 2.0 RC1
  • BBClone 0.6.1
  • Twitter Follow Box...
  • Multilingual Press...
  • SimplePie 1.2.1
  • TinyTips 1.2
  • SWFUpload 2.2.0.1 ...
  • Head Cleaner 1.4.2.9
  • Home > Scripts > Image Galleries > Image Effects

    Kai Button

    Download button


    Downloads: 236  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.9/5)
    17 user(s)
    Developer:

    Website:

    License / Price:

    Platforms:

    Databases:

    Language:

    Last Updated:

    Category:
    Raingod | More scripts
    www.raingod.com
    Freeware 

    Windows / Linux / Mac OS / BSD / Solaris
    N/A
    JavaScript
    June 13th, 2007, 10:49 GMT
    C: \ Image Galleries \ Image Effects

     Read user reviews (0)  Refer to a friend  Subscribe

    Kai Button description

    Kai Button javascript performs a simple rollover effect.

    The standard JavaScript 'image rollover' - an image that changes appearance as you move the mouse over it. They don't serve any very practical purpose (beyond slowing page-loading and wasting bandwidth) but - with more inspired graphics than on this page - they can add a certain style to a page.The JavaScript works by loading several alternative images for each button. If the user moves the mouse in or out of the button's area, a JavaScript function is invoked to change the image displayed. It does this by changing the 'src' attribute of the named button image. If you move your mouse over the buttons above and nothing happens, this may mean that your browser doesn't support (or isn't known to support) this kind of image manipulation.These buttons only respond to the onMouseOver and onMouseOut events; they might equally well respond to onClick in exactly the same way, but there are valid reasons for them not to: adding yet another image for each button to show its clicked state increases download time still further and may produce ugly artifacts on some browsers (the 'clicked' image is not fully drawn before the browser starts searching for the next page).One point to notice is that the handlers which call the image-changing function return a variety of values. onMouseOver and onMouseOut both need to return false so that the browser can update the status line to show the URL of the link appropriately. If you do decide to add an onClick handler, on the other hand, it needs to return true, so that the browser actually processes the click and sends the user to the appropriate page.



    TAGS:

    image rollover | image effects | dynamic change image | image | rollover | effects



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM