Problem, possibly with script

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • younghelpdeskguy
    Private First Class

    • Aug 2005
    • 7

    Problem, possibly with script

    Hi all, I'm having a problem. When I build a webpage using bluevodas builder, everything looks fine. But when I publish pages, things start looking bad. Pictures overlap text, text doesn't match pictures, etc.. Some pages, however, look fine. The only thing in common about all the pages that worked is that they all had this piece of code under the meta name html code:<SCRIPT language="JavaScript">

    <!--

    function SwapImage()

    {

    var doc=document, args=arguments;

    doc.$imgSwaps = new Array();

    for(var i=2; i<args.length; i+=2)

    {

    var elem=FindObject(args[i]);

    if(elem)

    {

    doc.$imgSwaps[doc.$imgSwaps.length]=elem;

    elem.$src=elem.src;

    elem.src=args[i+1];

    }

    }

    }

    function FindObject(id, doc)

    {

    var child, elem;

    if(!doc)

    doc=document;

    if(doc.getElementById)

    elem=doc.getElementById(id);

    else

    if(doc.layers)

    child=doc.layers;

    else

    if(doc.all)

    elem=doc.all[id];

    if(elem)

    return elem;

    if(doc.id==id || doc.name==id)

    return doc;

    if(doc.childNodes)

    child=doc.childNodes;

    if(child)

    {

    for(var i=0; i<child.length; i++)

    {

    elem=FindObject(id,child[i]);

    if(elem)

    return elem;

    }

    }

    var frm=doc.forms;

    if(frm)

    {

    for(var i=0; i<frm.length; i++)

    {

    var elems=frm[i].elements;

    for(var j=0; j<elems.length; j++)

    {

    elem=FindObject(id,elems[i]);

    if(elem) return elem;

    }

    }

    }

    return null;

    }

    // -->

    Has anyone else experianced this problem? Any help would be appreciated. Thanks
  • VodaHost
    General & Forum Administrator

    • Mar 2005
    • 12356

    #2
    what the url so we can take a look...

    VodaHost

    Your Website People!
    1-302-283-3777 North America / International
    02036089024 / United Kingdom
    291916438 / Australia

    ------------------------

    Top 3 Best Sellers

    Web Hosting - Unlimited disk space & bandwidth.

    Reseller Hosting - Start your own web hosting business.

    Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)


    Comment

    • younghelpdeskguy
      Private First Class

      • Aug 2005
      • 7

      #3
      re

      here's one: http://www.closetohomeneedleworks.com/3.html

      Comment

      • VodaHost
        General & Forum Administrator

        • Mar 2005
        • 12356

        #4
        yeah...that is really horrible...what did u do? possibly the script?

        VodaHost

        Your Website People!
        1-302-283-3777 North America / International
        02036089024 / United Kingdom
        291916438 / Australia

        ------------------------

        Top 3 Best Sellers

        Web Hosting - Unlimited disk space & bandwidth.

        Reseller Hosting - Start your own web hosting business.

        Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)


        Comment

        Working...
        X