MyBB Community Forums

Full Version: Fade-in JQuery In content Popup with Cookies?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi, I want to run a survey on my website.

To do this, I need a JQuery in-content popup that fades in to the page. In fact, this is a perfect example of what I want.

However, I need it to appear onload. In addition, it should only appear once for a user, utilizing cookies.

If somebody can please show me a code that can do all this, or possibly edit the code in the link above, I would really appreciate it Smile
You mean like "www.google.com" there content is fading in too? you want it like that?
(2009-11-22, 02:08 AM)2JR Wrote: [ -> ]You mean like "www.google.com" there content is fading in too? you want it like that?
No, I want it so that when a user visits my website, the site gets dark and an in-content popup fades in OVER the existing content.

http://yensdesign.com/tutorials/popupjquery/

I want it exactly like that, except it should load instantly (and with cookies) instead of using a button.
Hehe helped Zash out on MSN already so no need to post more tuts ^^.
I'm getting better at jQuery. This should work I think:
$(document).ready(function(){
	centerPopup();
	loadPopup();
});
(BTW, this is for anyone that wants to know how to do it too.)
(2009-11-22, 04:13 PM)DougSD Wrote: [ -> ]I'm getting better at jQuery. This should work I think:
$(document).ready(function(){
	centerPopup();
	loadPopup();
});
(BTW, this is for anyone that wants to know how to do it too.)

Does that use cookies like Zash wanted? I might use it for my site Smile
Nah, that only uses onload. But here's a good tutorial which teaches use of cookies:

http://www.shopdev.co.uk/blog/cookies-wi...e-layouts/
(2009-11-22, 06:07 PM)Zash Wrote: [ -> ]Nah, that only uses onload. But here's a good tutorial which teaches use of cookies:

http://www.shopdev.co.uk/blog/cookies-wi...e-layouts/

Wow, cookies with jQuery look WAY easier than cookies with Javascript!
It is Wink.
When I tried learning Javascript, I got to the cookies part and havent touched it since xD

With jQuery, I actually understood what each line of code for the cookies meant!
Pages: 1 2