PDA

View Full Version : Invalid markup - Self-generating?


tflavin
10-23-2008, 02:52 PM
On my home page, I keep getting an Invalid markup error. The odd thing is, these things tend to appear on their own. In my code, an extra </a> appears. I can delete them, but even if I haven't made any changes to that page they come back on their own. I can continue to delete them, but I am afraid there might be a deeper problem at work. These are on or around mouseovers. In the staging environment I set up, I have noticed a few of the button occasional stick if I move from one to the other too quickly. It does not always happen though. Does anyone know what might be causing this?

Here is a link to my page: http://staging.istservice.com (http://staging.istservice.com/)

Note that the Solutions and Partners buttons sometime show they have no link. However they do in Dreamweaver. I don't understand what is going on.

Here's some code from that region. I highlighted the double <a/> in red (towards the bottom this time; however, they come and go throughout most of this code).

<div class="rollovernav"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('NavHome','','Images/homedark.jpg',1)"><img src="Images/homedark.jpg" alt="Home" name="NavHome" width="119" height="32" border="0" id="NavHome" /></a></div>
<div class="rollovernav"><a href="aboutist.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('navabout','','Images/aboutdark.jpg',1)"><img src="Images/aboutlight.jpg" alt="About" name="navabout" width="119" height="32" border="0" id="navabout" /></a></div>
<div class="rollovernav"><a href="solutions.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('navsolutions','','Images/solutionsdark.jpg',1)"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('navsolutions','','Images/solutionsdark.jpg',1)"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('navsolutions','','Images/solutionsdark.jpg',1)"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('navsolutions','','Images/solutionsdark.jpg',1)"><img src="Images/solutionslight.jpg" alt="Solutions" name="navsolutions" width="119" height="32" border="0" id="navsolutions" /></a></div>
<div class="rollovernav"><a href="partners.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('navpartners','','Images/partnersdark.jpg',1)"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('navpartners','','Images/partnersdark.jpg',1)"><img src="Images/partnerslight.jpg" alt="Partners" name="navpartners" width="119" height="32" border="0" id="navpartners" /></a></div>
<div class="rollovernav"><a href="contact.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('navcontact','','Images/contactdark.jpg',1)"><img src="Images/contactlight.jpg" alt="Contact" name="navcontact" width="119" height="32" border="0" id="navcontact" /></a></div>
<div class="rollovernav"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('navcareers','','Images/careersdark.jpg',1)"><a href="careers.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('navcareers','','Images/careersdark.jpg',1)"><img src="Images/careerslight.jpg" alt="Careers" name="navcareers" width="119" height="32" border="0" id="navcareers" /></a></a></div>
<div class="NavEnd"><img src="Images/endlight.jpg" name="NavEnd" width="186" height="32" id="NavEnd" /></div>
<div>

Thanks for your help!

Tim

Cary
10-24-2008, 03:52 AM
You can try this code, but it sounds like you know how to fix it. It's just that DW keeps changing the code. I'm not sure why that would be. Whenever you wish to remove behaviors make sure you do so by selecting the behavior and then clicking "-" in the behavior panel to remove the behavior.

<div class="rollovernav"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('NavHome','','Images/homedark.jpg',1)"><img src="Images/homedark.jpg" alt="Home" name="NavHome" width="119" height="32" border="0" id="NavHome" /></a></div>
<div class="rollovernav"><a href="aboutist.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('navabout','','Images/aboutdark.jpg',1)"><img src="Images/aboutlight.jpg" alt="About" name="navabout" width="119" height="32" border="0" id="navabout" /></a></div>
<div class="rollovernav"><a href="solutions.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('navsolutions','','Images/solutionsdark.jpg',1)"><img src="Images/solutionslight.jpg" alt="Solutions" name="navsolutions" width="119" height="32" border="0" id="navsolutions" /></a></div>
<div class="rollovernav"><a href="partners.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('navpartners','','Images/partnersdark.jpg',1)"><img src="Images/partnerslight.jpg" alt="Partners" name="navpartners" width="119" height="32" border="0" id="navpartners" /></a></div>
<div class="rollovernav"><a href="contact.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('navcontact','','Images/contactdark.jpg',1)"><img src="Images/contactlight.jpg" alt="Contact" name="navcontact" width="119" height="32" border="0" id="navcontact" /></a></div>
<div class="rollovernav"><a href="careers.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('navcareers','','Images/careersdark.jpg',1)"><img src="Images/careerslight.jpg" alt="Careers" name="navcareers" width="119" height="32" border="0" id="navcareers" /></a></div>
<div class="NavEnd"><img src="Images/endlight.jpg" name="NavEnd" width="186" height="32" id="NavEnd" /></div>

domedia
10-24-2008, 01:53 PM
You can try this code, but it sounds like you know how to fix it. It's just that DW keeps changing the code. I'm not sure why that would be. I remember some setting in the preferences asking DW not to write anything.

tflavin
10-25-2008, 09:04 PM
Thanks everyone. I will give all that a try.

Tim