View Full Version : Pop-Up Window
photobanks
Jul-06-2007, 01:58 AM
Hello,
In selected galleries I would like to be able to put a link in the gallery description, once click the link would open up a new browser window at a specific size to show a small amount of instruction (I do not want a full screen window to open).
How do I go about doing this??
Many thanks in advance.
Michael
:scratch
oxy8384
Jul-06-2007, 07:08 AM
There's a good tutorial, here (http://www.pageresource.com/jscript/jwinopen.htm). Two cautions:
1) Most people hate popups and many have them blocked. What do you expect to happen if and when your popup is blocked?
2) The window.open function requires a link to the 'stuff' you want to appear in your window. You will probably need to poke around in these forums to learn how to create an HTML-only Smugmug page (for your instructions) and link to it. Unless you have your own private domain, in which case you can create the page there, and link to it in your gallery.
If you have any trouble, post back and we can help you tweak it.
Bill
photobanks
Jul-06-2007, 07:21 AM
There's a good tutorial, here (http://www.pageresource.com/jscript/jwinopen.htm). Two cautions:
1) Most people hate popups and many have them blocked. What do you expect to happen if and when your popup is blocked?
2) The window.open function requires a link to the 'stuff' you want to appear in your window. You will probably need to poke around in these forums to learn how to create an HTML-only Smugmug page (for your instructions) and link to it. Unless you have your own private domain, in which case you can create the page there, and link to it in your gallery.
If you have any trouble, post back and we can help you tweak it.
Bill
Bill,
I have tried using that script, but my button does not show. What am I doing wrong... It's in this gallery http://www.photographywithpassion.co.uk/gallery/3093556/1/169053033
Thanks,
Michael
oxy8384
Jul-06-2007, 07:35 AM
Michael,
When I view that page and then look at the page source, I don't see a call to window.open, except the ones generated by Smugmug.
Where did you put it?
Bill
photobanks
Jul-06-2007, 07:48 AM
Michael,
When I view that page and then look at the page source, I don't see a call to window.open, except the ones generated by Smugmug.
Where did you put it?
Bill
Its in the gallery description.
I have used this code.....
<FORM>
<INPUT type="button" value="How to order pictures" onClick="window.open('http://www.photobanks.biz/ordering.html','mywindow','width=400,height=400,to olbar=no,
location=no,directories=no,status=no,menubar=no,sc rollbars=yes,copyhistory=no,
resizable=yes')">
</FORM>
Allen
Jul-06-2007, 07:55 AM
Its in the gallery description.
I have used this code.....
<FORM>
<INPUT type="button" value="How to order pictures" onClick="window.open('http://www.photobanks.biz/ordering.html','mywindow','width=400,height=400,to olbar=no,
location=no,directories=no,status=no,menubar=no,sc rollbars=yes,copyhistory=no,
resizable=yes')">
</FORM>
Did you surround the code with html tags?
<html>
code
</html>
oxy8384
Jul-06-2007, 08:00 AM
I was about to mention that, too. I also did a quick test on one of my galleries and it doesn't seem to like linking to pages on a different server, so you may be forced to create your instructions page on Smugmug...
Bill
photobanks
Jul-06-2007, 08:06 AM
Ahhh... forgot about that. It now shows but nothing happens when I click it... I have my pop-up blocker turned off!!
Any ideas??
Michael
oxy8384
Jul-06-2007, 08:26 AM
Ahhh... forgot about that. It now shows but nothing happens when I click it... I have my pop-up blocker turned off!!
Any ideas??
Michael
...just to prove everything works. If it does, then it seems SM won't let you link to a page on another server and you'll need to create your instructions as a SM page...
Bill
photobanks
Jul-06-2007, 11:37 AM
...just to prove everything works. If it does, then it seems SM won't let you link to a page on another server and you'll need to create your instructions as a SM page...
Bill
Changed it to one of my SmugMug albums, and it still does not work.
Any geniuses out there who can tell me why???
Thanks,
Michael
oxy8384
Jul-06-2007, 11:50 AM
Changed it to one of my SmugMug albums, and it still does not work.
Any geniuses out there who can tell me why???
Thanks,
Michael
between 'toolbar=no,' and 'location=no'. Make sure there are no spaces between the opening and closing double quotes (").
For now, to keep it very simple, you might want to remove everything past the width and height and then add stuff back in after the basics are working...
Bill
photobanks
Jul-08-2007, 02:28 AM
between 'toolbar=no,' and 'location=no'. Make sure there are no spaces between the opening and closing double quotes (").
For now, to keep it very simple, you might want to remove everything past the width and height and then add stuff back in after the basics are working...
Bill
Thanks Bill, I had a spce in it after location, have taken this out and works fine now.
Much appreciated.
Michael
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.