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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

META tags messing up my script!

Status
Not open for further replies.

ScoobyDood

Programmer
Jun 10, 2002
15
US
I'm trying to add META tags to my site so I can get more hits with search engines, but when I add the META tags it messes up my navbar, which has some image rollovers. The navbar is fine until I add the tags. The error I get is 'Object Expected'. They are both in the <HEAD> tags. Does that metter? Please help. Here is the entire page:

<html>
<head>
<meta http-equiv=&quot;expires&quot; content=&quot;Tue, 12 May 2009 00:36:05 GMT&quot;>
<meta name=&quot;keywords&quot; content=&quot;Web Design, Web, Design, Page, Site, Website, Webpage&quot;>
<meta name=&quot;description&quot; content=&quot;LotTech Web Design - Professional, Functional, Low Cost Web Sites&quot;>
<meta name=&quot;robots&quot; content=&quot;all&quot;>
<title>LotTech Web Design - Professional, Functional, Low Cost Web Sites</title>

<!--// LotTech Web Design - Professional, Functional, Low Cost Web Sites //--!>

<script language='Javascript'><!--

if (document.images) {

//Images

img1on = new Image();
img1on.src = '
img2on = new Image();
img2on.src = '
img3on = new Image();
img3on.src = '
img4on = new Image();
img4on.src = '
img5on = new Image();
img5on.src = '
img6on = new Image();
img6on.src = '
img1off = new Image();
img1off.src = '
img2off = new Image();
img2off.src = '

img3off = new Image();
img3off.src = '
img4off = new Image();
img4off.src = '
img5off = new Image();
img5off.src = '

img6off = new Image();
img6off.src = ' }

//Function to 'activate' images.

function imgOn(imgName) {
if (document.images) {
document
.src = eval(imgName + 'on.src');
}
}

//Function to 'deactivate' images.

function imgOff(imgName) {
if (document.images) {
document
.src = eval(imgName + 'off.src');
}
}

// -->
</script>

</head>

<body>

<table border='0' height='100%' width='100%' cellspacing='0' cellpadding='3'>
<tr><td rowspan='2' valign='top' width='200'>

<!-- LOGO --!>

<a href=&quot;web.html&quot; onMouseOver=&quot;imgOn('img1')&quot; onMouseOut=&quot;imgOff('img1')&quot;>
<img name=&quot;img1&quot; SRC=&quot; alt=&quot;LotTech Web Design&quot; height=&quot;120&quot;
width=&quot;120&quot; vspace=&quot;0&quot; hspace=&quot;0&quot; border=&quot;0&quot;></a><br>

<!-- Navagation --!>

<a href=&quot;design.html&quot; onMouseOver=&quot;imgOn('img2')&quot; onMouseOut=&quot;imgOff('img2')&quot;>
<img name=&quot;img2&quot; src=&quot; alt=&quot;Web Design&quot; height=&quot;25&quot;
width=&quot;160&quot; vspace=&quot;0&quot; hspace=&quot;0&quot; border=&quot;0&quot;></a>
<br>
<a href=&quot;pp&quot; onMouseOver=&quot;imgOn('img3')&quot; onMouseOut=&quot;imgOff('img3')&quot;>
<img name=&quot;img3&quot; src=&quot; alt=&quot;Post-A-Page&quot; height=&quot;25&quot;
width=&quot;160&quot; vspace=&quot;0&quot; hspace=&quot;0&quot; border=&quot;0&quot;></a>
<br>
<a href=&quot;web.html&quot; onMouseOver=&quot;imgOn('img4')&quot; onMouseOut=&quot;imgOff('img4')&quot;>
<img name=&quot;img4&quot; src=&quot; alt=&quot;FAQ&quot; height=&quot;25&quot;
width=&quot;70&quot; vspace=&quot;0&quot; hspace=&quot;0&quot; border=&quot;0&quot;></a>
<br>
<a href=&quot;web.html&quot; onMouseOver=&quot;imgOn('img5')&quot; onMouseOut=&quot;imgOff('img5')&quot;>
<img name=&quot;img5&quot; src=&quot; alt=&quot;Help&quot; height=&quot;25&quot;
width=&quot;76&quot; vspace=&quot;0&quot; hspace=&quot;0&quot; border=&quot;0&quot;></a>
<br>
<a href=&quot;web.html&quot; onMouseOver=&quot;imgOn('img6')&quot; onMouseOut=&quot;imgOff('img6')&quot;>
<img name=&quot;img6&quot; src=&quot; alt=&quot;Terms of Use&quot; height=&quot;25&quot;
width=&quot;168&quot; vspace=&quot;0&quot; hspace=&quot;0&quot; border=&quot;0&quot;></a>
</td><td align='middle' height='60'>



</td></tr>

<tr><td valign='top'>
<b><font face='verdana' color='darkslateblue' size='-4'>

<!-- MAIN CONTENT --!>

<u>Welcome</u><br>
LotTech Web Design will make a professional, functional, low cost web site
for your small business. Basic Packages included everything you need to
inform customers about your business, entise them to come, and it also
adds a professional feel to your business.
<p>
We also create personal web pages for a flat rate of $20.00.
More information can be found on our other site, Post-A-Page.

</b></font></td></tr></table><hr>
<font size='-5' face='verdana'><center>
Copyright © 2002 LotTech Web Design.
All rights reserved.</font>
</center></body></html>

Computers - Can't live with 'em, can't live without 'em! Check this out:

 
ScoobyDood,

the problem is how you're closing your html comment tags:

you must use
-->

not

--!>

hope this helps. ======================================

if (!succeed) try();
-jeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top