Skip navigation
mbentz
Currently Being Moderated

onload popped up add

Jun 18, 2012 4:02 PM

how do I make an semi transparent onload popped up add/form like here : http://www.anthropologie.com/anthro/index.jsp

 
Replies
  • Currently Being Moderated
    Jun 18, 2012 4:16 PM   in reply to mbentz

    You could do this with FancyBox (a jQuery plugin).

    http://fancybox.net/blog

     

    Then style your Fancybox window with CSS opacity.

    http://www.w3schools.com/css/css_image_transparency.asp

     

     

     

    Nancy O.

    Alt-Web Design & Publishing

    Web | Graphics | Print | Media  Specialists 

    http://alt-web.com/

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 19, 2012 10:24 AM   in reply to mbentz

    Tip #5 in the link I posted suggests using a manual call like this one:

     

    <script type="text/javascript">

    jQuery(document).ready(function() {

        $.fancybox(

            '<h2>Hi!</h2><p>Your custom message here...</p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam quis mi eu elit tempor facilisis et neque</p>',

            {

    'autoDimensions'  : false,

    'width'           : 400,

    'height'          : 'auto',

    'transitionIn'  : 'elastic',

    'transitionOut' : 'elastic',

    'overlayOpacity' : 0.8,

    'speedIn'        :  600,

    'speedOut'     : 400,

    'overlayColor' : '#FFF'

            }

        );

    });

    </script>

     

     

     

     

    Nancy O.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 19, 2012 11:18 AM   in reply to mbentz

    Download Fancybox and extract it to your local site folder. 

    This link tells how to use it.

    http://fancybox.net/howto

     

    These links go between the <head> and </head> tags in your HTML document

     

    <!--jQuery core library-->

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>

     

    <!--fancybox script-->

    <script type="text/javascript" src="/fancybox/jquery.fancybox-1.3.4.pack.js"></script>

     

    <!--optional easing script-->

    <script type="text/javascript" src="/fancybox/jquery.easing-1.4.pack.js"></script>

     

    <!--fancybox CSS-->

    <link rel="stylesheet" href="/fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />

     

    The function code to invoke fancybox on page load goes above the end of </body> tag.

     

    <!--fancybox function-->

    <script type="text/javascript">

    jQuery(document).ready(function() {

        $.fancybox(

            '<h2>Hi!</h2><p>Your custom message here...</p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam quis mi eu elit tempor facilisis et neque</p>',

            {

    'autoDimensions'  : false,

    'width'           : 400,

    'height'          : 'auto',

    'transitionIn'  : 'elastic',

    'transitionOut' : 'elastic',

    'overlayOpacity' : 0.8,

    'speedIn'        :  600,

    'speedOut'     : 400,

    'overlayColor' : '#FFF'

            }

        );

    });

    </script>

     

     

     

     

    Nancy O.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 19, 2012 1:28 PM   in reply to mbentz

    File > New > blank HTML page.

    Follow the instructions I gave you. 

    Upload your test page and Fancybox folder to your server. 

    If Fancybox box doesn't invoke on page load, come back & post the URL to your test page so we can look at it.

     

     

    Nancy O.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 19, 2012 2:19 PM   in reply to mbentz

    No fancybox folder found on server.

    http://www.zengerfolkman.com/fancybox/

     

    You need to upload the fancybox folder  to your server for this to work.

     

    When you do that, let me know and we'll check the paths.

     

    Nancy O.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 19, 2012 2:22 PM   in reply to mbentz

    <script type="text/javascript" src="/fancybox/jquery.fancybox-1.3.4.pack.js"></script>

     

    That code points to http://www.zengerfolkman.com/fancybox/jquery.fancybox-1.3.4.pack.js = File Not Found

     

    You need to upload the Fancybox folder to the server. That's where the scripts live which drive Fancybox.

     

    If the server cannot find the folder containing the scripts then the browser ignores the code in your page and nothing happens.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 19, 2012 2:42 PM   in reply to mbentz

    Hurray!  Now do the same thing with your other document.

     

    Put scripts and CSS links inside the <head> tags after <title>. 

     

    Put the function code in the <body> right above the </body> tag. 

     

     

     

    Nancy O.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points