You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

How to open a overlay from a link ? Created Aug 18, 2010

This thread is solved

Views: 1208     Replies: 1     Last reply May 11, 2011  
You must login first before you can use this feature

eemceebee

Posts: 1

Registered:
Aug 18, 2010

How to open a overlay from a link ?

Posted: Aug 18, 2010

Hi

What do I have to do if I would like to open an overlay from a simple link ?

here is what I have sofar :

$("#contactpanel").overlay({

	// custom top position
	top: 178,

	// some mask tweaks suitable for facebox-looking dialogs
	mask: {

		// you might also consider a "transparent" color for the mask
		color: '#fff',

		// load mask a little faster
		loadSpeed: 200,

		// very transparent
		opacity: 0.5
	},

	// disable this for modal dialog-type of overlays
	closeOnClick: false,

	// load it immediately after the construction
	load: true

});
Now I want to set load to false, and have a link open the overlay.

Thanks

jayp

Posts: 1

Registered:
May 11, 2011

» How to open a overlay from a link ?

Posted: May 11, 2011

Reply to: How to open a overlay from a link ?, from eemceebee
If all you want to do is open overlay from a text link, here is the solution.

1. Between your script tags, insert this code: $("a[rel]").overlay();

2. Then on your link add your 'rel' name to the a tag like this: a href="#YourLink" rel="#YourRel"