2014-09-11

Hi,

I am developing a web application which will be comprised of three columns: (1) Search form, (2) Image gallery, (3) Image details. The search form will display query results in the image gallery and any image clicked in the image gallery will display details in the third column. The site is going to be more like html framesets, but research reveals that framesets are not favourable due to many reasons. I however found an alternative called "smartframes" that I want to use instead of html framesets

Link: smartframes

Does anyone know how I can add ROWS (equivalent to Frameset Rows) so I can have header and footer?

Adding this line alone is not working for me:

CODE

document.write('<frameset rows="17%,*" frameborder="no">');

Original code is as follows:

CODE

&lt!--
/* SmartFrames - Author: Robert Darrell - http://www.ironspider.ca/ */
// Defines variables
// REPLACE menu.htm WITH YOUR MENU PAGE
// REPLACE page1.htm WITH YOUR INITIAL CONTENT PAGE
menuURL = "menu.htm";
contentURL = "page1.htm";
reloadURL = parent.document.URL;
orphanURL = reloadURL.substring(reloadURL.indexOf('?')+1, reloadURL.indexOf('&'));
frameName = reloadURL.substring(reloadURL.indexOf('&')+1, reloadURL.length);

// Reassigns variable according to frame name passed by orphan
if (frameName == "menu") {
menuURL = orphanURL;
} else if (frameName == "content") {
contentURL = orphanURL;
}

// Writes frameset
document.write('<frameset cols="25%,75%" frameborder="no">');
document.write('<frame src="' + menuURL + '" name="menu">');
document.write('<frame src="' + contentURL + '" name="content" marginheight="15" marginwidth="50" scrolling="yes">');
// -->
</script>

&lt!-- Use the noframes section to help search engines index your site -->
<noframes>THIS WEBSITE IS ABOUT...<br><br>
<a href="menu.htm">Site Menu</a>
</noframes>

</frameset>

Show more