Peter Goldfield said:
Thanks very much Jim - it all looks a bit stinky!
1.When you say "add this code where you want the picture to appear" - I'm
used to clicking on a page and clicking "insert picture" - how does one know
where "want" is?
1. Type xxx where you want the picture to appear.
2. Select the xxx you just typed.
3. Click the HTML tab (or, in FP2003, the Code tab)
at the bottom of the editing window.
4. The xxx will also be highlighted in HTML (or Code) view.
Replace it with:
<script>
document.write('<img src="' + getqsvar("pic") + '">');
2. can I modify the URL in the "hyperlink properties" or do I have to find
it in HTML?
Yes, you can do it in Hyperlink Properties.
1. Right-click the picture or text you want to hyperlink,
and choose Hyperlink from the shortcut menu.
2. Make sure myformspage.htm (or whatever) appears in the Address box.
3. Click the Parameters button, then the Add button.
4. In the Name field, type: pic
5. In the Value field, type: pethippo.jpg (or whatever).
6. Click OK, OK, OK.
3. Just realised my pictures will be a bit big! Can I add bit to scale them
(and resample) to say 25% (still dreaming of a button!)
This one is tougher. If you have a copy of Microsoft Office FrontPage
2003 Inside Out or Web Database Development Step by Step .NET Edition,
and if your host supports the .NET Framework, then the book's CD
contains an ASP.NET page named picsizer.aspx that does what you want.
Basically, you code an <img> tag like this:
<img src="picsizer.aspx?url=../images/clown.jpg&size=75">
and the Web server will always send a version of the picture whose
longest side is 75 pixels. You can see this page in action at:
http://www.interlacken.com/fp11extras/picsizer/default.htm
or at
http://www.interlacken.com/fp11extras/piclib/default.aspx
This second link works like a photo gallery, but it gets the list of
pictures to display in real-time, by reading the contents of a folder
on the Web server. The picsizer.aspx page generates the thumbnails on
the fly.
Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------