• Hello
    Also is anyone here having issues with webrings and getting them to validate. I get all sorts of errors with them when i go to check the validation.

    Got the centering part fixed figured out my mistake. Didn’t add it into the page.php like it should have and tried to add it into the creating of the page.
    http://valunicorn.com/?page_id=11

    Thank you
    For taking the time at reading this message.

Viewing 3 replies - 1 through 3 (of 3 total)
  • the code for the webring might not be valid.. so you might have to tweak it. you can revalidate with source so you can see where it is talking about..

    Thread Starter scratches

    (@scratches)

    I have tried to tweak them and it is hard to do when so many of the rings the person who comes by to check grumbles that it was changed or altered.

    Thank you for the help

    You aren’t supposed to change webrings’ provided code, and in fact you generally agree NOT to when you sign up. And most of the “ringmasters” in fact don’t give a rat’s ass about valid code. Since the ring codes are generally js, it’s a bit more difficult to validate than is “plain” html, but one thing you CAN try is to surround the applicable js code section with the following “quasi-tags”

    //<![CDATA
    //]]>

    The slightly tricky part is positioning these tags. See this code provided for use in a link-directory script, following, for some hints (and yes, this code validates – AND in an XHTML Strict page):

    <script type="text/javascript">
    //<![CDATA[
    var root = '{$smarty.const.DOC_ROOT}';
    {literal}
    var a = document.getElementsByTagName("a");
    for(i=0; i<a.length; i++)if(a[i].id != '')
    a[i].onclick = count_link;
    function count_link(){
    i = newImage();
    i.src= root+'/cl.php?id='+this.id;
    return true;
    }
    {/literal}
    //]]>
    </script>

    The main relevant areas are putting the quasi-tags inside the script tagset, and the js operants inside the quasi-tags.

    Good luck!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘centering images on pages’ is closed to new replies.