Jump to content


Photo

htmlfile: Uknown runtime error


  • Please log in to reply
No replies to this topic

#1 scrupul0us

scrupul0us
  • Members
  • PipPipPip
  • Advanced Member
  • 43 posts

Posted 19 April 2006 - 01:15 AM

im getting the following error:

htmlfile: Unknown runtime error

on this code:

function letterhead(mode)
{
    if (mode=='off')
    {
    html_header = document.getElementById("form_header").innerHTML;
    html_footer = document.getElementById("form_footer").innerHTML;
    document.getElementById("form_header").innerHTML = "<div style=\"height:1.75in; width: 7.5px;\"></div>";
    document.getElementById("form_footer").innerHTML = "<div style=\"height:1in; width: 7.5px;\"></div>";
    document.getElementById("letterheadmode").innerHTML = "<a href=\"#\" onclick=\"letterhead('on')\">Add Letterhead</a>";
    }
    if (mode=='on')
    {
    document.getElementById("form_header").innerHTML = html_header;
    document.getElementById("form_footer").innerHTML = html_footer;    
    document.getElementById("letterheadmode").innerHTML = "<a href=\"#\" onclick=\"letterhead('off')\">Remove Letterhead</a>";
    }
}

on:

document.getElementById("form_header").innerHTML = "<div style=\"height:1.75in; width: 7.5px;\"></div>";





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users