Comments on: How to create a stunning and smooth popup using jQuery http://yensdesign.com/2008/09/how-to-create-a-stunning-and-smooth-popup-using-jquery/ Daily free tutorials about web design, coding, jquery and more Sat, 20 Oct 2012 08:55:27 +0000 hourly 1 http://wordpress.org/?v= By: Grzegorz Bartman http://yensdesign.com/2008/09/how-to-create-a-stunning-and-smooth-popup-using-jquery/#comment-16004 Grzegorz Bartman Sat, 08 Oct 2011 19:09:47 +0000 http://yensdesign.com/?p=3#comment-16004 Current version of Drupal module: http://drupal.org/project/popup_message Current version of Drupal module: http://drupal.org/project/popup_message

]]>
By: shailesh http://yensdesign.com/2008/09/how-to-create-a-stunning-and-smooth-popup-using-jquery/#comment-15833 shailesh Tue, 27 Sep 2011 12:49:21 +0000 http://yensdesign.com/?p=3#comment-15833 Thank you so much, it was nicely explained. Thank you so much, it was nicely explained.

]]>
By: Shivam http://yensdesign.com/2008/09/how-to-create-a-stunning-and-smooth-popup-using-jquery/#comment-15830 Shivam Tue, 27 Sep 2011 09:35:32 +0000 http://yensdesign.com/?p=3#comment-15830 Hi, I implemented the same code in VS 2008. I added the reference to all the files. PROBLEM- The pop up closes only when i press ESC key. It does not close when i press X or when i click out side the center popup. Can anyone please help me ? I need it asap. :-( Thanks. Hi,

I implemented the same code in VS 2008. I added the reference to all the files.

PROBLEM- The pop up closes only when i press ESC key. It does not close when i press X or when i click out side the center popup.

Can anyone please help me ? I need it asap. :-(

Thanks.

]]>
By: 20+ jQuery Interface and Tutorials | 1 step web design http://yensdesign.com/2008/09/how-to-create-a-stunning-and-smooth-popup-using-jquery/#comment-15662 20+ jQuery Interface and Tutorials | 1 step web design Tue, 13 Sep 2011 04:14:27 +0000 http://yensdesign.com/?p=3#comment-15662 [...] How to create a stunning and smooth popup using jQuery [...] [...] How to create a stunning and smooth popup using jQuery [...]

]]>
By: Binu K Idicula http://yensdesign.com/2008/09/how-to-create-a-stunning-and-smooth-popup-using-jquery/#comment-15661 Binu K Idicula Sat, 10 Sep 2011 16:55:21 +0000 http://yensdesign.com/?p=3#comment-15661 Hi, Can you show how to return values from popup back to parent in jQuery? Thank you in advance. jQuery Documentation seems not explaining this. Hi,
Can you show how to return values from popup back to parent in jQuery?
Thank you in advance. jQuery Documentation seems not explaining this.

]]>
By: ravi http://yensdesign.com/2008/09/how-to-create-a-stunning-and-smooth-popup-using-jquery/#comment-15658 ravi Fri, 09 Sep 2011 14:49:41 +0000 http://yensdesign.com/?p=3#comment-15658 Hi nice site and Gr8! source of tutorial, i have issue with below, i ma unable to adding multiple buttons can u pls help me to fix /***************************/ //@Author: Adrian "yEnS" Mato Gondelle //@website: www.yensdesign.com //@email: [email protected] //@license: Feel free to use it, but keep this credits please! /***************************/ //SETTING UP OUR POPUP //0 means disabled; 1 means enabled; var popupStatus = 0; //loading popup with jQuery magic! function loadPopup(){ //loads popup only if it is disabled if(popupStatus==0){ $("#backgroundPopup").css({ "opacity": "0.7" }); $("#backgroundPopup").fadeIn("slow"); $("#popupContact").fadeIn("slow"); popupStatus = 1; } } //disabling popup with jQuery magic! function disablePopup(){ //disables popup only if it is enabled if(popupStatus==1){ $("#backgroundPopup").fadeOut("slow"); $("#popupContact").fadeOut("slow"); popupStatus = 0; } } //centering popup function centerPopup(){ //request data for centering var windowWidth = document.documentElement.clientWidth; var windowHeight = document.documentElement.clientHeight; var popupHeight = $("#popupContact").height(); var popupWidth = $("#popupContact").width(); //centering $("#popupContact").css({ "position": "absolute", "top": windowHeight/2-popupHeight/2, "left": windowWidth/2.04-popupWidth/2 }); //only need force for IE6 $("#backgroundPopup").css({ "height": windowHeight }); } //CONTROLLING EVENTS IN jQuery $(document).ready(function(){ //LOADING POPUP //Click the button event! $("#btn").click(function(){ //centering with css centerPopup(); //load popup loadPopup(); }); //CLOSING POPUP //Click the x event! $("#popupContactClose").click(function(){ disablePopup(); }); //Click out event! $("#backgroundPopup").click(function(){ disablePopup(); }); //Press Escape event! $(document).keypress(function(e){ if(e.keyCode==27 && popupStatus==1){ disablePopup(); } }); }); Hi nice site and Gr8! source of tutorial, i have issue with below, i ma unable to adding multiple buttons can u pls help me to fix

/***************************/
//@Author: Adrian “yEnS” Mato Gondelle
//@website: http://www.yensdesign.com
//@email: [email protected]
//@license: Feel free to use it, but keep this credits please!
/***************************/

//SETTING UP OUR POPUP
//0 means disabled; 1 means enabled;
var popupStatus = 0;

//loading popup with jQuery magic!
function loadPopup(){
//loads popup only if it is disabled
if(popupStatus==0){
$(“#backgroundPopup”).css({
“opacity”: “0.7″
});
$(“#backgroundPopup”).fadeIn(“slow”);
$(“#popupContact”).fadeIn(“slow”);
popupStatus = 1;
}
}

//disabling popup with jQuery magic!
function disablePopup(){
//disables popup only if it is enabled
if(popupStatus==1){
$(“#backgroundPopup”).fadeOut(“slow”);
$(“#popupContact”).fadeOut(“slow”);
popupStatus = 0;
}
}

//centering popup
function centerPopup(){
//request data for centering
var windowWidth = document.documentElement.clientWidth;
var windowHeight = document.documentElement.clientHeight;
var popupHeight = $(“#popupContact”).height();
var popupWidth = $(“#popupContact”).width();
//centering
$(“#popupContact”).css({
“position”: “absolute”,
“top”: windowHeight/2-popupHeight/2,
“left”: windowWidth/2.04-popupWidth/2
});
//only need force for IE6

$(“#backgroundPopup”).css({
“height”: windowHeight
});

}

//CONTROLLING EVENTS IN jQuery
$(document).ready(function(){

//LOADING POPUP
//Click the button event!
$(“#btn”).click(function(){
//centering with css
centerPopup();
//load popup
loadPopup();
});

//CLOSING POPUP
//Click the x event!
$(“#popupContactClose”).click(function(){
disablePopup();
});
//Click out event!
$(“#backgroundPopup”).click(function(){
disablePopup();
});
//Press Escape event!
$(document).keypress(function(e){
if(e.keyCode==27 && popupStatus==1){
disablePopup();
}
});

});

]]>
By: Niall http://yensdesign.com/2008/09/how-to-create-a-stunning-and-smooth-popup-using-jquery/#comment-15650 Niall Wed, 07 Sep 2011 09:56:02 +0000 http://yensdesign.com/?p=3#comment-15650 HIya, great work. However, if I want to call this PopUp window to display differect text depending on which button is clicked, how would i implement that? Do I create a second version of it or is there a way to pass a parameter which choses which popup to display? HIya, great work. However, if I want to call this PopUp window to display differect text depending on which button is clicked, how would i implement that? Do I create a second version of it or is there a way to pass a parameter which choses which popup to display?

]]>
By: Abdelkader Soudani http://yensdesign.com/2008/09/how-to-create-a-stunning-and-smooth-popup-using-jquery/#comment-15644 Abdelkader Soudani Sat, 03 Sep 2011 11:54:11 +0000 http://yensdesign.com/?p=3#comment-15644 great tutorial, love jquery, absolutely fantastic!! thanks for sharing great tutorial, love jquery, absolutely fantastic!!
thanks for sharing

]]>
By: Rhonda http://yensdesign.com/2008/09/how-to-create-a-stunning-and-smooth-popup-using-jquery/#comment-15642 Rhonda Thu, 01 Sep 2011 16:10:42 +0000 http://yensdesign.com/?p=3#comment-15642 Is it possible to use this style pop-up to display a gallery (ex. Galleriffic or SlideViewerPro) so that when I click the main button (ex. "press me please") it loads the jquery popup that will display a thumbnail based gallery viewer? Is it possible to use this style pop-up to display a gallery (ex. Galleriffic or SlideViewerPro) so that when I click the main button (ex. “press me please”) it loads the jquery popup that will display a thumbnail based gallery viewer?

]]>
By: Nick http://yensdesign.com/2008/09/how-to-create-a-stunning-and-smooth-popup-using-jquery/#comment-15636 Nick Tue, 30 Aug 2011 19:18:11 +0000 http://yensdesign.com/?p=3#comment-15636 I'm having a problem having to implement this into my site. I don't have a div for a button but I have a navigation in a list. <a href="#contacts" rel="nofollow"></a> <a href="http://nicholasmckay.gdnm.org/" rel="nofollow">blog</a> I would like to know how do I set the jquery section in the popup.js file to work with my contacts list button. //LOADING POPUP //Click the button event! $("#button").click(function(){ //centering with css centerPopup(); //load popup loadPopup(); }); Thanks for your help in advance. I’m having a problem having to implement this into my site. I don’t have a div for a button but I have a navigation in a list.


blog

I would like to know how do I set the jquery section in the popup.js file to work with my contacts list button.

//LOADING POPUP
//Click the button event!
$(“#button”).click(function(){
//centering with css
centerPopup();
//load popup
loadPopup();
});

Thanks for your help in advance.

]]>