navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Making A Popup Window

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Microsoft FrontPage Help >> Making A Popup Window
Page: [1]
 
Bruce2000

 

Posts: 147
From: Huntsville AL USA
Status: offline

 
Making A Popup Window - 5/10/2003 15:16:32   
Is it possible to creat a pop up where you can have several links on your main page all leading to that same popup but changing the image.

On my pop up page there is no text only 1 image (pop up window is the exact same size as this image). There are several links I want to make from the main page that will put a different image (same size) into this same pop up window in the same location. The code to invoke my popup is onmouseover=" window.open(' url goes here' etc etc) but i want several links to point to that same window - how do I do that. Each time I use that code in a link it is going to open a new window but I want to change the image within that pop up window.

Here is my page:
[link=] http://www.bruceleibowitz.net/planespotting_4engine.htm [/link]

As you can see, those images of the plane: I want to open those in a little popup and have all those links that lead to the changed image to do that but in the popup.
abbeyvet

 

Posts: 5095
From: Kilkenny Ireland
Status: offline

 
RE: Making A Popup Window - 5/10/2003 16:55:30   
Yes, you can do that.

All you need to do is add a ' target' to your <a> tag. You can call the target anything you like, let' s call it " monkey" .

So you would have:

<a href=" etc etc" other stuff target=monkey>

Basically what happens then is that when the user clicks the first link the browser says:

" Ah, they want me to open this link in a window called " monkey" . But there is no existing window called " monkey" ! No problem, I' ll just make one"

If the user closes the window, this is repeated each time a link is clicked. however if the user does NOT close the window, then clicks another link containing target=" monkey" , the browser says:

" OK! Another link for that window " monkey" , there is already a window open called that name, so I will open the link in that window"


There is just one thing you need to be aware of here - if the user clicks a second link, it may open in the same (monkey) window, but if this window is under the main window at the time, the user may be blissfuly unaware that the content in the popup has changed, and instead assume that the link did not work.

If you are literally opening images in the pop up there is little you can do about this. If you are on the other hand opening actual web pages containing an image you can put this into the <body> tag of the page that will open in the popup:

ONLOAD=" focus()"

That will bring the popup window to the top when a new page is loaded into it.

< Message edited by abbeyvet -- 5/10/2003 4:57 PM >


_____________________________

Katherine

:: InKK Design :: InKK Domains

(in reply to Bruce2000)
Bruce2000

 

Posts: 147
From: Huntsville AL USA
Status: offline

 
RE: Making A Popup Window - 5/11/2003 1:39:16   
ok, here is what it looks like:
[link=] http://www.bruceleibowitz.net/planespotting_4engine.htm[/link]

The first two links on the page will open up the new window. Is there a way to specify " always on top" for the new popup window?

Also, is there a way to simply open an image not a whole page in a new window?

< Message edited by Bruce2000 -- 5/11/2003 2:32 AM >

(in reply to Bruce2000)
abbeyvet

 

Posts: 5095
From: Kilkenny Ireland
Status: offline

 
RE: Making A Popup Window - 5/11/2003 5:24:29   
I am not terribly clear from looking at the page precisely what it is you want to do. Is it this?

You want images to open in a popup. Then you want for people to be able to mouse over links on your page and thus alter the image in the pop up, th same popup as originally opened.

To this end you want the popup always on top.

Right?

A number of things if so.

1. I do not know of a way to force a window containing just an image to be always on top. That' s not to say there is none, but I don' t know of one.

If it is a page the onload event in the body tag will bring it back to the front each time a new page is loaded, thats the nearest I know of.


2. Are you sure this is a good idea anyway? It seems like a bit of a potential usability nightmare.

Bear in mind that you do not control anyones screen size, window size or screen resolution. When the popup opens, were it forced to be always on top, it will obscure sections of the main window, making it difficult or even impossible to read, let alone mouseover or click subsequent links.

Not everyone will know that they can move the popup window about out of their way. Even those who do will find it a bit of a nuisance.

Also forcing it to be on top coupld be a real pain for a lot of people who have multiple windows open and are flicking between them - as I almost invariably do.

_____________________________

Katherine

:: InKK Design :: InKK Domains

(in reply to Bruce2000)
Bruce2000

 

Posts: 147
From: Huntsville AL USA
Status: offline

 
RE: Making A Popup Window - 5/11/2003 14:13:11   
yes, you described what I was thinking of doing. The reason I thought of that was on some of those plane pages they are quite long (vertically) causing a lot of scrolling even to see two images of the planes with the mouseovers & be able to compare them. The images are 600x200 so I cant fit two side by side, and if I make them smaller (like 300px) then some of the details to which the mouseovers refer will be tiny or lost.

take a look at this page and you' ll see what i mean:
[link=] http://www.bruceleibowitz.net/planespotting_2enginewing.htm [/link]

can you think of a better way to lay out a page like this? I spent so long on the mouseover part and getting that just right but I' m not too thrilled with the layout. I thought that is I remove the images to a new window then a viewer would be able to see & compare both onscreen without scrolling. maybe there is a better way?

(in reply to Bruce2000)
obidarrell

 

Posts: 1
Joined: 7/15/2004
Status: offline

 
RE: Making A Popup Window - 7/15/2004 13:28:09   
Is there a way of clicking on ONE link and having it open TWO popups (with two different URLS) ??

Thanks

(in reply to abbeyvet)
dankos

 

Posts: 412
Joined: 1/10/2004
From: New York City
Status: offline

 
RE: Making A Popup Window - 7/15/2004 15:31:04   
quote:

The first two links on the page will open up the new window. Is there a way to specify " always on top" for the new popup window?

Are you implying that the window would go to the foreground and be maintained in front of all other windows? To experienced software designers this would be considered a hostile and unethical tactic, sufficient to put a program on a corporate blacklist. I would avoid this unless lives depended on it.

(in reply to Bruce2000)
Page:   [1]

All Forums >> Web Development >> Microsoft FrontPage Help >> Making A Popup Window
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts