Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: two commands

  1. #1
    New Coder
    Join Date
    Nov 2004
    Posts
    64
    Thanks
    0
    Thanked 0 Times in 0 Posts

    two commands

    how do you execute two js commands through the <a> tag

    ex:
    Code:
    <a href="#" onclick="tggle('home'); Effect.SlideDown('home');">adfasdf</a>
    that does not work

  • #2
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,747
    Thanks
    18
    Thanked 155 Times in 146 Posts
    Quote Originally Posted by 6arredja View Post
    how do you execute two js commands through the <a> tag

    ex:
    Code:
    <a href="#" onclick="tggle('home'); Effect.SlideDown('home');">adfasdf</a>
    that does not work

    That should work. Are you getting any JS errors? Check Mozilla's JS console....

    You can also write that like this, slightly more efficiently:

    Code:
     <a href="javascript: tggle('home'); Effect.SlideDown('home');">adfasdf</a>
    Regards, R.J.

    ---------------------------------------------------------

    Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :)
    [Related videos and tutorials are also available at my YouTube channel and on Dailymotion]
    Get free updates about new software version releases, features, and bug fixes!

  • #3
    New Coder
    Join Date
    Nov 2004
    Posts
    64
    Thanks
    0
    Thanked 0 Times in 0 Posts
    im trying to use my own script along with scriptaculus and its not working to well

  • #4
    New Coder
    Join Date
    Nov 2004
    Posts
    64
    Thanks
    0
    Thanked 0 Times in 0 Posts
    geez i feel like such a noob

    i had the scriptaculus file pointed to the wrong directory

    sorry for wasting time lol


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •