X-Git-Url: http://git.osdn.net/view?p=mingw%2Fwebsite.git;a=blobdiff_plain;f=site.js;h=f2da66d37146677d71c99b76ffc4ea58840b3a19;hp=df255c7da53f29ecdcb5ff9171bfd69bbf478713;hb=8cf6dedbf1f746bfbdb74ffec9d8c19717465416;hpb=54467f16c0ec2657350a2877e22dd0491a42e725 diff --git a/site.js b/site.js index df255c7..f2da66d 100644 --- a/site.js +++ b/site.js @@ -64,6 +64,15 @@ function load_page_content( src, subtitle ) load_content( "page-content", src ); } +function load_page_overlay( src, title, subtitle ) +{ /* Replace the existing page content from the specified overlay + * "src" file, updating the page title, and subtitle, as may be + * appropriate. + */ + if( title ) document.title = title; + load_page_content( src, subtitle ); +} + function new_page( src, subtitle ) { /* Create a new page display, starting from scratch; assign the * displayed title from the HTML document title attribute, adding