Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Lightwindow

  1. #1
    Join Date
    Feb 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Lightwindow

    I hope this ids the right place

    I cannot get the overlay to work in lightwindow. I loaded the original lightwindow folder with no changes and the window works but not the overlay

    any help would be most welcome

    thanks in advance

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format when asking a question.
    Please post a link to the page on your site that contains the problematic script or attach your code so we can check it out and help you.

  3. #3
    Join Date
    Feb 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    1. First you need all of the files, get the archive:

      http://stickmanlabs.com/lightwindow/lightwindow.zip

    2. Setup the head of your page as shown in the demo index.html in the archive, make sure all of the resource files are in the right folders.
    3. Edit the body of your page to include links to your lightwindow content, follow the instructions here:

      http://stickmanlabs.com/lightwindow/#howtouse


      or just imitate what you find in the index.html file in the archive.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Feb 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I did exactly as you mentioned. The lightwindow is the zip file, nothing altered
    as the code put in as shown on the stickman page in the head and the class="lightwindow"
    The code in the page shows it.

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Demo code, notice the order in which the scripts are listed:

    Code:
        <link rel="stylesheet" type="text/css" href="css/lightwindow.css" />
        
    	<!-- JavaScript -->
    	<script type="text/javascript" src="javascript/prototype.js"></script>
    	<script type="text/javascript" src="javascript/effects.js"></script>
    	<script type="text/javascript" src="javascript/lightwindow.js"></script>
    Your page:

    Code:
    		<script type="text/javascript" src="lightwindow/javascript/scriptaculous.js?load=effects"></script>
    <script type="text/javascript" src="lightwindow/javascript/prototype.js"></script>
    <script type="text/javascript" src="lightwindow/javascript/lightwindow.js"></script>
    <link rel="stylesheet" href="tlightwindow/css/lightwindow.css" type="text/css" media="screen" />
    The prototype script must come first.

    Also, in your code you have a typo in the path of the css file:

    Code:
    <link rel="stylesheet" href="tlightwindow/css/lightwindow.css" type="text/css" media="screen" />
    it should be:

    Code:
    <link rel="stylesheet" href="lightwindow/css/lightwindow.css" type="text/css" media="screen" />


    There could also be other problems.
    Last edited by jscheuer1; 02-02-2009 at 02:29 PM. Reason: saw typo in style path
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  7. #7
    Join Date
    Feb 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks John

    will try it I thought I had copied the code from tha siter correctly.

    Regards
    Naru

  8. #8
    Join Date
    Feb 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default lightwindow

    John
    so I copied and pasted your code minus the t and the window opens in the same window not as an overlay

    if I copy the code from stickman and add the folder lightwindow
    lightwindow

    <script type="text/javascript" src="lightwindow/javascript/prototype.js"></script>
    <script type="text/javascript" src="lightwindow/javascript/scriptaculous.js?load=effects"></script>
    <script type="text/javascript" src="lightwindow/javascript/lightwindow.js"></script>
    <link rel="stylesheet" href="lightwindow/css/lightwindow.css" type="text/css" media="screen" />

    it opens in an overlay but does not solve the problem with the background overlay?

    as stated I inserted the lightwindow folder as is from the site and it would appear that my link code is correct if I look at stickman's page.

    any other suggestions would be most welcome

    thanks

  9. #9
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Your demo page still has the same problems as mentioned in my previous post. The background of the overlay is likely set by a .png configured in the lightwindow.js file. If it is missing or in the wrong folder, it will not show up.

    With your current demo, it is impossible to tell where the code is expecting it to be.

    A quick fix would be to use style in lightwindow.css to overcome this (addition highlighted):

    Code:
    #lightwindow_overlay {
    	/* REQUIRED */
    	display: none;
    	visibility: hidden;
    	position: absolute;
    	top: 0;
    	left: 0;
    	width: 100%;
    	height: 100px;
    	z-index: 500;
    		background-color: #000000!important;
    		opacity: .70!important;
    		filter: alpha(opacity=70)!important;
    	/* REQUIRED */
    }
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  10. #10
    Join Date
    Feb 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks again John for your patience. I am pretty much a novice at this

    here is what is in the js

    viewportPadding : 10,
    EOLASFix : 'swf,wmv,fla,flv',
    overlay : {
    opacity : 0.7,
    image : 'images/black.png',
    presetImage : 'images/black-70.png'

    I am using golive and am not sure how to insert the code into the css
    it gives me the option to change the bg color but no option in the drag down menu for opacity or filter.

    in the css bg box I have
    background
    image unchanged
    url blank
    color #000000
    horizontal blank
    vertical blank
    repeat unchanged
    attach unchanged

    my lightwindow css has
    selector #lightwindow_overlay/*/Required*/
    comment blank

    background_color ! black
    display none
    height 100px
    left 0
    opacity !.70 this has no symbol nin fromnt of it
    postion absolute
    top 0
    visability hidden
    width 100%
    z_index 500

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •