css layered popup
Posted: 17th November 2008 11:13 PM

Does anyone know how to create a css layered popup like the one at this site?

http://www.bmgadg.com/fadead_window.php

I like how it seems to be blocker resistant and redirects in full page mode from a click

 Signature 

Hassan Omar

Live Demonstration Starts Conversation

#1.  Posted: 18th November 2008 12:40 AM
terra - 17 November 2008 11:13 PM

Does anyone know how to create a css layered popup like the one at this site?

Don’t they give the code (javascript and css) to download at the bottom of the page?

john

#2.  Posted: 18th November 2008 03:25 AM
griff - 18 November 2008 12:40 AM
terra - 17 November 2008 11:13 PM

Does anyone know how to create a css layered popup like the one at this site?

Don’t they give the code (javascript and css) to download at the bottom of the page?

john

cant seem to get it to work with RW pages. Doing it exactly as they say plus looked at their source code for the page.
 Signature 

Hassan Omar

Live Demonstration Starts Conversation

#3.  Posted: 18th November 2008 12:58 PM
terra -

cant seem to get it to work with RW pages. Doing it exactly as they say plus looked at their source code for the page.

OK, I’ll have a look tonight.

john

#4.  Posted: 18th November 2008 07:41 PM
griff - 18 November 2008 12:58 PM

OK, I’ll have a look tonight

Works for me using the instructions in the ‘readme.txt’ file. Loaded all the required files via Page Assets.

john

#5.  Posted: 18th November 2008 07:56 PM
griff - 18 November 2008 07:41 PM
griff - 18 November 2008 12:58 PM

OK, I’ll have a look tonight

Works for me using the instructions in the ‘readme.txt’ file. Loaded all the required files via Page Assets.

john

I never used page assets. How did you do it?
 Signature 

Hassan Omar

Live Demonstration Starts Conversation

#6.  Posted: 18th November 2008 10:18 PM
terra - 18 November 2008 07:56 PM

I never used page assets. How did you do it?

Page Assets is invoked using the Page Inspector. I add files to “page assets” on a page using the “add files” button and selcting each file I want to add. The beauty of Page Assets is that RW will automatically upload the files I’ve “added”, being when I Preview, Export or Publish my (test) site. To use one of these files, I have to add “assets/” to the pathname in the html code.

For instance, this is the code I’ve pasted from the ‘readme.txt’ file onto a HTML page in RW:

<!-- STEP 1.  Edit fadw.js and set the variable on line 37 according to the instructions in the commented codeThere is not a reliable cross-browser way to retrieve an element's width with javascript, so you have to define it manually. -->

<!-- STEP 2.  Make sure to link the files properly in the <head> section of your XHTML file. -->

    <script type="text/javascript" src="assets/fadw.js"></script>
    <link rel="stylesheet" type="text/css" href="assets/fadw.css" />

<!-- STEP 3.  Inset this div right after the <body> tag. You can put whatever you want to be included in the popup in the faw div. -->

    <div id="faw">
        <div class="bar"><a href="#">Make money being a geek!</a><a href="#" onClick="hFa()" class="close">&nbsp;</a></div>
        <div class="ad"><a href="#"><img src="assets/rich_geek.gif" alt="Advertisement" /></a></div>
    </div>
    
<!-- STEP 4.  Put this script right above the closing </body> tag at the end of your XHTML file. -->

    <script type="text/javascript">sFa();</script>

<!-- STEP 5.  Upload fadw.js, fadw.css, the image files (if you'
re going to use them), and the XHTML file to your server and test it outit should work fineThe stylesheet was written to work with this doctype...

    <!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-->

I’ve commented out some of the text (adding <!-- and --> here and there) and changed pathnames to “assets/fadw.js”, “assets/fadw.css” and “assets/rich_geek.gif”. That’s all!

OK, for a proper implementation I’d move some of the code to the <head> section as recommended. But as a first guess I’m off to a good start and the ad appears and fades when the test page is Previewed.

hope this helps

john

#7.  Posted: 18th November 2008 10:36 PM

Took a minute but I figured it out. Using page assets was the key.

Take a look http://www.tbdinvesting.com

Now I can get past safari and firefox popup blockers. I’ll check i.e later

Thanks

griff - 18 November 2008 10:18 PM
terra - 18 November 2008 07:56 PM

I never used page assets. How did you do it?

Page Assets is invoked using the Page Inspector. I add files to “page assets” on a page using the “add files” button and selcting each file I want to add. The beauty of Page Assets is that RW will automatically upload the files I’ve “added”, being when I Preview, Export or Publish my (test) site. To use one of these files, I have to add “assets/” to the pathname in the html code.

For instance, this is the code I’ve pasted from the ‘readme.txt’ file onto a HTML page in RW:

<!-- STEP 1.  Edit fadw.js and set the variable on line 37 according to the instructions in the commented codeThere is not a reliable cross-browser way to retrieve an element's width with javascript, so you have to define it manually. -->

<!-- STEP 2.  Make sure to link the files properly in the <head> section of your XHTML file. -->

    <script type="text/javascript" src="assets/fadw.js"></script>
    <link rel="stylesheet" type="text/css" href="assets/fadw.css" />

<!-- STEP 3.  Inset this div right after the <body> tag. You can put whatever you want to be included in the popup in the faw div. -->

    <div id="faw">
        <div class="bar"><a href="#">Make money being a geek!</a><a href="#" onClick="hFa()" class="close">&nbsp;</a></div>
        <div class="ad"><a href="#"><img src="assets/rich_geek.gif" alt="Advertisement" /></a></div>
    </div>
    
<!-- STEP 4.  Put this script right above the closing </body> tag at the end of your XHTML file. -->

    <script type="text/javascript">sFa();</script>

<!-- STEP 5.  Upload fadw.js, fadw.css, the image files (if you'
re going to use them), and the XHTML file to your server and test it outit should work fineThe stylesheet was written to work with this doctype...

    <!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-->

I’ve commented out some of the text (adding <!-- and --> here and there) and changed pathnames to “assets/fadw.js”, “assets/fadw.css” and “assets/rich_geek.gif”. That’s all!

OK, for a proper implementation I’d move some of the code to the <head> section as recommended. But as a first guess I’m off to a good start and the ad appears and fades when the test page is Previewed.

hope this helps

john

 Signature 

Hassan Omar

Live Demonstration Starts Conversation

#8.  Posted: 18th November 2008 10:38 PM

I used the code for a layered css popup and added a subscription form in place of the default text and photo. Works good

terra - 18 November 2008 10:36 PM

Took a minute but I figured it out. Using page assets was the key.

Take a look http://www.tbdinvesting.com

Now I can get past safari and firefox popup blockers. I’ll check i.e later

Thanks


griff - 18 November 2008 10:18 PM
terra - 18 November 2008 07:56 PM
I never used page assets. How did you do it?

Page Assets is invoked using the Page Inspector. I add files to “page assets” on a page using the “add files” button and selcting each file I want to add. The beauty of Page Assets is that RW will automatically upload the files I’ve “added”, being when I Preview, Export or Publish my (test) site. To use one of these files, I have to add “assets/” to the pathname in the html code.

For instance, this is the code I’ve pasted from the ‘readme.txt’ file onto a HTML page in RW:

<!-- STEP 1.  Edit fadw.js and set the variable on line 37 according to the instructions in the commented codeThere is not a reliable cross-browser way to retrieve an element's width with javascript, so you have to define it manually. -->

<!-- STEP 2.  Make sure to link the files properly in the <head> section of your XHTML file. -->

    <script type="text/javascript" src="assets/fadw.js"></script>
    <link rel="stylesheet" type="text/css" href="assets/fadw.css" />

<!-- STEP 3.  Inset this div right after the <body> tag. You can put whatever you want to be included in the popup in the faw div. -->

    <div id="faw">
        <div class="bar"><a href="#">Make money being a geek!</a><a href="#" onClick="hFa()" class="close">&nbsp;</a></div>
        <div class="ad"><a href="#"><img src="assets/rich_geek.gif" alt="Advertisement" /></a></div>
    </div>
    
<!-- STEP 4.  Put this script right above the closing </body> tag at the end of your XHTML file. -->

    <script type="text/javascript">sFa();</script>

<!-- STEP 5.  Upload fadw.js, fadw.css, the image files (if you'
re going to use them), and the XHTML file to your server and test it outit should work fineThe stylesheet was written to work with this doctype...

    <!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-->

I’ve commented out some of the text (adding <!-- and --> here and there) and changed pathnames to “assets/fadw.js”, “assets/fadw.css” and “assets/rich_geek.gif”. That’s all!

OK, for a proper implementation I’d move some of the code to the <head> section as recommended. But as a first guess I’m off to a good start and the ad appears and fades when the test page is Previewed.

hope this helps

john

 Signature 

Hassan Omar

Live Demonstration Starts Conversation