Log in

View Full Version : Removing the url etc in new window. Gallery



jimwww
02-22-2010, 07:52 AM
I have a gallery that will open in a browser and I don't want the url and such show up top. It is a _target blank so the orig site will be below it. -I am resizing the new window it to be smaller.

I would like a clean window, just for the images.
I need the code to make the top part of the browser window disappear. (I did search)

thanks in advance.

djr33
02-22-2010, 09:22 AM
This is possible and basically just something you can specify in Javascript's window.open(). (google "window open Javascript" to find lots of info on that).

The problem is that this is the "popup" script and it is frequently blocked. Also, for security reasons many browsers won't allow removing some of these items so there is absolutely nothing you can do.

Using that will work if the user doesn't have too high a setting on their popup blocker and also if they are using a browser that "plays nice" with the various options. (I'm not exactly sure which ones do what).

To get the popup to remained unblocked (hopefully), make sure it's triggered by a real user event rather than a Javascript-only action: if it looks automated to the blocker, it will be blocked. If it looks user-initiated, it will get through (most of the time).


The only other idea I have related to this would be to not make a new window, but instead make a popup "window" within the same page. Look at the lightbox gallery in the DD script library, or any other various image galleries that display an image in the page when clicked.

jimwww
02-22-2010, 12:10 PM
I would like it to open from my existing site and 'make it clean' from it's original, new gallery page. I am not sure that is possible.

When clicked from it's original page it just opens - even works in my Safari without blocking it.

djr33
02-23-2010, 03:29 AM
As I said, google window.open() and follow any of the explainations you'd like (just a list of features, really).
It's very easy to make a popup. The problem is that various browsers will do different things, and you may get a script you like, but also be prepared if it isn't "clean" in every browser. For IE and Firefox you can probably get something you like. For the others, it's not so clear. Maybe.