![]() | |
| |||||||
| Home | Register | Projects | Blogs | FAQ | Calendar | Search | Today's Posts | Mark Forums Read | Free Directory | Free DNSReport | Tags |
| Notices |
| News Forum announcements |
Javascript Content Parser v2.0This is a discussion on "Javascript Content Parser v2.0" within the News part of the Announcements section; milw0rm javascript addon v2.0 changes: -------------------------------------- -fixed: switch to 1 or 2 column mode -added: column1 now displays the published date -added: feature to highlight newly added exploits as on milw0rm.com website -added: the very last milw0rm javascript links ... |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| ||||
| milw0rm javascript addon v2.0 changes: -------------------------------------- -fixed: switch to 1 or 2 column mode -added: column1 now displays the published date -added: feature to highlight newly added exploits as on milw0rm.com website -added: the very last milw0rm javascript links are located now at http://milw0rm.com/js/2.0/remote.php|local.php|etc... -added: configurable background colour header -added: configurable table horizontal alignement -added: configurable table border -added: configurable table width -added: configurable table cellspacing -added: configurable table cellpadding -added: configurable table background colour -added: configurable table background picture -added: configurable table horizontal space -added: configurable table vertical space -added: configurable table height -added: configurable table background picture -added: configurable header horizontal alignement -added: configurable header vertical alignement -added: configurable header background colour -added: configurable header text colour -added: configurable header text theme -added: configurable header text size -added: configurable column1 horizontal alignement -added: configurable column1 vertical alignement -added: configurable column1 background colour -added: configurable column1 text colour -added: configurable column1 text theme -added: configurable column1 text size -added: configurable column2 horizontal alignement -added: configurable column2 vertical alignement -added: configurable column2 background colour -added: configurable column2 text colour -added: configurable column2 text theme -added: configurable column2 text size -added: configurable column2 width Thanks to str0ke for milw0rm for working out to setup all this with me. Keep this javascript updated by visiting its official thread on heapoverflow.com or on milw0rm.com as soon as str0ke distribute it from his website. Below is the code or I post it as attachement if you prefer. Code:
<script language="JavaScript1.1"
src="http://milw0rm.com/js/2.0/remote.php"></script>
<script type="text/javascript" language="JavaScript1.1">
<!--
// Layout settings
var table_border = '0' // table border size (default:0)
var table_width = '100%' // table width, in % or px (default:100%)
var table_cspacing = '1' // table cellspacing (default:1)
var table_cpadding = '0' // table cellpadding (default:0)
var table_bgcolour = '#000000' // table background colour (default:#000000)
var table_bdcolour = '#000000' // table border colour (default:#000000)
var table_bgpic = '' // table background picture (default:none)
var table_align = 'left' // table horizontal alignement, LEFT | RIGHT (default:left)
var table_hspace = '0' // table horizontal space (default:0)
var table_vspace = '0' // table vertical space (default:0)
var table_height = '0' // table height (default:0)
var header_align = 'left' // header horizontal alignement, LEFT | CENTER | MIDDLE | RIGHT (default:left)
var header_valign = '' // header vertical alignement, TOP | MIDDLE | CENTER | BOTTOM | BASELINE (default:none)
var header_height = '0' // header height (default:0)
var header_bgcolour = '#000000' // header background colour (default:#000000)
var header_tcolour = '#FFFFFF' // header text colour (default:#FFFFFF)
var header_ttheme = 'Eras Medium ITC' // header text theme (default:Eras Medium ITC)
var header_tsize = '0' // header text size (default:0)
var header_title1 = 'remote exploits' // header plural title
var header_title2 = 'remote exploit' // header singular title
var column1_align = 'center' // column1 alignement, LEFT | CENTER | MIDDLE | RIGHT (default:center)
var column1_valign = '' // column1 vertical alignement, TOP | MIDDLE | CENTER | BOTTOM | BASELINE (default:none)
var column1_height = '0' // column1 height (default:0)
var column1_bgcolour = '#918484' // column1 background colour (default:#918484)
var column1_tcolour = '#000000' // column1 text colour (default:#000000)
var column1_ttheme = 'Arial Narrow' // column1 text theme (default:Arial Narrow)
var column1_tsize = '0' // column1 text size (default:0)
var column2_width = '90%' // column2 width, in % or px (default:90%)
var column2_align = 'left' // column2 horizontal alignement, LEFT | CENTER | MIDDLE | RIGHT (default:left)
var column2_valign = '' // column2 vertical alignement, TOP | MIDDLE | CENTER | BOTTOM | BASELINE (default:none)
var column2_height = '0' // column2 height (default:0)
var column2_bgcolour = '#004000' // column2 background colour (default:#004000)
var column2_tcolour = '#00C000' // column2 text colour (default:#00C000)
var column2_hcolour = '#D6EF39' // column2 highlight color, to highlight newly added milw0rm exploits (default:#D6EF39)
var column2_ttheme = 'Arial Narrow' // column2 header text theme (default:Arial Narrow)
var column2_tsize = '0' // column2 text size (default:0)
// Functional settings
var count_column = '2' // column count, 1 or 2 (default:2)
var count = 10 // news count, 1 to 10 (default:10)
var adjust_length = 'yes' // news length correction 'yes' or 'no' (default:yes)
var adjust_var = 75 // maximum characters count after what the correction is made (default:75)
var target = '_blank' // open the link in current window or open new one '_self' or '_blank' (default:_blank)
// **********************no modifications required after*******************************
var b = '...';
var htmltxt = "";
var base_colour = column2_tcolour;
var font_header = '<font size="' + header_tsize + '" face="' + header_ttheme + '" color="' + header_tcolour + '">';
var font_column1 = '<font size="' + column1_tsize + '" face="' + column1_ttheme + '" color="' + column1_tcolour + '">';
var font_column2 = '<font size="' + column2_tsize + '" face="' + column2_ttheme + '" color="' + column2_tcolour + '">';
var tmp_count = 0;
var milalerts
if (count_column == "1") { colspan = 1; }
else { colspan = 2; }
if (count > 0)
{
if (count > 10) {count = 10}
htmltxt +=
'\n<table align="' + table_align +
'" width="' + table_width +
'" cellspacing="' + table_cspacing +
'" cellpadding="' + table_cpadding +
'" border="' + table_border +
'" bordercolor="' + table_bdcolour +
'" bgcolor="' + table_bgcolour +
'" background="' + table_bgpic +
'" hspace="' + table_hspace +
'" vspace="' + table_vspace +
'" height="' + table_height +
'">';
if (count == 1)
{
htmltxt +=
'\n<tr><td align="' + header_align +
'" valign="' + header_valign +
'" height="' + header_height +
'" colspan="' + colspan +
'" bgcolor="' + header_bgcolour +
'">' + font_header +
'Latest ' + header_title2 +
'</font></td></tr>';
}
else
{
htmltxt +=
'\n<tr><td align="' + header_align +
'" valign="' + header_valign +
'" height="' + header_height +
'" colspan="' + colspan +
'" bgcolor="' + header_bgcolour +
'">' + font_header +
'Latest ' + count +
' ' + header_title1 +
'</font></td></tr>';
}
if (milalerts != null)
{
for (var i=0; i<milalerts.length; i+=4)
{
tmp_count++;
if (tmp_count > count)
{
break;
}
else
{
if (count_column == "1")
{
if (adjust_length == "no")
{
if (milalerts[i+3]=='1'){ column1_tcolour = column2_hcolour;font_column1 = '<font size="' + column1_tsize + '" face="' + column1_ttheme + '" color="' + column1_tcolour + '">'; }
htmltxt +=
'\n<tr><td align="' + column1_align +
'" height="' + column1_height +
'" valign="' + column1_valign +
'" bgcolor="' + column1_bgcolour +
'"><a href="' + milalerts[i+2] +
'" target="' + target +
'"><nobr>' + font_column1 + milalerts[i+1] +
'</nobr></font></a></font></td></tr>';
column1_tcolour = base_colour;
font_column1 = '<font size="' + column1_tsize + '" face="' + column1_ttheme + '" color="' + column1_tcolour + '">';
}
else
{
var a = milalerts[i+1];
if (a.length > adjust_var)
{
if (milalerts[i+3]=='1'){ column1_tcolour = column2_hcolour;font_column1 = '<font size="' + column1_tsize + '" face="' + column1_ttheme + '" color="' + column1_tcolour + '">'; }
htmltxt +=
'\n<tr><td align="' + column1_align +
'" valign="' + column1_valign +
'" height="' + column1_height +
'" bgcolor="' + column1_bgcolour +
'"><a href="' + milalerts[i+2] +
'" target="' + target +
'"><nobr>' + font_column1 + a.substr(0,adjust_var) + b +
'</nobr></font></a></font></td></tr>';
column1_tcolour = base_colour;
font_column1 = '<font size="' + column1_tsize + '" face="' + column1_ttheme + '" color="' + column1_tcolour + '">';
}
else
{
if (milalerts[i+3]=='1'){ column1_tcolour = column2_hcolour;font_column1 = '<font size="' + column1_tsize + '" face="' + column1_ttheme + '" color="' + column1_tcolour + '">'; }
htmltxt +=
'\n<tr><td align="' + column1_align +
'" valign="' + column1_valign +
'" height="' + column1_height +
'" bgcolor="' + column1_bgcolour +
'"><a href="' + milalerts[i+2] +
'" target="' + target +
'"><nobr>' + font_column1 + a +
'</nobr></font></a></font></td></tr>';
column1_tcolour = base_colour;
font_column1 = '<font size="' + column1_tsize + '" face="' + column1_ttheme + '" color="' + column1_tcolour + '">';
}
}
}
else
{
if (adjust_length == "no")
{
if (milalerts[i+3]=='1'){ column2_tcolour = column2_hcolour;font_column2 = '<font size="' + column2_tsize + '" face="' + column2_ttheme + '" color="' + column2_tcolour + '">'; }
htmltxt +=
'\n<tr><td align="' + column1_align +
'" valign="' + column1_valign +
'" height="' + column1_height +
'" bgcolor="' + column1_bgcolour +
'">' + font_column1 +
'<nobr>' + milalerts[i+0] +
'</nobr></font></td><td align="' + column2_align +
'" valign="' + column2_valign +
'" height="' + column2_height +
'" width="' + column2_width +
'" bgcolor="' + column2_bgcolour +
'"><a href="' + milalerts[i+2] +
'" target="' + target +
'"><nobr>' + font_column2 + milalerts[i+1] +
'</nobr></font></a></font></td></tr>';
column2_tcolour = base_colour;
font_column2 = '<font size="' + column2_tsize + '" face="' + column2_ttheme + '" color="' + column2_tcolour + '">';
}
else
{
var a = milalerts[i+1];
if (a.length > adjust_var)
{
if (milalerts[i+3]=='1'){ column2_tcolour = column2_hcolour;font_column2 = '<font size="' + column2_tsize + '" face="' + column2_ttheme + '" color="' + column2_tcolour + '">'; }
htmltxt +=
'\n<tr><td align="' + column1_align +
'" valign="' + column1_valign +
'" height="' + column1_height +
'" bgcolor="' + column1_bgcolour +
'">' + font_column1 +
'<nobr>' + milalerts[i+0] +
'</nobr></font></td><td align="' + column2_align +
'" valign="' + column2_valign +
'" height="' + column2_height +
'" width="' + column2_width +
'" bgcolor="' + column2_bgcolour +
'"><a href="' + milalerts[i+2] +
'" target="' + target +
'"><nobr>' + font_column2 + a.substr(0,adjust_var) + b +
'</nobr></font></a></font></td></tr>';
column2_tcolour = base_colour;
font_column2 = '<font size="' + column2_tsize + '" face="' + column2_ttheme + '" color="' + column2_tcolour + '">';
}
else
{
if (milalerts[i+3]=='1'){ column2_tcolour = column2_hcolour;font_column2 = '<font size="' + column2_tsize + '" face="' + column2_ttheme + '" color="' + column2_tcolour + '">'; }
htmltxt +=
'\n<tr><td align="' + column1_align +
'" valign="' + column1_valign +
'" height="' + column1_height +
'" bgcolor="' + column1_bgcolour +
'">' + font_column1 +
'<nobr>' + milalerts[i+0] +
'</nobr></font></td><td align="' + column2_align +
'" valign="' + column2_valign +
'" height="' + column2_height +
'" width="' + column2_width +
'" bgcolor="' + column2_bgcolour +
'"><a href="' + milalerts[i+2] +
'" target="' + target +
'"><nobr>' + font_column2 + a +
'</nobr></font></a></font></td></tr>';
column2_tcolour = base_colour;
font_column2 = '<font size="' + column2_tsize + '" face="' + column2_ttheme + '" color="' + column2_tcolour + '">';
}
}
}
}
}
}
else
{
if (count_column == "1")
{
htmltxt +=
'\n<tr><td align="' + column1_align +
'" valign="' + column1_valign +
'" height="' + column1_height +
'" bgcolor="' + column1_bgcolour +
'">' + font_column1 +
'<nobr>' + 'Source temporarily offline' +
'</nobr></font></font></td></tr>';
}
else
{
htmltxt +=
'\n<tr><td align="' + column1_align +
'" valign="' + column1_valign +
'" height="' + column1_height +
'" width="' + column2_width +
'" bgcolor="' + column1_bgcolour +
'">' + font_column1 +
'<nobr>' + '1' +
'</nobr></td><td align="' + column2_align +
'" valign="' + column2_valign +
'" height="' + column2_height +
'" bgcolor="' + column2_bgcolour +
'">' + font_column2 +
'<nobr>' + 'Source temporarily offline' +
'</nobr></font></font></td></tr>';
}
}
}
else
{
document.write
("=== MILW0RM info feed error: Specify value of count > 0 ===");
}
htmltxt += '\n</table>';
document.write(htmltxt);
//-->
</script> ![]() |
| Sponsor | ||
| ||
| |
![]() |
| | |
| content, javascript, parser, v20 | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| milw0rm Javascript Content Parser v3.0 | class101 | News | 1 | 30-10-07 18:45 |