//news1.js
var global_article = new Array();
var global_article_counter = 0;
var article = null;
var early_exit = true;
var moreover_text = 0;
function load_wizard()
{
var newwin = window.open("","clone","resizable,scrollbars");
document.forms.moreover_clone.submit();
return true;
}
//news2.js
if (article != null && (article.length > 0))
{
early_exit = false;
for (var article_counter = 0; article_counter < article.length; article_counter++)
{
global_article[global_article_counter] = article[article_counter];
global_article[global_article_counter].url += "&w=2213900";
global_article[global_article_counter].url += "' TARGET='_blank";
global_article[global_article_counter].document_url += "' TARGET='_blank";
global_article_counter++;
}
}
//news3.js
if (global_article.length == 0)
{
if (early_exit)
{
document.write("<CENTER>Please reload this page to view the headlines</CENTER>");
}
else
{
document.write("<CENTER>Sorry, no articles matched your search criteria</CENTER>");
early_exit = true;
}
}
if (!early_exit)
{
var wizard_brand = "moreover";
var webfeed_heading = "Top stories";
var width = "300";
var numberofarticles = global_article.length;
var cluster_border = "0";
var time_display = "Yes";
var cell_spacing = "0";
var cell_padding = "1";
var time = new Array(global_article.length);
var counter;
// Start loop for articles
for (counter=0; counter < numberofarticles; counter++)
{
if ((counter == (global_article.length - 1)) && moreover_text == 1)
{
time_display = "No";
}
// Print out the headline
document.write("<a href='" + global_article[counter].url + "' class='morehl' onMouseOver=\"status='News'; return true;\" onMouseOut=\"status='Bugabu.com';\">");
document.write(global_article[counter].headline_text+"...</a><br>");
// Print out the source
if ((counter != (global_article.length - 1)) || moreover_text != 1)
{
document.write("<A HREF='"+global_article[counter].document_url+"' + class='moresrc'>");
document.write(global_article[counter].source+"</A>");
}
// Print out reg/sub/prem if appropriate
if (global_article[counter].access_status == "sub" || global_article[counter].access_status == "reg" || global_article[counter].access_status == "prem")
{
document.write("<span class='moreti'> </span><A HREF='"+global_article[counter].access_registration+"' class='moresrc'>");
document.write(global_article[counter].access_status+"</A>");
}
// Print out the harvest time
if (time_display == "Yes")
{
// Make a new date object
time[counter] = new Date(global_article[counter].harvest_time);
time[counter].setHours(time[counter].getHours() - (time[counter].getTimezoneOffset() / 60 ));
document.write("<span class='moreti'> "+time[counter].toString()+"<br> <br></span>");
}
else
{
document.write("<br> <br>");
}
} // End of article loop
// Start of clone button code //
// NOTE: DO NOT REMOVE any of the code in this section //
document.write("<FORM METHOD='POST' ACTION='http://www.moreover.com/cgi-local/wizard_welcome.pl' target='clone' name='moreover_clone'>");
document.write("<INPUT TYPE='hidden' NAME='parent_code' VALUE='2213900'>");
document.write("<INPUT TYPE='hidden' NAME='clone_system' VALUE='c'>");
document.write("<INPUT TYPE='hidden' NAME='system' VALUE='c'>");
document.write("<INPUT TYPE='hidden' NAME='heading_font_size' VALUE=''><INPUT TYPE='hidden' NAME='headline_bgcolor' VALUE='FFFFFF'>")
document.write("<INPUT TYPE='hidden' NAME='webfeed_heading' VALUE='Top stories'><INPUT TYPE='hidden' NAME='cluster_width' VALUE='300'>")
document.write("<INPUT TYPE='hidden' NAME='cluster_name' VALUE='c=Top%20stories&o=js'><INPUT TYPE='hidden' NAME='source_time_underline' VALUE='false'>")
document.write("<INPUT TYPE='hidden' NAME='time_display' VALUE='Yes'><INPUT TYPE='hidden' NAME='heading_display' VALUE='Yes'>")
document.write("<INPUT TYPE='hidden' NAME='headline_fgcolor' VALUE='003399'><INPUT TYPE='hidden' NAME='cluster_cellspacing' VALUE='0'>")
document.write("<INPUT TYPE='hidden' NAME='number_of_headlines' VALUE='5'><INPUT TYPE='hidden' NAME='source_time_fgcolor' VALUE='6699cc'>")
document.write("<INPUT TYPE='hidden' NAME='headline_font_size' VALUE='11'><INPUT TYPE='hidden' NAME='search_keywords' VALUE=''>")
document.write("<INPUT TYPE='hidden' NAME='source_time_font_size' VALUE='9'><INPUT TYPE='hidden' NAME='headline_italic' VALUE='false'>")
document.write("<INPUT TYPE='hidden' NAME='headline_font' VALUE='Verdana,Gevena,Arial,sans-serif'><INPUT TYPE='hidden' NAME='source_time_italic' VALUE='false'>")
document.write("<INPUT TYPE='hidden' NAME='source_time_font' VALUE='Verdana,Gevena,Arial,sans-serif'><INPUT TYPE='hidden' NAME='wizard_brand' VALUE='moreover'>")
document.write("<INPUT TYPE='hidden' NAME='cluster_cellpadding' VALUE='1'><INPUT TYPE='hidden' NAME='headline_bold' VALUE='true'>")
document.write("<INPUT TYPE='hidden' NAME='cluster_border' VALUE='0'><INPUT TYPE='hidden' NAME='source_time_bold' VALUE='false'>")
document.write("<INPUT TYPE='hidden' NAME='headline_underline' VALUE='true'><INPUT TYPE='hidden' NAME='cluster_layout' VALUE='<BR>'>")
document.write("</FORM>");
// End of clone button code //
}
//how to use the above.
<SCRIPT LANGUAGE="Javascript" SRC="news1.js"></SCRIPT>
<SCRIPT LANGUAGE="Javascript" SRC="http://p.moreover.com/cgi-local/page?c=Top%20US%20stories&o=js&n=1"></SCRIPT>
<SCRIPT LANGUAGE="Javascript" SRC="news2.js"></SCRIPT>
<SCRIPT LANGUAGE="Javascript" SRC="news3.js"></SCRIPT>
<table width='300' cellpadding=4 cellspacing=0>
<tr bgcolor='#FFFFFF'>
<td>
<SCRIPT LANGUAGE="Javascript" SRC="news4.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript1.2">
setTimeout("window.location.reload(true)", 900*1000); // refresh time in ms
</SCRIPT>
</td>
</tr>
</table>
How can i store this information onto a file so that i can use ph to load just that information ?
I have tired many things but none seem to wroik.