Go Back   SitePoint Forums > Forum Index > Program Your Site > JavaScript
Newsletter FAQ Members List Calendar Mark Forums Read

New to SitePoint Forums? Register here for free!

SitePoint Sponsor
 
Reply
 
Thread Tools Display Modes
Old Oct 8, 2009, 16:38   #1
AshleyQuick
SitePoint Zealot
 
Join Date: Jan 2004
Location: USA
Posts: 123
Need help combining js functions...

Using this:

Code:
clip.addEventListener( 'onMouseDown', my_mouse_down_handler );
    function my_mouse_down_handler(client) {
        alert( "mouse button is down" );
}
How can integrate this jQuery function so that the quick-alert div is displayed instead of alert( "mouse button is down" );?

Code:
$(document).ready(function() {
    $('#show-alert').click(function() {
        $('<div class="quick-alert">Alert Message</div>')
        .insertAfter($(this))
        .fadeIn('slow')
        .animate({opacity: 1.0}, 3000)
        .fadeOut('slow', function() {
                $(this).remove();
        });
    });
});
AshleyQuick is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread | Next Thread »

Thread Tools
Display Modes

 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

 
Forum Jump


All times are GMT -7. The time now is 05:24.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright 1998-2009, SitePoint Pty Ltd. All Rights Reserved