Results 1 to 2 of 2

Thread: Remove Line Numbers

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2007
    Posts
    46

    Remove Line Numbers

    Hi Folks

    A little while back, I put a post out asking if anyone new how to remove the line numbers from a VBForum Post. I got a couple of cool code snippets, which I use to this day, however cleaning out today I finally found the code.

    It's Javascript that replaces the numbers.

    You have to create a link ( i have it setup in my favorites) then before you hit VBForums, simply click on the link. It sets up the code to remove the line numbers.

    I am not going to reproduce the link. I have looked at the code and it seems harmless enough, but I am not a Javascript code by any streatch of the imagination, so here is the actual text. If anyone sees a problem please shout out and we can have an admin politely yet quickly remove the thread from service.

    HTML Code:
    <A HREF="javascript:for(jK6bvW=0;jK6bvW<document.getElementsByTagName("ol").length;jK6bvW++){void(window.document.getElementsByTagName("ol")[jK6bvW].innerHTML=window.document.getElementsByTagName("ol")[jK6bvW].innerHTML.replace(/<\/li>/gmi,%20"\r\n<\/li>"));%20void(wi" ADD_DATE="1204306624" LAST_VISIT="1212075405" LAST_MODIFIED="1189537623">Bookmark this link, and click it when viewing code in VBForums to remove the line numbers</A>
    Regards

    PeteLeeb

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Remove Line Numbers

    Moved

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width