I'm trying to tighten up a site of mine so it doesn't throw any errors on 
W3C's Markup Validation Service. <http://validator.w3.org/>

Two things:


1.  I have several links on my page going back to the top of the site, 
using smooth scrolling.

Here's one:  <a href="#top" id="top">Top<img src="u.gif" alt="top" 
border="0" height="16" width="16" /></a>

The error's saying "ID "top" already defined".  Ok, I understand, IDs are 
supposed to be unique.  But when I change
it to class="top" it stops working.


2.  I have a function call to ScrollLinks.start(); that appears to be 
deprecated.

Like this:  <body onLoad="ScrollLinks.start();">

The error says:  "there is no attribute "onLoad""

Is there another way to call this that's not deprecated?

Thanks!

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"MooTools Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mootools-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to