Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 870 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     Javascript :

scriptaculous question

Thread title: scriptaculous question
Closed Thread    
    Thread tools Search this thread Display Modes  
02-27-2007, 11:33 PM
#1
Village Genius is offline Village Genius
Village Genius's Avatar
Status: Geek
Join date: Apr 2006
Location: Denver, CO
Expertise: Software
Software: Chrome, Notepad++
 
Posts: 6,894
iTrader: 18 / 100%
 

Village Genius will become famous soon enough

  Old  scriptaculous question

I am using the scriptaculous Effect.toggle() function, I want it so that when one is clicked, the other one goes up so 2 dont show at once. Anyone know how to do this?

02-28-2007, 04:46 AM
#2
bgolat is offline bgolat
Status: I love this place
Join date: Mar 2005
Location:
Expertise:
Software:
 
Posts: 714
iTrader: 0 / 0%
 

bgolat is on a distinguished road

Send a message via ICQ to bgolat Send a message via AIM to bgolat Send a message via Yahoo to bgolat

  Old

hmm, isn't there an accordian effect? Maybe that is moo.fx or something, I know one of them has exactly what you are talking about and I think its called the accordian effect.

02-28-2007, 05:34 AM
#3
aLx is offline aLx
Status: Senior Member
Join date: Jan 2006
Location: USA
Expertise:
Software:
 
Posts: 922
iTrader: 13 / 100%
 

aLx is on a distinguished road

Send a message via AIM to aLx

  Old

Originally Posted by bgolat View Post
hmm, isn't there an accordian effect? Maybe that is moo.fx or something, I know one of them has exactly what you are talking about and I think its called the accordian effect.
yes thats in moofx

03-19-2007, 02:51 PM
#4
suddentorch is offline suddentorch
Status: I'm new around here
Join date: Mar 2007
Location:
Expertise:
Software:
 
Posts: 4
iTrader: 0 / 0%
 

suddentorch is on a distinguished road

  Old  javascript

you could prolly do a script to check when they try to open another tab thing it closes all of them then opens the one they wont? but i am prolly completly off what you wanted

03-19-2007, 03:34 PM
#5
Andrew R is offline Andrew R
Status: Request a custom title
Join date: Dec 2005
Location: Arizona
Expertise:
Software:
 
Posts: 5,200
iTrader: 17 / 95%
 

Andrew R is on a distinguished road

  Old

I would just recommend using something that does the following:
This may be wrong to use with scriptaculous, but you will get the point.

Heh, well I just realized, that you probably want the other boxes to scroll up, so then with the following script, do something like this: Change the display none declarations, to a toggle effect on all of them, and then bring up the one you want.. again, this may be wrong.

Code:
function move(element) {
      getElementById('box1').display = none;
      getElementById('box2').display = none;
      /* Basically just do this to all the boxes.
          You can probably use an array with
          all the box names, and then just use
          a loop to set them all to none.     */
      Effect.toggle(element);
}
Again, don't trust this as is, as the toggle function might not work that way, and I'm not even sure if those declarations will work.

03-19-2007, 06:18 PM
#6
Village Genius is offline Village Genius
Village Genius's Avatar
Status: Geek
Join date: Apr 2006
Location: Denver, CO
Expertise: Software
Software: Chrome, Notepad++
 
Posts: 6,894
iTrader: 18 / 100%
 

Village Genius will become famous soon enough

  Old

I made more space between them and put a close button, he was happy with that. This was a long time ago, forgot to give update.

03-20-2007, 04:27 AM
#7
Andrew R is offline Andrew R
Status: Request a custom title
Join date: Dec 2005
Location: Arizona
Expertise:
Software:
 
Posts: 5,200
iTrader: 17 / 95%
 

Andrew R is on a distinguished road

  Old

Oh, I didn't even realize the date on the first post.

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed