Results 1 to 8 of 8

Thread: Window Images Not Showing

  1. #1
    Join Date
    Aug 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Window Images Not Showing

    1) Script Title:

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex11/abox2.htm

    3) Describe problem: For some reason I cannot get the close, minimize, and maximize gifs to show on my pop up windows.

    I have tried almost everything I can think including the following:

    Uploaded images to the root directory

    Uploaded images to the images directory

    Uploaded images to the js directory

    Changed the popup.js file to have absolute links in them.

    Thanks for any help anyone can provide with this.

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Please post a link to the page on your site that contains the problematic script so we can check it out.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #3
    Join Date
    Aug 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    opps, that would help right?

    http://www.dancewithcda.com/

  4. #4
    Join Date
    Aug 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Anyone got any help or advice on this one? I am a little lost as to why this may be happening.

    Thanks again,

    PM

  5. #5
    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

    You have the images in an image directory (example):

    Code:
    http://www.dancewithcda.com/images/max.gif
    But the script is looking for them here:

    Code:
    http://www.dancewithcda.com/max.gif
    Either put the images in the root where the script expects to find them (easiest), or edit the popup.js script file (use a text only editor like notepad) to indicate the actual locations of the images (best if you will be using the script on various pages that are in different folders on your site):

    Code:
    var idlist=new Array();
    idlist.btns=new Array();
    idlist.btns[0]=new Image(); idlist.btns[0].src="/images/min.gif";
    idlist.btns[1]=new Image(); idlist.btns[1].src="/images/max.gif";
    idlist.btns[2]=new Image(); idlist.btns[2].src="/images/close.gif";
    idlist.btns[3]=new Image(); idlist.btns[3].src="/images/resize.gif";
    and in this long line:

    Code:
    titlebar.innerHTML='<span style="position:absolute; left:3px; top:1px; font:bold 10pt sans-serif; color:'+titletextcolor+'; height:18px; overflow:hidden; clip-height:16px;">'+title+'</span><span id="'+cid+'_btt" style="position:absolute; width:48px; height:16px; left:'+(tw-48)+'px; top:2px;"><img src="/images/min.gif" width="16" height="16" id="'+cid+'_min"><img src="/images/max.gif" width="16" height="16"  id="'+cid+'_max"><img src="/images/close.gif" width="16" height="16" id="'+cid+'_cls"></span>';
    and here:

    Code:
    rdiv.innerHTML='<img src="/images/resize.gif" width="7" height="7">';
    - John
    ________________________

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

  6. #6
    Join Date
    Aug 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default OK, works now but new issue....

    Thanks for the help, it is almost embarassing that I missed that one though, I could have sworn I looked at that over and over last night. Must have been tired.

    Anywhoooo I have a new issue now, when I close the pop up window, the main window restores back to another size.

    As if I hit the middle button on a regular browser...

    Any thoughts on that one?

    Thanks again for your help,

    PM

  7. #7
    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

    Not happening here. What browser (and browser version) and OS are you using? What is the exact sequence of events I must follow to reproduce this problem (starting with the browser at what dimensions, loading the page, clicking on what exactly, etc.)?
    - John
    ________________________

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

  8. #8
    Join Date
    Aug 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yeah, forget it.

    I realized it was just my browser....safari. I was on mac osx at the time.

    Thanks for your help with this issue

    PM

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
  •