Not signed in (Sign In)

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorakane_p
    • CommentTimeMar 9th 2010
     
    first congratulations!

    Should I open an iframe automatically when the page loads, how can I do?

    Thanxs
  1.  
    Use the lightview:loaded event in combination with Lightview.show. See the documentation for more on those. There are some threads that cover the same thing, you can probably find them through the forum search.
    • CommentAuthorakane_p
    • CommentTimeMar 10th 2010
     
    I entered this code but does not work, where am I wrong?


    <script language="JavaScript" type="text/javascript">

    function caricamento() {
    document.observe('dom:loaded', function() {
    Lightview.show({ href: "#test" });
    });
    }

    </script>



    <body onLoad="caricamento();">



    Excuse me and thanxs
  2.  
    use lightview:loaded and don't use the body onload function with caricamento
    • CommentAuthorakane_p
    • CommentTimeMar 12th 2010
     
    Excuse me but I have not understand what I must do :(
    I'm sorry
  3.  

    <script language="JavaScript" type="text/javascript">
    document.observe('lightview:loaded', function() {
    Lightview.show({ href: "#test" });
    });
    </script>
    • CommentAuthorakane_p
    • CommentTimeMar 12th 2010
     
    Now the windows is open but not with the right information

    Example: http://www.crystalnailstoscana.it/prova.asp

    The code:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Prova</title>

    <link href="css/lightview.css" rel="stylesheet" type="text/css">
    <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/prototype/1.6.1/prototype.js'></script>
    <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/scriptaculous/1.8.2/scriptaculous.js'></script>
    <script type='text/javascript' src='js/lightview.js'></script>

    <script language="JavaScript" type="text/javascript">
    document.observe('lightview:loaded', function() {
    Lightview.show({ href: "#news" });
    });
    </script>

    <style type="text/css">
    <!--
    .Stile1 {
    color: 15;
    font-weight: bold;
    }
    .Stile2 {color: 20}
    -->
    </style>
    </head>

    <body>
    <div align="center"><a href="http://www.crystalnailstoscana.it" rel="iframe" id="news" title="Offerte Speciali :: Visualizza le nostre offerte speciali :: width: 800, height: 600" class="lightview" >Prova</a>
    </div>
    </body>
    </html>


    Excuse me again :(
  4.  
    use Lightview.show('news'); The #id notation is for inline content.
    • CommentAuthorakane_p
    • CommentTimeMar 15th 2010
     
    Now that's ok! Tanxs! :)
Add your comments

    Username PasswordPlease enter the following code:
  • Format comments as