Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-21-2008, 03:26 AM   PM User | #1
johnish
New Coder

 
Join Date: Jun 2008
Posts: 64
Thanks: 25
Thanked 0 Times in 0 Posts
johnish is an unknown quantity at this point
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
johnish is offline   Reply With Quote
Old 06-21-2008, 03:33 AM   PM User | #2
rangana
Senior Coder

 
rangana's Avatar
 
Join Date: Feb 2008
Location: Cebu City, Philippines
Posts: 1,752
Thanks: 65
Thanked 372 Times in 365 Posts
rangana will become famous soon enoughrangana will become famous soon enough
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
rangana is offline   Reply With Quote
Old 06-21-2008, 03:35 AM   PM User | #3
johnish
New Coder

 
Join Date: Jun 2008
Posts: 64
Thanks: 25
Thanked 0 Times in 0 Posts
johnish is an unknown quantity at this point
it hides it... but it wont open it it stays hidden
johnish is offline   Reply With Quote
Old 06-21-2008, 04:05 AM   PM User | #4
rangana
Senior Coder

 
rangana's Avatar
 
Join Date: Feb 2008
Location: Cebu City, Philippines
Posts: 1,752
Thanks: 65
Thanked 372 Times in 365 Posts
rangana will become famous soon enoughrangana will become famous soon enough
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
rangana is offline   Reply With Quote
Old 06-21-2008, 04:36 AM   PM User | #5
Dondon
New Coder

 
Join Date: Jun 2008
Location: 127.0.0.1
Posts: 43
Thanks: 1
Thanked 6 Times in 6 Posts
Dondon is an unknown quantity at this point
Try putting onLoad="myVerticalSlide.hide();" in your <body> tag. Don't know if it works, CBA testing.
__________________
Dondon is offline   Reply With Quote
Old 06-21-2008, 04:38 AM   PM User | #6
rangana
Senior Coder

 
rangana's Avatar
 
Join Date: Feb 2008
Location: Cebu City, Philippines
Posts: 1,752
Thanks: 65
Thanked 372 Times in 365 Posts
rangana will become famous soon enoughrangana will become famous soon enough
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
rangana is offline   Reply With Quote
The Following 2 Users Say Thank You to rangana For This Useful Post:
Dondon (06-21-2008), johnish (06-21-2008)
Old 06-21-2008, 04:41 AM   PM User | #7
johnish
New Coder

 
Join Date: Jun 2008
Posts: 64
Thanks: 25
Thanked 0 Times in 0 Posts
johnish is an unknown quantity at this point
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
johnish is offline   Reply With Quote
Old 06-21-2008, 04:42 AM   PM User | #8
Dondon
New Coder

 
Join Date: Jun 2008
Location: 127.0.0.1
Posts: 43
Thanks: 1
Thanked 6 Times in 6 Posts
Dondon is an unknown quantity at this point
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
__________________
Dondon is offline   Reply With Quote
Users who have thanked Dondon for this post:
johnish (06-21-2008)
Old 06-21-2008, 04:42 AM   PM User | #9
johnish
New Coder

 
Join Date: Jun 2008
Posts: 64
Thanks: 25
Thanked 0 Times in 0 Posts
johnish is an unknown quantity at this point
rangana... thankyou so much....

i wish i could thank you more then once
johnish is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 +1. The time now is 06:00 AM.


Advertisement
Log in to turn off these ads.