Front page help..
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,
<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 posted this at 19:41 — 2nd May 2007.
He has: 3,956 posts
Joined: Jun 2002
Yuk, Frontpage is a terrible editor. I won't tell you why because you'll find out for yourself soon enough!
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:
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.
The Russians used a pencil by the way. Bit of a typo in your signature.
a Padded Cell our articles site!
dsgamez posted this at 21:46 — 2nd May 2007.
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..
dsgamez posted this at 16:31 — 5th May 2007.
They have: 8 posts
Joined: May 2007
someone must be able to help a newbie..
demonhale posted this at 11:10 — 6th May 2007.
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...
dsgamez posted this at 17:13 — 6th May 2007.
They have: 8 posts
Joined: May 2007
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..
dsgamez posted this at 15:55 — 6th May 2007.
They have: 8 posts
Joined: May 2007
edit what?
demonhale posted this at 06:48 — 7th May 2007.
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 posted this at 18:45 — 7th May 2007.
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
HarryPotterGobletFire)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
dsgamez posted this at 22:51 — 13th May 2007.
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.