Thumbnails in FrontPage using Javascript - Not working :_(

A

Alex Wolff

Hello,

I want to display a thumbnail (imagetn.jpg) and when user clicks..a new
window opens displaying the large image (imagelg.jpg).

I am using the following javascript and link to get this to happen...but
when I click on the image a new window pops up but gives me the error "The
Page Cannot Be Displayed". The thumbnail displays fine but the larger image
in the new window does not. My 2 image files are definately there in the
same directory as all my html.

<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime;
myWin = window.open(URL, "PicWin",
"toolbar=0,scrollbar=0,location=0,statusbar=0,menubar=0,resizable=0,width=470,height=356=left=192=top=144");
}
// End -->
</script>


<A HREF="javascript:popUp('imagelg.jpg')"><img border="0" src="imagetn.jpg"
xthumbnail-orig-image="imagelg.jpg" width="160" height="120"></a></p>
 
J

Jens Peter Karlsen[FP MVP]

Why have:
day = new Date();
id = day.getTime;
when you are not using it?
Correct:
"toolbar=0,scrollbar=0,location=0,statusbar=0,menubar=0,resizable=0,widt
h=470,height=356=left=192=top=144");
To:
"toolbar=0,scrollbar=0,location=0,statusbar=0,menubar=0,resizable=0,widt
h=470,height=356,left=192,top=144");

Also notice that with WinXP SP2 you are not allowed to omit menubar and
statusbar.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
-----Original Message-----
From: Alex Wolff [mailto:[email protected]]
Posted At: 28. november 2004 03:59
Posted To: microsoft.public.frontpage.programming
Conversation: Thumbnails in FrontPage using Javascript - Not
working :_(
Subject: Thumbnails in FrontPage using Javascript - Not working :_(


Hello,

I want to display a thumbnail (imagetn.jpg) and when user
clicks..a new window opens displaying the large image (imagelg.jpg).

I am using the following javascript and link to get this to
happen...but when I click on the image a new window pops up
but gives me the error "The Page Cannot Be Displayed". The
thumbnail displays fine but the larger image in the new
window does not. My 2 image files are definately there in
the same directory as all my html.

<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime;
myWin = window.open(URL, "PicWin",
"toolbar=0,scrollbar=0,location=0,statusbar=0,menubar=0,resiza
ble=0,width=470,height=356=left=192=top=144");
}
// End -->
</script>


<A HREF="javascript:popUp('imagelg.jpg')"><img border="0"
src="imagetn.jpg"
xthumbnail-orig-image="imagelg.jpg" width="160" height="120"></a></p>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

IE7 window.open and resizeby problem 2
Inserting a pop up is messing up my linkbar. 1
Javascript 0
Javascript 1
Pop-up Question 0
window.open - Javascript question 14
pop-up window for image link 2
pop-up 2

Top