Creating popups

  • Smilingwolf
  • Novice
  • Novice
  • User avatar
  • Posts: 31

Post 3+ Months Ago

Looking for some expert advice. I am running a coppermine web gallery. I want to make a small popup window appear when they click the link to the web gallery. Would this be a Javascript? Thanks in advance.

SW
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

add target="_blank"
to your links. That should do it.
  • musik
  • Legend
  • Super Moderator
  • User avatar
  • Posts: 6893
  • Loc: up a tree

Post 3+ Months Ago

Smilingwolf wrote:
Looking for some expert advice. I am running a coppermine web gallery. I want to make a small popup window appear when they click the link to the web gallery. Would this be a Javascript? Thanks in advance.

SW



URL: http://www.google.com
KEYWORD: javascript popup script

A FEW RESULTS:

http://javascript.internet.com/generato ... indow.html

http://www.crays.com/jsc/jsPImg.htm#popimg


:wink:
  • novasoft
  • Born
  • Born
  • novasoft
  • Posts: 2

Post 3+ Months Ago

<!--
var win=null;
function NewWindow(mypage,myname,w,h,pos,infocus){
if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20}
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";win=window.open(mypage,myname,settings);
win.focus();}
// -->


Save this file as say popup.js and then call this function from your main page

Cheers,
Nova
http://www.novasoft-inc.com
  • Vladdrac
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 2136
  • Loc: Louisville, Ky

Post 3+ Months Ago

yeah that js is about what I use for a flash pop up I have. I like it cause you can take all the browser elements out except for the title bar, resize it, and pick the location where it will pop up. At least it works on IE anyway.

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 44 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.