Img tag, stopping the height and width properties from reappearing

A

Abstract

How do I stop the height and width properties from reappearing after I delete
them, save the page and reopen it. I have the Preserve existing HTML option
set under Page Options, but those properties continue to appear. Any
suggestions?
 
T

Thomas A. Rowe

Which version of FP, as I don't have a problem in FP2000.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
M

Murray

Actually, leaving off the dimensions of the image is a very bad idea (except
in a few specific instances), because you then force the browser to take the
time to determine this, and then once it has, to adjust the rendering to
accommodate the image. This can cause unnecessary delays as well as page
shifting.
 
T

Thomas A. Rowe

Agreed!

I only remove the height value when using a database driven application where I have to control the
width of the image, but not care about the height.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
S

Steve Easton

Why do you want to do this??
How is the browser supposed to know how much space to "reserve" in the page so it can
properly display the image after it loads??


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

Abstract

I'm using FP 2002. I switch images in and out of the website regularly and
having to go in and edit height and width properties all the time is an extra
hassle. I'm not to worried about the load time since the site visitors are
mostly on high speed connections. That and I optimize the graphics and pics
myself for faster loading. I mostly want to reduce the 'behind the scene'
work.
 
T

Trevor L.

This may be a sledgehammer to crack a nut and also not recommended but you
could try this

<html>
<head>
<script type="text/javascript">
function GetImg()
{document.getElementById('Image').innerHTML =
'<img src="name" alt="">'} //------------Alter name to the name of the
image
</script>
</head>

<body onload="GetImg()">
<span id="Image">Image here</span>
</body>
</html>

You will have to edit the HTML but FP will not know there is an image and so
won't add the parameters.

This can be altered (as I have) to present a series of images, using arrays
in javascript.
--
Cheers,
Trevor L.
Website: http://tandcl.homemail.com.au


I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html
 

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