Simple Pop Up Window?

Ken Elliott's picture

They have: 358 posts

Joined: Jun 1999

I'm an idiot...I forgot how to make one. I need it to appear when clicked on a link..I am not sure whether it was in the body or what. Like I said...I'm an idiot sometimes. Could someone give me a little help?

I need it to not have the address bar or the other dohicky bar on the top. Minus well give me the code so I can do the rest like sizing and stuff. If you know a tutorial page..that would be great...thanx

VulKen
I know it smells in here. Because I'm the ****

Pimpin like a pimp with an electrofied pimpin machine!

AndyB's picture

They have: 344 posts

Joined: Aug 1999

For example, clicking the thumbnail image to open a new window and show the big picture in a particular size window

Popup Image Viewer
<script language="Javascript">
Community Image - click to close<\/title><\/head>'
+''

+'click image to close window'

+'<\/center><\/a><\/body><\/html>');

preview.document.close();
}
// -->
</script>

Click to view full image

Ken Elliott's picture

They have: 358 posts

Joined: Jun 1999

Is this for real? Do I have to declare all of the javascript? Because my plans were to have each of the people in my list to have a (small)webpage. When some clicks on their name it opens a new window, with no toolbar, not resizable, and loads an html document in it. Is there no easy way to accomplish this? Maybe just simple script in the anchor tag?

Example:

SOME LINK

If that is the only way to accomplish a popup..I'm outta luck.

Thanks for your help.
VulKen
Real Men Code By Hand

Pimpin like a pimp with an electrofied pimpin machine!

AndyB's picture

They have: 344 posts

Joined: Aug 1999

how about one function (follows) that works for all named html files. Put this in the HEAD section

script language="javascript">

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

</script>

and then call it using something like

Bob's page

Ken Elliott's picture

They have: 358 posts

Joined: Jun 1999

Thanks for all your help AndyB. But one more question..would I have to repeat this code for each link on my page? or would I make use of the same function, and just change the url in the anchor tag? All of the pages will have the same demensions...so it would be kewl if it worked that way. Let me know...

Thanks Again.
VulKen

Pimpin like a pimp with an electrofied pimpin machine!

AndyB's picture

They have: 344 posts

Joined: Aug 1999

One function in the HEAD - just modify the window size to suit yourself, and then one link for each person which passes the page name to the function.

Bob's page
Jim's page
Sue's page

not much to type for each person:)

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.