The Forum has been Updated
The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
hello who can help me on my news portal should not be more 'I get this message : Offline, Live news not available. Please log on
il codice e questo :
il codice e questo :
Code:
if Request("HideNewsLive") = "Y" then
Response.Cookies(strUniqueID & "HideNewsLive") = "Y"
Response.Cookies(strUniqueID & "HideNewsLive").Expires = dateAdd("d", intCookieDuration, strForumTimeAdjust)
else
if Request("HideNewsLive") = "N" then
Response.Cookies(strUniqueID & "HideNewsLive") = "N"
Response.Cookies(strUniqueID & "HideNewsLive").Expires = dateAdd("d", intCookieDuration, strForumTimeAdjust)
end if
end if
Response.Write " <table border=""0"" width=""100%"" cellspacing=""0"" cellpadding=""0"">" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td " & TableBorderColor & ">" & vbNewLine & _
" <table border=""0"" width=""100%"" " & Cellspacing & " cellpadding=""2"">" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td " & HeadCellColor & ">" & vbNewLine & _
" <table border=""0"" width=""100%"" cellspacing=""0"" cellpadding=""0"">" & vbNewLine & _
" <tr valign=""middle"">" & vbNewLine & _
" <td width=""99%"" " & HeadCellColor5 & " align=""center""><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ " & HeadFontColor & ">News Live</font></b></td>" & vbNewLine & _
" <td align=""right"">" & vbNewLine
if Request.Cookies(strUniqueID & "HideNewsLive") = "Y" then
Response.Write "<a id=left align=left href=""" & ScriptName & "?HideNewsLive=N"">" & getCurrentIcon(strIconPlus,fLang("strLangExpand00010"),"") & "</a>"
else
Response.Write "<a href=""" & ScriptName & "?HideNewsLive=Y"">" & getCurrentIcon(strIconMinus,fLang("strLangCollapse00010"),"") & "</a>"
end if
Response.Write " </td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" </table>" & vbNewLine & _
" </td>" & vbNewLine & _
" </tr>" & vbNewLine
if Request.Cookies(strUniqueID & "HideNewsLive") = "N" or Request.Cookies(strUniqueID & "HideNewsLive") = "" then
Response.Write " <tr>" & vbNewLine & _
" <td " & ForumCellColor & " valign=""top""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ " & DefaultFontColor & ">" & vbNewLine
%>
<!-- Start Of Moreover.com News Javascript Code -->
<script language="JavaScript1.1">
<!--
// the array global_article is used to allow multiple categories
var global_article = new Array();
var global_article_counter = 0;
var article = null;
var early_exit = 1;
var moreover_text = 0;
function load_wizard()
{
var newwin = window.open("","clone","resizable,scrollbars,width=500,height=590");
document.forms.moreover_clone.submit();
return true;
}
// -->
</script>
<script language="JavaScript1.1"
src="http://p.moreover.com/cgi-local/page?feed=45806&o=js"></script>
<script language="JavaScript1.1">
<!--
if (article != null)
{
early_exit = 0;
for (var article_counter = 0; article_counter < Math.min(article.length,9); article_counter++)
{
global_article[global_article_counter] = article[article_counter];
global_article[global_article_counter].url += "&w=555226";
global_article[global_article_counter].url += "' TARGET='_blank";
global_article[global_article_counter].document_url += "' TARGET='_blank";
global_article_counter++;
}
}
if (global_article.length == 0)
{
if (early_exit)
{
document.writeln("<CENTER>Offline, Live news not available. Please log on</CENTER>");
}
else
{
document.writeln("<CENTER>Sorry, no articles matched your search criteria</CENTER>");
early_exit = 1;
}
}
// -->
</script>
<script language="JavaScript1.1"
src="http://p.moreover.com/dr/wizard_text.js"></script>
<script language="JavaScript1.1">
<!--
if (!early_exit)
{
var webfeed_heading = "Top News";
var width = "100%";
var numberofarticles = <%= intLiveNewsNum %>;
var item_spacing = "4";
var cluster_border = "0";
var heading_display = "Yes";
var time_display = "Yes";
var cell_spacing = "0";
var cell_padding = "0";
var heading_font = "<%= strDefaultFontFace %>";
var heading_font_size = "<%= strDefaultFontSize %>";
var headline_font = "<%= strDefaultFontFace %>";
var headline_font_size = "<%= strDefaultFontSize %>";
var source_font = "<%= strDefaultFontFace %>";
var source_font_size = "<%= strFooterFontSize %>";
var access_font = "<%= strDefaultFontFace %>";
var access_font_size = "<%= strFooterFontSize %>";
var time_font = "<%= strDefaultFontFace %>";
var time_font_size = "<%= strFooterFontSize %>";
var time = new Array(global_article.length);
// Print out the table containing the headlines
document.writeln("<CENTER><TABLE BORDER="+cluster_border+" WIDTH='"+width+"' CELLPADDING=2 CELLSPACING=0>");
//document.writeln("<tr><td align='center'><img src='http://i.moreover.com/images/moreover_wizard_link.gif' border='0'></td></tr>")
document.writeln("<TR><TD><CENTER><TABLE CELLPADDING="+cell_padding+" CELLSPACING="+cell_spacing+" WIDTH='100%'>");
if (heading_display == "Yes")
{
// Print a new category heading
document.writeln("<TR><TD>");
document.writeln("<FONT SIZE="+heading_font_size+" FACE="+heading_font+">");
document.writeln("<B>"+webfeed_heading+"</B></FONT></TD></TR>");
}
// Start loop for articles
for (var counter=0; counter < Math.min(numberofarticles,global_article.length); counter++)
{
if ((counter == (global_article.length - 1)) && moreover_text == 1)
{
time_display = "No";
}
// Print out the headline
document.writeln("<TR><TD><A HREF='"+global_article[counter].url+"' >");
document.writeln("<FONT SIZE="+headline_font_size+" FACE="+headline_font+" ");
document.writeln(">"+global_article[counter].headline_text+"...</FONT></A><br>");
// Print out the source
if ((counter != (global_article.length - 1)) || moreover_text != 1)
{
document.writeln("<A HREF='"+global_article[counter].document_url+"' >");
document.writeln("<FONT FACE="+source_font+" SIZE="+source_font_size+">");
document.writeln(""+global_article[counter].source+"</FONT></A> ");
}
// Print out reg/sub if appropriate
if (global_article[counter].access_status == "sub" || global_article[counter].access_status == "reg")
{
document.writeln(" <A HREF='"+global_article[counter].access_registration+"'>");
document.writeln("<FONT FACE="+access_font+" SIZE="+access_font_size);
document.writeln(">"+global_article[counter].access_status+"</FONT></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.writeln("<BR><FONT FACE="+time_font+" SIZE="+time_font_size+">");
document.writeln(""+time[counter].toString()+"</FONT>");
// document.writeln(""+time[counter].toString()+"</FONT>");
}
document.writeln("</TD></TR><TR><TD HEIGHT="+item_spacing+"></TD></TR>");
} // End of article loop
// Start of clone button code //
// NOTE: DO NOT REMOVE any of the code in this section //
document.writeln("<FORM METHOD='POST' ACTION='http://www.moreover.com/cgi-local/wizard_clone.pl' target='clone' name='moreover_clone'>");
document.writeln("<INPUT TYPE='hidden' NAME='parent_code' VALUE='555226'>");
document.writeln("<INPUT TYPE='hidden' NAME='heading_font_size' VALUE='-1'><INPUT TYPE='hidden' NAME='source_font_size' VALUE='-2'>")
document.writeln("<INPUT TYPE='hidden' NAME='cluster_width' VALUE='200'><INPUT TYPE='hidden' NAME='time_display' VALUE='Yes'>")
document.writeln("<INPUT TYPE='hidden' NAME='time_font' VALUE='Arial,Helvetica, sans-serif'><INPUT TYPE='hidden' NAME='cluster_cellspacing' VALUE='0'>")
document.writeln("<INPUT TYPE='hidden' NAME='heading_font' VALUE='Arial,Helvetica, sans-serif'><INPUT TYPE='hidden' NAME='number_of_headlines' VALUE='10'>")
document.writeln("<INPUT TYPE='hidden' NAME='cluster_bgcolor' VALUE='FFFFFF'><INPUT TYPE='hidden' NAME='search_keywords' VALUE=''>")
document.writeln("<INPUT TYPE='hidden' NAME='refine_category' VALUE=''><INPUT TYPE='hidden' NAME='time_fgcolor' VALUE='ff0000'>")
document.writeln("<INPUT TYPE='hidden' NAME='access_fgcolor' VALUE='ff0000'><INPUT TYPE='hidden' NAME='time_font_size' VALUE='-2'>")
document.writeln("<INPUT TYPE='hidden' NAME='headline_bgcolor' VALUE='FFFFFF'><INPUT TYPE='hidden' NAME='access_font_size' VALUE='-2'>")
document.writeln("<INPUT TYPE='hidden' NAME='cluster_name' VALUE='c=US%20news&o=js'><INPUT TYPE='hidden' NAME='heading_display' VALUE='Yes'>")
document.writeln("<INPUT TYPE='hidden' NAME='headline_fgcolor' VALUE='000000'><INPUT TYPE='hidden' NAME='source_font' VALUE='Arial,Helvetica, sans-serif'>")
document.writeln("<INPUT TYPE='hidden' NAME='access_font' VALUE='Arial,Helvetica, sans-serif'><INPUT TYPE='hidden' NAME='headline_font_size' VALUE='-1'>")
document.writeln("<INPUT TYPE='hidden' NAME='headline_font' VALUE='Arial,Helvetica, sans-serif'><INPUT TYPE='hidden' NAME='heading_bold' VALUE='Yes'>")
document.writeln("<INPUT TYPE='hidden' NAME='item_spacing' VALUE='5'><INPUT TYPE='hidden' NAME='wizard_brand' VALUE='moreover_new'>")
document.writeln("<INPUT TYPE='hidden' NAME='heading_bgcolor' VALUE='FFFFFF'><INPUT TYPE='hidden' NAME='cluster_cellpadding' VALUE='1'>")
document.writeln("<INPUT TYPE='hidden' NAME='heading_fgcolor' VALUE='000000'><INPUT TYPE='hidden' NAME='source_fgcolor' VALUE='ff0000'>")
document.writeln("<INPUT TYPE='hidden' NAME='cluster_border' VALUE='0'><INPUT TYPE='hidden' NAME='cluster_layout' VALUE='<br>'>")
document.writeln("</FORM>");
// End of clone button code //
document.writeln("</TABLE></CENTER></TD></TR></TABLE></CENTER>");
// ************************************************************************************
// This code is subject to the copyright and warranty restrictions detailed at
// http://www.moreover.com/wizard_copyright.html
// Copyright 2000 Moreover.com Inc. All rights reserved.
// *************************************************************************************
}
// -->
</script><!-- End Of Moreover.com News Javascript Code --><%
Response.Write " </font></td>" & vbNewLine & _
" </tr>" & vbNewLine
end if
Response.Write " </table>" & vbNewLine & _
" </td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" </table>" & vbNewLine
%>