View Single Post
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!