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 1212 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     Other Programming Languages :

onunload Question

Thread title: onunload Question
Closed Thread    
    Thread tools Search this thread Display Modes  
05-10-2007, 07:35 AM
#1
Sketch is offline Sketch
Sketch's Avatar
Status: Member
Join date: Aug 2005
Location: Melbourne, Australia
Expertise:
Software:
 
Posts: 419
iTrader: 0 / 0%
 

Sketch is on a distinguished road

  Old  onunload Question

Hi,

I have just developed a pretty basic page.

http://www.aerclothing.com/product

It has a small javascript slide down animation. The client has asked if I can get the bar to slide back up when another link is pressed.

If you view the source you will notice that I have the following code
Code:
onunload="return slide_out();"
Which calls the following function
Code:
function slide_out()
{
	Effect.toggle('d1','slide');
	
	return true;
}
As I said very simple... But it doesn't work. I just want the thing to slide back up when the page is left. Is it possible to do this?

Thanks!

05-10-2007, 03:44 PM
#2
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

What would be the point of doing that when it's possible they don't even see it?

05-10-2007, 10:00 PM
#3
Garrett is offline Garrett
Status: Waving
Join date: Aug 2005
Location:
Expertise:
Software:
 
Posts: 2,694
iTrader: 11 / 100%
 

Garrett is on a distinguished road

Send a message via MSN to Garrett

  Old

You could make it do a timeout, to the link so they see the rollup.

05-10-2007, 10:11 PM
#4
Sketch is offline Sketch
Sketch's Avatar
Status: Member
Join date: Aug 2005
Location: Melbourne, Australia
Expertise:
Software:
 
Posts: 419
iTrader: 0 / 0%
 

Sketch is on a distinguished road

  Old

Andrew that was my thought as well, but you know how it goes, the customer is always right and if thats what they want then I have to try and give it to them.

How do you mean Garrett? How would I go about doing that?

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