---> Pop up window that loads a url

They have: 45 posts

Joined: Aug 2000

Ok, I am trying to write this like:

Open Window

I dont want to have to define a new function for each new window, because I have about 500 links (a perlscript handles it Smiling

Help!

Laguna Loire
Site Director: Laguna's Jukebox (http://jukebox.3dstream.net)
Site Admin: RPGBoards (http://rpgboards.3dstream.net)

They have: 45 posts

Joined: Aug 2000

oh, I got it to pop up correctly, now is there a way to let the url's have = signs in them?
here is the code:

<A HREF="" onClick="window.open('player.pl?midi=mid.mid&game=ff7', 'newWnd',
  'width=500,height=400,menubar=yes,location=yes,scrollbars=yes');
  return false;">open midi</A>
'

Laguna Loire
Site Director: Laguna's Jukebox (http://jukebox.3dstream.net)
Site Admin: RPGBoards (http://rpgboards.3dstream.net)

Ken Elliott's picture

They have: 358 posts

Joined: Jun 1999

Well someone recently answered this question for me. I can't remember their name off hand to give the proper credit. But it is in one of the posts.

In the head section of the page, put this code

<script language="javascript">

function link(url) {
window.open(url,"msg","height=400,width=550,left=50,top=50,scrollbars=no,resizable=no,status=no");
}

</script>

you can edit it as you see fit of course.

Then for each link that you want to open in that kinda window just make a link like this.

VulKen
IRS motto: We got what it takes, to take what you got

Pimpin like a pimp with an electrofied pimpin machine!

AndyB's picture

They have: 344 posts

Joined: Aug 1999

it was me ... and you forgot so soon:(

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.