PDA

View Full Version : Window Images Not Showing



psquillace
04-03-2008, 02:08 AM
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.

thetestingsite
04-03-2008, 02:13 AM
Please post a link to the page on your site that contains the problematic script so we can check it out.

psquillace
04-03-2008, 02:30 AM
opps, that would help right?

http://www.dancewithcda.com/

psquillace
04-03-2008, 12:15 PM
Anyone got any help or advice on this one? I am a little lost as to why this may be happening.

Thanks again,

PM

jscheuer1
04-03-2008, 04:31 PM
You have the images in an image directory (example):


http://www.dancewithcda.com/images/max.gif

But the script is looking for them here:


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):


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:


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:


rdiv.innerHTML='<img src="/images/resize.gif" width="7" height="7">';

psquillace
04-03-2008, 07:02 PM
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

jscheuer1
04-05-2008, 06:26 AM
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.)?

psquillace
04-05-2008, 01:22 PM
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