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 9 of 9

Thread: help....

  1. #1
    New Coder
    Join Date
    Jun 2008
    Posts
    64
    Thanks
    25
    Thanked 0 Times in 0 Posts

    help....

    hey guys...
    im very new to javascript
    im trying to get this fx.slide from mootools
    http://demos.mootools.net/Fx.Slide

    the vertical one, what im trying to do is make it hidden at the start then be opened?
    not have it open at the start ... please help

  • #2
    Senior Coder rangana's Avatar
    Join Date
    Feb 2008
    Location
    Cebu City, Philippines
    Posts
    1,752
    Thanks
    65
    Thanked 372 Times in 365 Posts
    Code:
    	<div id="vertical_slide" style="display:none;">
    P.S. Change your title to a more descriptive one. See forum rules.
    Learn how to javascript at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph

  • #3
    New Coder
    Join Date
    Jun 2008
    Posts
    64
    Thanks
    25
    Thanked 0 Times in 0 Posts
    it hides it... but it wont open it it stays hidden

  • #4
    Senior Coder rangana's Avatar
    Join Date
    Feb 2008
    Location
    Cebu City, Philippines
    Posts
    1,752
    Thanks
    65
    Thanked 372 Times in 365 Posts
    Oops, my bad. I did'nt read your post very well.
    I'm having difficulty with this, i'll let you know how I goes.
    Learn how to javascript at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph

  • #5
    New Coder
    Join Date
    Jun 2008
    Location
    127.0.0.1
    Posts
    43
    Thanks
    1
    Thanked 6 Times in 6 Posts
    Try putting onLoad="myVerticalSlide.hide();" in your <body> tag. Don't know if it works, CBA testing.

  • #6
    Senior Coder rangana's Avatar
    Join Date
    Feb 2008
    Location
    Cebu City, Philippines
    Posts
    1,752
    Thanks
    65
    Thanked 372 Times in 365 Posts
    Aha, got it:
    Code:
    var myVerticalSlide = new Fx.Slide('vertical_slide').hide();
    Add the highlighted in demo.js.
    Learn how to javascript at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph

  • The Following 2 Users Say Thank You to rangana For This Useful Post:

    Dondon (06-21-2008), johnish (06-21-2008)

  • #7
    New Coder
    Join Date
    Jun 2008
    Posts
    64
    Thanks
    25
    Thanked 0 Times in 0 Posts
    no, that didnt work.... i tried to directly edit the js by putting something like

    Code:
    window.onLoad(status[myVerticalSlide.close])
    that didnt work... i dno wat i should do. im new to js and yeah lol

  • #8
    New Coder
    Join Date
    Jun 2008
    Location
    127.0.0.1
    Posts
    43
    Thanks
    1
    Thanked 6 Times in 6 Posts
    Quote Originally Posted by rangana View Post
    Aha, got it:
    Code:
    var myVerticalSlide = new Fx.Slide('vertical_slide').hide();
    Add the highlighted in demo.js.
    Worked

    Btw, a little off-topic. I've been a mootools freak for ages lol. I wonder what happened to their forum

  • Users who have thanked Dondon for this post:

    johnish (06-21-2008)

  • #9
    New Coder
    Join Date
    Jun 2008
    Posts
    64
    Thanks
    25
    Thanked 0 Times in 0 Posts
    rangana... thankyou so much....

    i wish i could thank you more then once


  •  

    Posting Permissions

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