Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error on page warning icon appearing in browser

Status
Not open for further replies.

Primo

IS-IT--Management
Joined
Sep 4, 2002
Messages
3
Location
US
My pages function fine, but the warning icon in the lower left corner appears on every page and says "Error on page." When I select Check target browser and choose IE 5, the following error appears stating the marginheight and width are not supported: "Error The marginheight attribute of the Body tag is not supported." Microsoft Internet Explorer 5.0

This is the code surrounding that topic:

line 13 <body bgcolor=&quot;#FFFFFF&quot; text=&quot;#000000&quot; link=&quot;#3300CC&quot; vlink=&quot;#FF3366&quot; alink=&quot;#9900FF&quot; leftmargin=&quot;0&quot; topmargin=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; onLoad=&quot;MM_preloadImages('Assets/Vera.jpg')&quot;>

What should the marginwidth and height be set at?
 
Hello primo!

The error icon appears basicly on JavaScript errors not on HTML errors. And marginheight is HTML stuff so it cannot cause the error.

As I see only onLoad=&quot;MM_preloadImages('Assets/Vera.jpg')&quot; may cause the error but this code is fine itself so probably you have problems with JavaScript function MM_preloadImages().

It would be better if you show us the whole code of this page to fine the error.
Good Luck! :-)
 
Okay, thank you. Here is the whole page of script.

<html>
<head>
<title>Beaded Public Home Page</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
</head>

<body bgcolor=&quot;#FFFFFF&quot; text=&quot;#000000&quot; link=&quot;#3300CC&quot; vlink=&quot;#FF3366&quot; alink=&quot;#9900FF&quot; leftmargin=&quot;5&quot; topmargin=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; onLoad=&quot;MM_preloadImages('Assets/Vera.jpg')&quot;>
<table width=&quot;600&quot; bgcolor=&quot;#FFFFFF&quot; align=&quot;center&quot; height=&quot;517&quot;>
<tr>
<td width=&quot;98&quot;></td>
<td width=&quot;490&quot;></td>
</tr>
<tr>
<td width=&quot;98&quot; height=&quot;77&quot;>
<div align=&quot;center&quot;><font face=&quot;Georgia, Times New Roman, Times, serif&quot; size=&quot;2&quot; color=&quot;#6666FF&quot;><b><a href=&quot;index.htm&quot;><img src=&quot;Assets/beadedpublic_logo_thumb.gif&quot; width=&quot;75&quot; height=&quot;90&quot; border=&quot;0&quot;></a></b></font></div>
</td>
<td width=&quot;490&quot; valign=&quot;bottom&quot; bgcolor=&quot;#FFFFFF&quot; height=&quot;77&quot;>
<p align=&quot;center&quot;><font face=&quot;Georgia, Times New Roman, Times, serif&quot; size=&quot;5&quot; color=&quot;#0066CC&quot;><b>
Vera </b></font></p>
</td>
</tr>
<tr>
<td valign=&quot;top&quot; width=&quot;98&quot; height=&quot;26&quot;> </td>
<td width=&quot;490&quot; valign=&quot;middle&quot; bgcolor=&quot;#FFFFFF&quot; height=&quot;26&quot; bordercolor=&quot;#FFFFFF&quot;> 
</td>
</tr>
<tr>
<td valign=&quot;top&quot; width=&quot;98&quot; height=&quot;469&quot;>
<table width=&quot;96%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFFFFF&quot; bordercolor=&quot;#FFFFFF&quot;>
<tr>
<td><font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;1&quot; color=&quot;#000000&quot;><a href=&quot;index.htm&quot;><img src=&quot;Assets/buttons_rect_blue_027%20home.gif&quot; width=&quot;100&quot; height=&quot;30&quot; border=&quot;0&quot; name=&quot;Home&quot; alt=&quot;Home&quot;></a></font></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;1&quot; color=&quot;#000000&quot;><a href=&quot;Bookmarkers_p02.htm&quot;><img src=&quot;Assets/buttons_rect_blue_027_bookmarkers.gif&quot; width=&quot;100&quot; height=&quot;30&quot; border=&quot;0&quot; alt=&quot;Bookmarkers&quot;></a></font></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><font size=&quot;3&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;><a href=&quot;BeadedPins_p03.htm&quot;><img src=&quot;Assets/buttons_rect_blue_027%20beaded%20pins.gif&quot; width=&quot;100&quot; height=&quot;30&quot; border=&quot;0&quot; alt=&quot;Beaded Pins&quot;></a></font></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><a href=&quot;WatchPendants_p04.htm&quot;><img src=&quot;Assets/buttons_rect_blue_027pendants.gif&quot; width=&quot;100&quot; height=&quot;30&quot; border=&quot;0&quot; alt=&quot;Pendants&quot;></a></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><a href=&quot;ContactUs_p05.htm&quot;><img src=&quot;Assets/buttons_rect_blue_027contact.gif&quot; width=&quot;100&quot; height=&quot;30&quot; border=&quot;0&quot; alt=&quot;Contact Us&quot;></a></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><a href=&quot;RelatedLinks_p06.htm&quot;><img src=&quot;Assets/buttons_rect_blue_027relatedlinks.gif&quot; width=&quot;100&quot; height=&quot;30&quot; border=&quot;0&quot; alt=&quot;Related Links&quot;></a></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
<td height=&quot;469&quot; valign=&quot;top&quot; bgcolor=&quot;#FFFFFF&quot; width=&quot;490&quot;>
<table width=&quot;439&quot; height=&quot;408&quot; name=&quot;Pins&quot; bgcolor=&quot;#FFFFFF&quot; bordercolor=&quot;#FFFFFF&quot; align=&quot;center&quot;>
<tr>
<td height=&quot;376&quot; valign=&quot;top&quot; width=&quot;285&quot;>
<div align=&quot;center&quot;><img src=&quot;Assets/Vera.jpg&quot; width=&quot;200&quot; height=&quot;456&quot;></div>
</td>
<td height=&quot;376&quot; valign=&quot;top&quot; width=&quot;169&quot;>
<div align=&quot;center&quot;><font face=&quot;Arial, Helvetica, sans-serif&quot; size=&quot;2&quot;><b><br>
</b></font>
<p><font face=&quot;Arial, Helvetica, sans-serif&quot; size=&quot;2&quot;><b>Vera<br>
Appr. 1-1/2&quot; x 4&quot;<br>
$28.95</b></font></p>
<p><font face=&quot;Arial, Helvetica, sans-serif&quot; size=&quot;2&quot;><br>
<br>
<br>
<a href=&quot;#&quot; onClick=&quot;window.open(' src=&quot; border=&quot;0&quot;></a>
</font></p>
<div align=&quot;center&quot;>
<p><br>
</p>
</div>
<table width=&quot;150&quot; align=&quot;center&quot;>
<tr align=&quot;left&quot; valign=&quot;middle&quot;>
<td height=&quot;20&quot;><font face=&quot;Arial, Helvetica, sans-serif&quot; size=&quot;3&quot;><a href=&quot;BeadedPins_p03Junie.htm&quot;><b>Back</b></a></font></td>
<td height=&quot;20&quot;>
<div align=&quot;right&quot;><font face=&quot;Arial, Helvetica, sans-serif&quot; size=&quot;3&quot;><b><a href=&quot;BeadedPins_p03Lois.htm&quot;>Next</a></b></font></div>
</td>
</tr>
</table>
<div align=&quot;center&quot;><br>
<br>
<br>
<a href=&quot;#&quot; onClick=&quot;window.open(' src=&quot; border=&quot;0&quot;></a></div>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width=&quot;413&quot; align=&quot;center&quot; height=&quot;27&quot;>
<tr>
<td width=&quot;454&quot; height=&quot;23&quot;>
<div align=&quot;center&quot;><font face=&quot;Arial, Helvetica, sans-serif&quot; size=&quot;1&quot;><a href=&quot;index.htm&quot;>Home</a>
| <a href=&quot;Bookmarkers_p02.htm&quot;>Bookmarkers</a> | <a href=&quot;BeadedPins_p03.htm&quot;>Beaded
Pins</a> | <a href=&quot;WatchPendants_p04.htm&quot;>Pendants</a> | <a href=&quot;ContactUs_p05.htm&quot;>Contact
Us</a> | <a href=&quot;RelatedLinks_p06.htm&quot;>Related Links</a> | <a href=&quot;SiteMap_p07.htm&quot;>Site
Map</a></font></div>
</td>
</tr>
</table>
<br>
<table width=&quot;706&quot; align=&quot;center&quot;>
<tr>
<td><font face=&quot;Arial, Helvetica, sans-serif&quot; size=&quot;1&quot; color=&quot;#3300CC&quot;>©
2001 Beaded Public Studios. All rights reserved. The artwork and illustrations
contained throughout the pages of this website may not be copied or otherwise
reproduced without the express written permission of Beaded Public Studios.
Beaded Public® and beadedpublic® are registered trademarks of Beaded
Public Studios.</font> </td>
</tr>
</table>
<p> </p>
</body>
</html>
 
Hello primo!

Yes, now it's clear. If you know a little bit of JavaScript you know that basicly JS consists of two parts. First on is some function that makes something. And second part - event caller - something that calls the function to be processed.

On your page you only have the second part. It ends the <body> tag: onLoad=&quot;MM_preloadImages('Assets/Vera.jpg')&quot;. This calls the function called MM_preloadImages. But there is no such JavaScript function in your code.

Solution: you need to re-create JavaScript to preload images. I hope you know how to do it - Behaviours > Add > Preload Images.

Hope this helps. If not - let me know.

Good Luck! :-)
 
Hello again -- Well, I added the javescript that you recommended and I can see that now it appears. However, I'm still getting the error when I run debug in IE, except now it appears in Line 31. Could you please look at the code here and tell me what is wrong. And if you haven't already figured it out, I don't know javascript; I'm learning as I go. :)

If you'd like to direct me to online instructions surrounding this topic, that's fine as well.

Thank you for your help.

<html>
<head>
<title>Beaded Public Home Page</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
<script language=&quot;JavaScript&quot;>
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a.indexOf(&quot;#&quot;)!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
}
//-->
</script>
</head>

<body bgcolor=&quot;#FFFFFF&quot; text=&quot;#000000&quot; link=&quot;#3300CC&quot; vlink=&quot;#FF3366&quot; alink=&quot;#9900FF&quot; leftmargin=&quot;5&quot; topmargin=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; onLoad=&quot;MM_preloadImages('Assets/AliceMary.jpg')&quot;>
<table width=&quot;600&quot; bgcolor=&quot;#FFFFFF&quot; align=&quot;center&quot; height=&quot;517&quot;>
<tr>
<td width=&quot;99&quot;></td>
<td width=&quot;489&quot;></td>
</tr>
<tr>
<td width=&quot;99&quot; height=&quot;29&quot;> <a href=&quot;index.htm&quot;><img src=&quot;Assets/beadedpublic_logo_thumb.gif&quot; width=&quot;75&quot; height=&quot;90&quot; alt=&quot;Home&quot; border=&quot;0&quot;></a></td>
<td width=&quot;489&quot; valign=&quot;bottom&quot; bgcolor=&quot;#FFFFFF&quot; height=&quot;29&quot;>
<p align=&quot;center&quot;><font face=&quot;Georgia, Times New Roman, Times, serif&quot; size=&quot;5&quot; color=&quot;#0066CC&quot;><b>
Alice Mary</b></font></p>
</td>
</tr>
<tr>
<td valign=&quot;top&quot; width=&quot;99&quot; height=&quot;26&quot;> </td>
<td width=&quot;489&quot; valign=&quot;middle&quot; bgcolor=&quot;#FFFFFF&quot; height=&quot;26&quot; bordercolor=&quot;#FFFFFF&quot;> 
</td>
</tr>
<tr>
<td valign=&quot;top&quot; width=&quot;99&quot; height=&quot;422&quot;>
<table width=&quot;92%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; bgcolor=&quot;#FFFFFF&quot; bordercolor=&quot;#FFFFFF&quot;>
<tr>
<td><font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;1&quot; color=&quot;#000000&quot;><a href=&quot;index.htm&quot;><img src=&quot;Assets/buttons_rect_blue_027%20home.gif&quot; width=&quot;100&quot; height=&quot;30&quot; border=&quot;0&quot; name=&quot;Home&quot; alt=&quot;Home&quot;></a></font></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;1&quot; color=&quot;#000000&quot;><a href=&quot;Bookmarkers_p02.htm&quot;><img src=&quot;Assets/buttons_rect_blue_027_bookmarkers.gif&quot; width=&quot;100&quot; height=&quot;30&quot; border=&quot;0&quot; alt=&quot;Bookmarkers&quot;></a></font></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><font size=&quot;3&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;><a href=&quot;BeadedPins_p03.htm&quot;><img src=&quot;Assets/buttons_rect_blue_027%20beaded%20pins.gif&quot; width=&quot;100&quot; height=&quot;30&quot; border=&quot;0&quot; alt=&quot;Beaded Pins&quot;></a></font></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><a href=&quot;WatchPendants_p04.htm&quot;><img src=&quot;Assets/buttons_rect_blue_027pendants.gif&quot; width=&quot;100&quot; height=&quot;30&quot; border=&quot;0&quot; alt=&quot;Pendants&quot;></a></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><a href=&quot;ContactUs_p05.htm&quot;><img src=&quot;Assets/buttons_rect_blue_027contact.gif&quot; width=&quot;100&quot; height=&quot;30&quot; border=&quot;0&quot; alt=&quot;Contact Us&quot;></a></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><a href=&quot;RelatedLinks_p06.htm&quot;><img src=&quot;Assets/buttons_rect_blue_027relatedlinks.gif&quot; width=&quot;100&quot; height=&quot;30&quot; border=&quot;0&quot; alt=&quot;Related Links&quot;></a></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
<td height=&quot;422&quot; valign=&quot;top&quot; bgcolor=&quot;#FFFFFF&quot; width=&quot;489&quot;>
<table width=&quot;439&quot; height=&quot;408&quot; name=&quot;Pins&quot; bgcolor=&quot;#FFFFFF&quot; bordercolor=&quot;#FFFFFF&quot; align=&quot;center&quot;>
<tr>
<td height=&quot;12&quot; valign=&quot;top&quot; width=&quot;285&quot;> </td>
<td height=&quot;12&quot; valign=&quot;top&quot; width=&quot;169&quot;> </td>
</tr>
<tr>
<td height=&quot;376&quot; valign=&quot;top&quot; width=&quot;285&quot;>
<div align=&quot;center&quot;><img src=&quot;Assets/AliceMary.jpg&quot; width=&quot;285&quot; height=&quot;338&quot; align=&quot;middle&quot;></div>
</td>
<td height=&quot;376&quot; valign=&quot;top&quot; width=&quot;169&quot;>
<div align=&quot;center&quot;>
<p><font face=&quot;Arial, Helvetica, sans-serif&quot; size=&quot;2&quot;><b><br>
<br>
Alice Mary <br>
Appr. 3-1/2&quot; x 4&quot;<br>
$34.95</b></font><font face=&quot;Arial, Helvetica, sans-serif&quot; size=&quot;2&quot;><br>
</font></p>
<p> </p>
<p><a href=&quot;#&quot; onClick=&quot;window.open(' src=&quot; border=&quot;0&quot;></a><br>
<br>
<br>
</p>
</div>
<table width=&quot;150&quot; align=&quot;center&quot;>
<tr align=&quot;left&quot; valign=&quot;middle&quot;>
<td height=&quot;20&quot;><font face=&quot;Arial, Helvetica, sans-serif&quot; size=&quot;3&quot;><a href=&quot;BeadedPins_p03.htm&quot;><b>Back</b></a></font></td>
<td height=&quot;20&quot;>
<div align=&quot;right&quot;><font face=&quot;Arial, Helvetica, sans-serif&quot; size=&quot;3&quot;><b><a href=&quot;BeadedPins_p03Lorraine.htm&quot;>Next</a></b></font></div>
</td>
</tr>
</table>
<div align=&quot;center&quot;><br>
<br>
<br>
<a href=&quot;#&quot; onclick=&quot;window.open(' src=&quot; border=&quot;0&quot;></a>
</div>
<p> </p>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width=&quot;413&quot; align=&quot;center&quot; height=&quot;27&quot;>
<tr>
<td width=&quot;454&quot; height=&quot;23&quot;>
<div align=&quot;center&quot;><font face=&quot;Arial, Helvetica, sans-serif&quot; size=&quot;1&quot;><a href=&quot;index.htm&quot;>Home</a>
| <a href=&quot;Bookmarkers_p02.htm&quot;>Bookmarkers</a> | <a href=&quot;BeadedPins_p03.htm&quot;>Beaded
Pins</a> | <a href=&quot;WatchPendants_p04.htm&quot;>Pendants</a> | <a href=&quot;ContactUs_p05.htm&quot;>Contact
Us</a> | <a href=&quot;RelatedLinks_p06.htm&quot;>Related Links</a> | <a href=&quot;SiteMap_p07.htm&quot;>Site
Map</a></font></div>
</td>
</tr>
</table>
<br>
<table width=&quot;706&quot; align=&quot;center&quot;>
<tr>
<td><font face=&quot;Arial, Helvetica, sans-serif&quot; size=&quot;1&quot; color=&quot;#3300CC&quot;>©
2001 Beaded Public Studios. All rights reserved. The artwork and illustrations
contained throughout the pages of this website may not be copied or otherwise
reproduced without the express written permission of Beaded Public Studios.
Beaded Public® and beadedpublic® are registered trademarks of Beaded
Public Studios.</font> </td>
</tr>
</table>
<p> </p>
</body>
</html>
 
Hey primo!

Change your script with this one. I don't know how it happened but your code has a small mistake, that causes the error. Just copy/paste this code (starts from about line 5):

<script language=&quot;JavaScript&quot;>
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a.indexOf(&quot;#&quot;)!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
}
//-->
</script>
Good Luck! :-)
 


PROMO!

There was an error in the code above - copy THIS code:

Code:
<script language=&quot;JavaScript&quot;>
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf(&quot;#&quot;)!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
Good Luck! :-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top