Open page in new window

This is a discussion on "Open page in new window" within the Web Page Design section. This forum, and the thread "Open page in new window are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 11th, 2005, 18:23
Reputable Member
Join Date: Oct 2004
Location: Mobile, AL USA
Age: 46
Posts: 228
Thanks: 0
Thanked 0 Times in 0 Posts
Open page in new window

I've looked everywhere for a code/script for this--but can't seem to find one. What I'm trying to do is use a thumbnail of an image that people can click on and get the full size image in a new window.

Do I have to put the full size image on another page and upload it, or can the code or script link to the actual image in the directory and load it onto a separate page?

I sound like an idiot, I know. But I've never needed or wanted to do this before.

Thanks.

  #2 (permalink)  
Old Feb 11th, 2005, 19:35
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
If you just want the full size image in a new window, then you can do this very easily...
target="_blank" tells your browser to open the link a new window.

If however you want to have content along with that image then things get a lot more complicated. Also remember that you'll need both the full size image and a smaller thumbnail image.
  #3 (permalink)  
Old Feb 12th, 2005, 13:52
Reputable Member
Join Date: Oct 2004
Location: Mobile, AL USA
Age: 46
Posts: 228
Thanks: 0
Thanked 0 Times in 0 Posts
What do you mean I'll 'need' both the full-size image and the thumbnail? Thanks for your help, Sirkent.
  #4 (permalink)  
Old Feb 12th, 2005, 17:13
Reputable Member
Join Date: Oct 2004
Location: Mobile, AL USA
Age: 46
Posts: 228
Thanks: 0
Thanked 0 Times in 0 Posts
I tried that code but it just opens up the full size image in the same spot in the table cell as the thumbnail. I'm sure I'm doing something way wrong, but not sure what! lol
  #5 (permalink)  
Old Feb 12th, 2005, 18:44
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
sorry, it completely screwed my code up
You need a normal link, but with target="_blank" in it too....
  #6 (permalink)  
Old Feb 12th, 2005, 23:06
Reputable Member
Join Date: Oct 2004
Location: Mobile, AL USA
Age: 46
Posts: 228
Thanks: 0
Thanked 0 Times in 0 Posts
I know I'm a frustrating newbie, but I'm not sure what you mean. do you mean the target="_blank" goes at the end of the image url?
  #7 (permalink)  
Old Feb 13th, 2005, 07:19
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Ok, create a normal link around the thumbnail image to go to the full sized image.
Obviously you have:
You need it to include target="_blank" like (he prays) this!:
[img]image_thumbnail.jpg[/img]
Finally, It'll display that properly, lol...
  #8 (permalink)  
Old Feb 13th, 2005, 08:00
benbacardi's Avatar
Highly Reputable Member
Join Date: Feb 2004
Location: United Kingdom
Age: 20
Posts: 611
Thanks: 0
Thanked 0 Times in 0 Posts
or you could write some javascript to grab the name of the image from a query string on the end of the url and then you can position it anywhere you want with whatever content you want...
  #9 (permalink)  
Old Feb 13th, 2005, 13:35
Reputable Member
Join Date: Oct 2004
Location: Mobile, AL USA
Age: 46
Posts: 228
Thanks: 0
Thanked 0 Times in 0 Posts
Sirkent, I'll try that.

Benbacardi, I have no 'real' understanding of javascript, unfortunately. I probably should learn though, huh?
  #10 (permalink)  
Old Feb 13th, 2005, 18:02
benbacardi's Avatar
Highly Reputable Member
Join Date: Feb 2004
Location: United Kingdom
Age: 20
Posts: 611
Thanks: 0
Thanked 0 Times in 0 Posts
it's fairly simple - i know hardly any javascript...

if you would like to know more, just ask!
  #11 (permalink)  
Old Feb 14th, 2005, 10:28
Reputable Member
Join Date: Oct 2004
Location: Mobile, AL USA
Age: 46
Posts: 228
Thanks: 0
Thanked 0 Times in 0 Posts
Sirkent----It worked like a dream! Yaaay! say, is it possible that the same script could be used to open another page in a new window, or is that a different script entirely?

Benbacardi----I definitely want to learn javascript.
  #12 (permalink)  
Old Feb 14th, 2005, 10:46
Reputable Member
Join Date: Sep 2004
Posts: 144
Thanks: 0
Thanked 0 Times in 0 Posts
Well if you start popping too many windows your users will get frustrated. Users don't like pop-ups very much at all (according to my professor). He said it's best to avoid pop-ups unless they are done "correctly". Which usually means that they are JavaScripted to open up in the exact size of the content that you will be displaying on that window and no more.

One good way to know if your pop-ups are a bother is if you go back and use your site and click every link that makes a pop-up, decide if it bothers you. If not then you might be ok.
  #13 (permalink)  
Old Feb 14th, 2005, 10:52
Reputable Member
Join Date: Oct 2004
Location: Mobile, AL USA
Age: 46
Posts: 228
Thanks: 0
Thanked 0 Times in 0 Posts
oh no... I don't want a bunch of popups---I hate those things. I'm talking about, like with viewing the image when clicking on a thumbnail, of having a link open in a new window when it would make sense. An example would be like those links you see on some sites that says "what's this?" and when you click on it a small window would pop up explaining what 'this' is. Make sense? But no, I don't want a bunch of windows popping up automatically---I don't want any to pop up automatically. But I have a section of my site that's an image map and the links on the map open into a new window so the user can just click out of that window to get back to the image map. Make sense?

Automatic popup windows are a good way to get me to never come back to someone's site, so I sure don't want that! lol
  #14 (permalink)  
Old Feb 14th, 2005, 13:00
benbacardi's Avatar
Highly Reputable Member
Join Date: Feb 2004
Location: United Kingdom
Age: 20
Posts: 611
Thanks: 0
Thanked 0 Times in 0 Posts
go to http://myweb.tiscali.co.uk/cardy/dd and click on portfolio - if you select a category, when you click on an image within the category, it will give you an example of what i meant earlier.... of what i wrote in javascript to get it working.
  #15 (permalink)  
Old Feb 14th, 2005, 13:07
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
You can use target="_blank" in any <a> tag to open the link in a new window...
  #16 (permalink)  
Old Feb 14th, 2005, 13:27
Reputable Member
Join Date: Oct 2004
Location: Mobile, AL USA
Age: 46
Posts: 228
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks to the both of you! That helps bit time.
  #17 (permalink)  
Old Feb 14th, 2005, 13:29
Reputable Member
Join Date: Oct 2004
Location: Mobile, AL USA
Age: 46
Posts: 228
Thanks: 0
Thanked 0 Times in 0 Posts
<blockquote id="quote" class="ffs">quote:<hr height="1" noshade="noshade" id="quote" />Originally posted by benbacardi
go to http://myweb.tiscali.co.uk/cardy/dd and click on portfolio - <hr height="1" noshade="noshade" id="quote" /></blockquote id="quote">

Wow.. that's cool!
  #18 (permalink)  
Old Feb 14th, 2005, 17:52
benbacardi's Avatar
Highly Reputable Member
Join Date: Feb 2004
Location: United Kingdom
Age: 20
Posts: 611
Thanks: 0
Thanked 0 Times in 0 Posts
thanks - its actually really simple - see if you can work it out from the code - i give you my permission 2 use it!
  #19 (permalink)  
Old Feb 14th, 2005, 18:00
Reputable Member
Join Date: Oct 2004
Location: Mobile, AL USA
Age: 46
Posts: 228
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks.
  #20 (permalink)  
Old Feb 15th, 2005, 01:26
Reputable Member
Join Date: Sep 2004
Posts: 144
Thanks: 0
Thanked 0 Times in 0 Posts
Ok, well I understand you now autumn.

Also, any clue as to how to do this pop-up? Here is the example. http://eng.pristontale.com/UserMadan...ex=2&num=98493

just click on an image and you will see what I mean.
Closed Thread

Tags
open, page, window

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Open another new window from javascript window thehermitage JavaScript Forum 10 Jan 27th, 2008 19:42
Change open in new window to open in same window nsr500rossi JavaScript Forum 2 Jan 18th, 2008 14:13
[SOLVED] open new window from main window AdRock Other Programming Languages 1 Nov 1st, 2007 02:45
Open a new window pokerskatershark JavaScript Forum 4 Mar 17th, 2006 19:25
Open Browser Window Galaxyblue Web Page Design 11 Feb 14th, 2004 18:37


All times are GMT. The time now is 10:23.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43