Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Translucent popup with linksTranslucent popup with links
Previous
 
Next
New Post
8/20/2008 10:41 AM
 

I am creating a site that needs a popup with links on it.  Oh and it needs to be transparent (translucent).  What I have done was drop a Text/HTML module in the pane and added a table with clickable buttons to give it a side menu look.  When a user clicks on a menu item, a translucent page with clickable links will popup.  Once the user selects a link, they will be redirected to that page.  How do I do this last part?  I have listed my original html from the Text/HTML, the CSS needed for the js, the js, and the HTML for the js.

Here is my 'side menu':

 




   
       
           
       
       
           
       
       
           
       
       
           
       
       
           
       
       
           
       
   

           

 


           

           

 


           

           

 


           

           

 


           

 

I found this code on the web and it does exactly what I want, but I can't get it to wotk with the buttons (http://www.pat-burt.com/web-development/how-to-do-a-css-popup-without-opening-a-new-window/).

The CSS

#blanket {
background-color:#111;
opacity: 0.65;
filter:alpha(opacity=65);
position:absolute;
z-index: 9001;
top:0px;
left:0px;
width:100%;
}
#popUpDiv {
position:absolute;
background-color:#eeeeee;
width:300px;
height:300px;
z-index: 9002;

The JS

function

 

 

 

}

toggle(div_id) {var el = document.getElementById(div_id);if ( el.style.display == 'none' ) { el.style.display = 'block';}else {el.style.display = 'none';}

function

 

viewportheight = window.innerHeight;

}

viewportheight = document.documentElement.clientHeight;

}

 

blanket_height = viewportheight;

}

 

blanket_height = document.body.parentNode.clientHeight;

}

blanket_height = document.body.parentNode.scrollHeight;

}

}

 

blanket.style.height = blanket_height +

 

popUpDiv_height=blanket_height/2-150;

blanket_size(popUpDivVar) {if (typeof window.innerWidth != 'undefined') {else {if ((viewportheight > document.body.parentNode.scrollHeight) && (viewportheight > document.body.parentNode.clientHeight)) {else {if (document.body.parentNode.clientHeight > document.body.parentNode.scrollHeight) {else {var blanket = document.getElementById('blanket');'px';var popUpDiv = document.getElementById(popUpDivVar);//150 is half popup's height

popUpDiv.style.top = popUpDiv_height +

}

'px';

function

 

viewportwidth = window.innerHeight;

}

viewportwidth = document.documentElement.clientHeight;

}

 

window_width = viewportwidth;

}

 

window_width = document.body.parentNode.clientWidth;

}

window_width = document.body.parentNode.scrollWidth;

}

}

 

window_width=window_width/2-150;

window_pos(popUpDivVar) {if (typeof window.innerWidth != 'undefined') {else {if ((viewportwidth > document.body.parentNode.scrollWidth) && (viewportwidth > document.body.parentNode.clientWidth)) {else {if (document.body.parentNode.clientWidth > document.body.parentNode.scrollWidth) {else {var popUpDiv = document.getElementById(popUpDivVar);//150 is half popup's width

popUpDiv.style.left = window_width +

}

'px';

function

blanket_size(windowname);

window_pos(windowname);

toggle(

toggble(windowname);

}

popup(windowname) {'blanket');

The HTML

<div id=”blanket” style=”display:none;”>



Click Here To Open The Pop Up

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Translucent popup with linksTranslucent popup with links


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out