View Full Version : help....
johnish
06-21-2008, 04:26 AM
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
rangana
06-21-2008, 04:33 AM
<div id="vertical_slide" style="display:none;">
P.S. Change your title to a more descriptive one. See forum rules.
johnish
06-21-2008, 04:35 AM
it hides it... but it wont open it it stays hidden
rangana
06-21-2008, 05:05 AM
Oops, my bad. I did'nt read your post very well. :p
I'm having difficulty with this, i'll let you know how I goes.
Dondon
06-21-2008, 05:36 AM
Try putting onLoad="myVerticalSlide.hide();" in your <body> tag. Don't know if it works, CBA testing.
rangana
06-21-2008, 05:38 AM
Aha, got it:
var myVerticalSlide = new Fx.Slide('vertical_slide').hide();
Add the highlighted in demo.js.
johnish
06-21-2008, 05:41 AM
no, that didnt work.... i tried to directly edit the js by putting something like
window.onLoad(status[myVerticalSlide.close])
that didnt work... i dno wat i should do. im new to js and yeah lol
Dondon
06-21-2008, 05:42 AM
Aha, got it:
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 :D
johnish
06-21-2008, 05:42 AM
rangana... thankyou so much....
i wish i could thank you more then once
vBulletin® v3.8.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.