Disable Frontpage automatic height and width for images

S

Sparky Polastri

Well at risk of sound like an advertisment;

There are lots of third party programs that can do what the user wants
without a database.

For example; http://www.ultsoftware.com/ultimage.htm is one I have used. (It
searches directories, makes thumbnails, makes the HTML and links to the
images and provides navigation. All you do is set it up and dump files in
the folders.)

There are tons more.

I assume that the images would need to be outside a FrontPage web for most,
and the user would need some sort of access to the server (probably an admin
account or a user with permissions to the folder tree).

The fact remains though, adding H and W tags to an image is proper HTML.
Don't get freaked out because FrontPage tries to do proper HTML. Find
another tool if you want to do something else. FP is for beginners or
people who don't want to bother with the HTML for the most part and works
great for that purpose.
 
T

Thomas A. Rowe

The reason I suggest a database driven solution was because the user indicate for each thumbnail
there would be 3 additional larger images, unless I missed something, I don't see how a application
that make thumbnail is going to make this process easier in combining/associating the 3 images with
the single thumbnail image.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
G

Guest

Steve Easton said:
Ok, write this down on a sticky and paste it to your monitor.
FrontPage is "NOT" altering my code.!!!!
Before asserting it doesn't happen you might want to try it: Make a page
with an image- delete the height and width tags then publish the page using
Frontpage. Now go look at the HTML of the published page. Tags are back
aren't they?
 
G

Guest

Thomas A. Rowe said:
Question: If the script snip was not the issue or related to the issue with the width and height tags, why did you include it in your post?
Sorry, my mistake, that was confusing. I was trying to be succinct. To
answer your question- It is related.
Here's a bigger code fragment:
<a onclick="photo1.src='smlcastle.jpg'">Small Castle</a>,
<a onclick="photo1.src='medcastle.jpg'">Medium Castle</a>
<a onclick="photo1.src='bigcastle.jpg'">Big Castle</a>
<img name="photo1" src="smlcastle.jpg">
and here's a link to a page that uses the code:
www.livemodelbook.com/other/sample/example.htm

I did not invent the above code, by the way. It follows several principles
of good code design- it is simple, it is easy to understand and maintain, it
is self documenting and it is self contained. And, it works beautifully... if
FP doesn't add width and height elements to the img tag.

In particular, the page opens with one size displayed and will automatically
adjust the size to accommodate any of the other (many) various sized photos.
But it will only do that desired behavior if there is no width and height
explicitly specified. I hope that is a bit clearer.

This will be used occasionally on a web server but it is also going on a CD,
so server based solutions are not practical.

Thank you for all the responses and sorry for my grumpiness.
 
R

Ronx

The attributes are replaced when the page is saved - even before
publishing. See my other post for a workaround.
 
S

Steve Easton

I did try it.
I opened a web, opened a page, switched to code view, deleted the height
and width from an image, saved the page and then previewed in the
browser.
hit View Source and the tags were not there. !!


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

Steve Easton

OK,

I just viewed the page at the link you provided.
I clicked each link and then viewed the source.

There were no height and width tags in any of the pages here's a copy:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<title>Example of Code in Action</title>
</head>
<body>
<table border="0" width="100%" cellspacing="0" cellpadding="2"
id="table1">
<tr><td align="left">
<font color="#0000FF">
<a onclick="photo1.src='smlcastle.jpg'"><u>Small
Castle</u></a>,&nbsp;
<a onclick="photo1.src='medcastle.jpg'"><u>Medium
Castle</u></a>,&nbsp;
<a onclick="photo1.src='bigcastle.jpg'"><u>Big
Castle</u></a></font>
(click to choose a size)
</td></tr>
<tr><td>
<img name="photo1" src="smlcastle.jpg" alt="Catle Photo">
</td></tr>
</table>
<p>
<a href="http://validator.w3.org/check?uri=referer"><img
src="http://www.w3.org/Icons/valid-html401"
alt="Valid HTML 4.01 Transitional" height="31" width="88"></a>
</p>
</body>
</html>

You do need to add a style to the links though, so that the hand cursor
shows when the links are hovered.
Also the page did "not" automatically resize to fit the image, but
stayed at my default 800 by 600 setting.


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


issue with the width and height tags, why did you include it in your
post?
 
T

Thomas A. Rowe

Good reason to stay with using FP2000, where once you have deleted the width and height attributes,
they are not added back unless you delete and then re-insert the image or another one in it's place,

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
G

Guest

Steve Easton said:
There were no height and width tags in any of the pages here's a copy:
Yes, because I circumvented FP by uploading the page as a text file and then
renamed it to .htm with a different tool. It wouldn't have worked as a demo
very well if I let FP mess it up.
You do need to add a style to the links though, so that the hand cursor
shows when the links are hovered.
That's a good idea- thanks!
Also the page did "not" automatically resize to fit the image, but
stayed at my default 800 by 600 setting.
I did not say the page would resize (although I can see how you might read
it that way)- the graphic resizes.
 
G

Guest

Ronx said:
Wrap the swappable image code in a mark-up webbot:
That does the trick beautifully! Thank you, thank you, thank you.
How does it work? Does code between webbot markup tags not get touched by FP?
IMO, the big images should be opened in a new window
Why is that better?
We do not want the user to have to switch to another window and/or close a
separate window to see the next size or next photo. I have seen sites that do
that and it is very tiring.
 
G

Guest

Ronx said:
The attributes are replaced when the page is saved - even before
publishing. See my other post for a workaround.
We noticed them being added at these times:
1) The image was placed
2) The site (or individual files) was uploaded to the server
3) And, the most infuriating- this is why I got so disgusted with MS, when I
visited the directory on the server containing the pages- even though I never
opened any of the files. FP actually went in to files that I did not open and
added the tags. Hence my "paternalistic arrogance" comment about MS of
several posts ago.
 
G

Guest

Steve Easton said:
I opened a web, opened a page, switched to code view, deleted the height
and width from an image, saved the page and then previewed in the
browser. hit View Source and the tags were not there. !!
That was my experience too. But, you missed the part where I wrote "publish
the page using Frontpage."
 
E

E. T. Culling

Again, NOT GoLive. I believe you will find that Dreamweaver is a much finer
product. Why don't you ask your question in the Dreamweaver newsgroup,
something like forums.macromedia.com macromedia.dreamweaver and ask Murray
to address this issue.
Dreamweaver has many third party solutions available for you.
Eleanor
Have you poked around at www.dynamicdrive.com
 
E

E. T. Culling

Nothing is happeneing when I click on those links, and the cursor is not
changing to a hand. Source code:
<table border="0" width="100%" cellspacing="0" cellpadding="2" id="table1">
<tr><td align="left">
<font color="#0000FF">
<a onclick="photo1.src='smlcastle.jpg'"><u>Small Castle</u></a>,&nbsp;
<a onclick="photo1.src='medcastle.jpg'"><u>Medium Castle</u></a>,&nbsp;
<a onclick="photo1.src='bigcastle.jpg'"><u>Big Castle</u></a></font>

(click to choose a size)
 

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