Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

$4.95 Windows Hosting at Webhost4life.com
  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  Translucent popup with links
Previous Previous
 
Next Next
New Post 8/20/2008 8:41 AM
Unresolved
User is offline prpleprncs
23 posts
10th Ranked


Translucent popup with links 

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 Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  Translucent popup with links
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DNNMasters - modules, consulting, development
DNNMasters developers are involved in DNN development since DNN 1.0.9 and today we offer a broad range of DNN related products and services including custom development of modules, help with ing third party modules for specific needs, general DNN technical support and administrative services.
www.dnnmasters.com
Cygnusoft Custom Software
Cygnusoft has been providing cutting-edge custom software solutions for 20 years. Cygnusoft is also a leading start-up incubator, helping our partners build successful new businesses.
www.cygnusoft.com
Digicon: DotNetNuke design and development
Digicon is based in Brisbane, Queensland, Australia
digicon.com.au

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP