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.
|
|
|
|
|
![]() |
||
Open page in new window
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
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. |
|
|
|
|||
|
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. |
|
|||
|
What do you mean I'll 'need' both the full-size image and the thumbnail? Thanks for your help, Sirkent.
|
|
|||
|
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
|
|
|||
|
sorry, it completely screwed my code up
You need a normal link, but with target="_blank" in it too.... |
|
|||
|
I know I'm a frustrating newbie, but I'm not sure what you mean.
|
|
|||
|
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... |
|
|||
|
Sirkent, I'll try that.
Benbacardi, I have no 'real' understanding of javascript, unfortunately. I probably should learn though, huh? |
|
||||
|
it's fairly simple - i know hardly any javascript...
if you would like to know more, just ask! |
|
|||
|
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. |
|
|||
|
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. |
|
|||
|
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 |
|
||||
|
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.
|
|
|||
|
You can use target="_blank" in any <a> tag to open the link in a new window...
|
|
|||
|
Thanks to the both of you! That helps bit time.
|
|
|||
|
<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! |
|
||||
|
thanks - its actually really simple - see if you can work it out from the code - i give you my permission 2 use it!
|
|
|||
|
Thanks.
|
|
|||
|
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. |
![]() |
| Tags |
| open, page, window |
| Thread Tools | |
|
|
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 |