Front page help..

They have: 8 posts

Joined: May 2007

Hello i am using frontpage 2003,
i want to have a feature where if u click on a image, a window comes up ( staying on the same page) with the image and under neath it some details about the product?? how do i do this with javascript.
I am making a review site so i will have lots of images with image descrtpions... please help

i tried using this sript which someone gave me from yahoo answers,Confused Sad Roll eyes

<script>
function CallWindow()
{
S=" Product Details here ";
popwin=window.open("NeWin","",...
popwin.document.open();
popwin.document.write(S);

}
</script>

how do i get the image from my website image folder to this bit ======

???? im stuck!!!!!!!!!

stuck with frontpage..

JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

dsgamez wrote: Hello i am using frontpage 2003,

Yuk, Frontpage is a terrible editor. I won't tell you why because you'll find out for yourself soon enough! Smiling

dsgamez wrote:

I'm not totally sure what you're asking, but this isn't going to work. Just put all your images in a subfolder called 'images' and write image tags like this:
<img src="images/sample.jpg" onclick="CallWindow();" />
There are a few problems with trying to use 'c:\' in your src:

  1. Most hosting is Linux based, which has no concept of 'c:\' etc.
  2. Even if you have Windows hosting, it's doubtful they'll allow you to save things in the root directory of the drive. That would be a security risk. Smiling
  3. It's usually easier to use a relative path (like the example I gave). This just points to the image you want relative to where the HTML file is.

Maybe you're just trying to work stuff out on your local machine? If so, you should use [incode]img[/incode] not [incode]Image[/incode].

Hope this helps. Smiling

dsgamez wrote: USA SPENT MILLIONS DEVELOPING A PEN THAT WOULD WORK IN SPACE THE RUSSAINS JUST USED A PEN!

The Russians used a pencil by the way. Bit of a typo in your signature. Laughing out loud

a Padded Cell our articles site!

They have: 8 posts

Joined: May 2007

hello thanks for the help!

How do i get the image name?

the image is saved in the image folder but when i press right click properties it just gives me the folder name not the image name?

Also when i preview my site in IE 6, it blocks the Google ads and a yellow bar comes up on top of screen saying: to help protect you security Internet explorer has restricted this file from showing active content that could access your computer, when i click and press allow blocked content, the ads show up?!

But i dont have this problem in Mozilla?!

stuck with frontpage..

They have: 8 posts

Joined: May 2007

someone must be able to help a newbie.. Wink

demonhale's picture

He has: 3,278 posts

Joined: May 2005

You need to complete some more details, you right-clicked where? for example? You must actually know where you put your images are. i remembered that off-line on frontpage you just right-click properties the image used an look for the assigned folder. And when uploading them via frontpage then it auto assigns it, but through ftp, you need to edit your image calls to the actual folder... you need your questions to be clearer to get the most help...

They have: 8 posts

Joined: May 2007

demonhale;218854 wrote: You need to complete some more details, you right-clicked where? for example? You must actually know where you put your images are. i remembered that off-line on frontpage you just right-click properties the image used an look for the assigned folder. And when uploading them via frontpage then it auto assigns it, but through ftp, you need to edit your image calls to the actual folder... you need your questions to be clearer to get the most help...

OK here goes nothing..

The image i want to put into the that html script is stored on this folder:

I click on the image folder then this comes up:

So i then right click on the image i want to use:

I copy the name:

Then i add it to the html script ( see my first post for html script) :

I then go to preview in broswer ( multipue browsers both firefox and ie)
but the image dosnt show up:

When i click on this image icon this happens:

stuck with frontpage..

They have: 8 posts

Joined: May 2007

conrad;218827 wrote: You can edit in code window.

Look for something like link

edit what?

demonhale's picture

He has: 3,278 posts

Joined: May 2005

Ahhh. now thats very clear... Have you tried renaming the image file to something shorter without the spaces? it is having troubles on the filenames I suppose... Try shorten the name of the image or use underscores for the spaces and link to it back again and it will most probably show up...

greg's picture

He has: 1,581 posts

Joined: Nov 2005

you would be better renaming the image so it's short and doesnt have spaces in it. spaces usually work but when browsers display images they have to put %20 for each space, and you can easily run into trouble with this (and it also looks awful with %20 everywhere IMHO)

but the main reason why it wont work is you dont have the " (quotes to seperate the image name and address from the code)
if you put the quotes in and leave the filename as is, with spaces, it should work.
but it's a good habit to get into making file names, page names, image names etc simple and logical, no capital letters, no spaces etc

YOUR IMAGE CODE

CORRECTED WOULD BE:

AND EVEN BETTER WOULD BE SOMETHING LIKE:

(hpgf is obviously Harry Potter Goblet Fire)

I dont really know Javascript, but i imagine your onClick=CallWindow() would also need quotes, eg...
onClick="CallWindow()"
I could be wrong on the javascript tip though, I avoid javascript like the plague

good luck

They have: 8 posts

Joined: May 2007

ok tryed that the image shows up but the popup dosnt, my popup blocker is off..

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.