adios
12-02-2004, 05:56 AM
Hi f-o-f...
From an idea by Mike Foster (http://www.sitepoint.com/forums/showthread.php?t=138899&highlight=document.write) -
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>untitled</title>
<base href=http://www.codingforums.com/archive/index.php/"http://www.balticbasket.dk/" />
<LINK rel="stylesheet" type="text/css" href=http://www.codingforums.com/archive/index.php/"admin/utils/stylesheets/global.css">
<LINK rel="stylesheet" type="text/css" href=http://www.codingforums.com/archive/index.php/"admin/utils/stylesheets/default.css">
<style type="text/css">
.textblack {color: #0000cc; font-family: Tahoma; font-size: 8pt; line-height: 10pt}
.textblack a {color: #0000cc}
.textred {color: #990000; font-family: Tahoma; font-size: 8pt; line-height: 10pt}
.textwhite {color: #ffffff; font-family: Tahoma; font-size: 8pt; line-height: 10pt}
.textwhite a {color: #ffffff}
.textsmallblack {color: #0000cc; font-family: Tahoma; font-size: 8pt}
.textlargeblack {color: #0000cc; font-family: Tahoma; font-weight: bold; font-size: 8pt}
.subtabheader {color: #ffffff; font-family: Tahoma; font-size: 8pt; margin-right: 2px; padding: 3px}
.frame {width: 120pt border: 0px solid #cccccc; background-color: #cccccc; padding: 0px}
.alert {color: #f00;}
.time {font-weight: bolder;}
.month {font-size: larger; color: #900;}
</style>
</head>
<body>
<TABLE class=paragraph style="MARGIN: 0px; WIDTH: 219px" cellSpacing=2 cellPadding=2 border=0>
<TBODY>
<TR>
<TD vAlign=top><IMG style="WIDTH: 219px; HEIGHT: 30px" height=30 src=http://www.codingforums.com/archive/index.php/"../../../billeder/kalender.jpg" width=180 border=0>
<DIV class=paragraph>Kalenderen dækker de fleste aktiviteter i Baltic Basket. Prøv ogs?<A class=link href=http://www.codingforums.com/archive/index.php/"default.asp?pageid=198">60-dages-kalenderen</A>.
</DIV>
</TD>
</TR>
<tr>
<td>
<!-- Groupcare.dk arrangementsliste komponent (start) -->
<script type="text/javascript">
var dwrite = document.write; //save reference
document.write = function(str) //over-write
{
str = str.replace(/(udekamp)/gi, '<span class="alert">$1</span>'); //red udekamps, neat
str = str.replace(/(\b\d{1,2}:\d{1,2})/g, '<span class="time">$1</span>'); //strong dates
str = str.replace(/(December)/gi, '<span class="month">$1</span>'); //emphasize month
document.write = dwrite; //restore original
document.write(str); //use it
}
</script>
<SCRIPT src=http://www.codingforums.com/archive/index.php/"http://www.groupcare.dk/da/comp/events.asp?groupid=486073&days=7"></SCRIPT>
</td>
</tr>
</TBODY>
</TABLE>
</body>
</html>
Hijacks the document.write method long enough to grab the downloaded string, then marks it up and spits it out.
Wish I'd thought of that.... :(
From an idea by Mike Foster (http://www.sitepoint.com/forums/showthread.php?t=138899&highlight=document.write) -
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>untitled</title>
<base href=http://www.codingforums.com/archive/index.php/"http://www.balticbasket.dk/" />
<LINK rel="stylesheet" type="text/css" href=http://www.codingforums.com/archive/index.php/"admin/utils/stylesheets/global.css">
<LINK rel="stylesheet" type="text/css" href=http://www.codingforums.com/archive/index.php/"admin/utils/stylesheets/default.css">
<style type="text/css">
.textblack {color: #0000cc; font-family: Tahoma; font-size: 8pt; line-height: 10pt}
.textblack a {color: #0000cc}
.textred {color: #990000; font-family: Tahoma; font-size: 8pt; line-height: 10pt}
.textwhite {color: #ffffff; font-family: Tahoma; font-size: 8pt; line-height: 10pt}
.textwhite a {color: #ffffff}
.textsmallblack {color: #0000cc; font-family: Tahoma; font-size: 8pt}
.textlargeblack {color: #0000cc; font-family: Tahoma; font-weight: bold; font-size: 8pt}
.subtabheader {color: #ffffff; font-family: Tahoma; font-size: 8pt; margin-right: 2px; padding: 3px}
.frame {width: 120pt border: 0px solid #cccccc; background-color: #cccccc; padding: 0px}
.alert {color: #f00;}
.time {font-weight: bolder;}
.month {font-size: larger; color: #900;}
</style>
</head>
<body>
<TABLE class=paragraph style="MARGIN: 0px; WIDTH: 219px" cellSpacing=2 cellPadding=2 border=0>
<TBODY>
<TR>
<TD vAlign=top><IMG style="WIDTH: 219px; HEIGHT: 30px" height=30 src=http://www.codingforums.com/archive/index.php/"../../../billeder/kalender.jpg" width=180 border=0>
<DIV class=paragraph>Kalenderen dækker de fleste aktiviteter i Baltic Basket. Prøv ogs?<A class=link href=http://www.codingforums.com/archive/index.php/"default.asp?pageid=198">60-dages-kalenderen</A>.
</DIV>
</TD>
</TR>
<tr>
<td>
<!-- Groupcare.dk arrangementsliste komponent (start) -->
<script type="text/javascript">
var dwrite = document.write; //save reference
document.write = function(str) //over-write
{
str = str.replace(/(udekamp)/gi, '<span class="alert">$1</span>'); //red udekamps, neat
str = str.replace(/(\b\d{1,2}:\d{1,2})/g, '<span class="time">$1</span>'); //strong dates
str = str.replace(/(December)/gi, '<span class="month">$1</span>'); //emphasize month
document.write = dwrite; //restore original
document.write(str); //use it
}
</script>
<SCRIPT src=http://www.codingforums.com/archive/index.php/"http://www.groupcare.dk/da/comp/events.asp?groupid=486073&days=7"></SCRIPT>
</td>
</tr>
</TBODY>
</TABLE>
</body>
</html>
Hijacks the document.write method long enough to grab the downloaded string, then marks it up and spits it out.
Wish I'd thought of that.... :(
