FP2003 & Javascript - need help

B

Beverly-Texas

Hello,

Can someone familiar with Javascript review this page ( www.c o u n t r y
appledesigns.com/layouts.htm) - without the spaces - and tell me why every
"Large Image" link opens up the same window - instead of the window listed in
the Javascript code for that image? I wanted the script to open a larger
image of the image shown. I'm not sure what the problem is.

Also, I want the window to open in a size large enough to show the whole
(500x500) image but I have to resize it every time. Can someone tell me how
to do this also?

Thank you!
Beverly
 
S

Steve Easton

Because the script is defaulting the "last" instance of the function
my_win() in the page.

To do it the way you have it set up, you need a separately named function
for each page your want to open.

example:
function my_win8lg() for layout8lg.htm
function my_win9lg() for layout9lg.htm
and so on and then call each function:
<a href="javascript:my_win81g()">
<a href="javascript:my_win91g()">

However, the correct way to do it is to reuse the same function for all of
the links and pass the different page names to the function.

Or, go to www.jimcosoftware.com and download the free Spawn and let it build
your links and windows.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 

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

Top