pop up windows

They have: 93 posts

Joined: Dec 2001

Does anyone know a javascript that would allow me to have thumbnails on a page but on mouseover opens a new window that has the bigger image in it & closes on mouseout ??

Thanks in advance

Mika

The Webmistress's picture

She has: 5,586 posts

Joined: Feb 2001

This is one I use (I actually use it as an extension on Dreamweaver)

To go in head part

<script language="JavaScript">
'+alt+'');
newWindow.document.write('+alt+');
newWindow.document.write('');
newWindow.document.close();
newWindow.focus();
}
//-->
</script>

This is the actual part for the thumbnail image

Julia - if life was meant to be easy Michael Angelo would have painted the floor....

They have: 93 posts

Joined: Dec 2001

Thanks,

Being new to all this Laughing out loud WHat are the benefits of using it as a Dreamweaver extension & how do you do that ??

Thanks

Mika

Busy's picture

He has: 6,151 posts

Joined: May 2001

Just be careful using onmouseover and mouseout for displaying images in pop ups, especially if they are bigish in file size, people hate to wait but if they do have to wait perfer to do something while they wait, so a pop up (which has to be closed manualy) could benifit you/your readers better

They have: 93 posts

Joined: Dec 2001

Is it possible to put in any kind of preloader for the images that will appear in pop-ups ??

Mika

The Webmistress's picture

She has: 5,586 posts

Joined: Feb 2001

Quote: Originally posted by yabber
Thanks,

Being new to all this Laughing out loud WHat are the benefits of using it as a Dreamweaver extension & how do you do that ??

If you use Dreamweaver to build your sites then extensions are easier ways of doing things like this as you just click a button and enter information rather than having to input all the code manually.

Julia - if life was meant to be easy Michael Angelo would have painted the floor....

detox's picture

They have: 571 posts

Joined: Feb 2001

just concerning wanting to close whilst on mouseover. Have you ever looked at where your cursor goes when you are waiting for a window to load?

Mine goes all over the place....

thereby negating the effect you want.

by just returning to the active page (the one with the thumbnail) you would cut out the window.

best to give them the chance to close the window themselves.

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.