Open and Close jQuery Overlay with Same Element -



Open and Close jQuery Overlay with Same Element -

i'm using jquery tools overlay fade in overlay on website.

here's overlay's html:

<div id="contact">..div content..</div>

here's element i'm using open overlay:

<span rel="#contact"></span>

here's jquery i'm using overlay:

$(document).ready(function() {$("span[rel]").overlay(); } );

when click span rel="#contact", div id="contact" fades in. want know how click same span rel="#contact" 1 time again close element.

look @ .toggle()

jquery overlay toggle switch-statement

Comments

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -