This is a discussion on ICAP + changing content within the Squid Users forums, part of the Web Server and Related Forums category; Hi All! First I want to say that I was search all google :) I want to do something like that: ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi All!
First I want to say that I was search all google :) I want to do something like that: My PC Server will share Internet threw squid with wifi users for free, but I want to send them all WWW sites with my Javascript code on the begging, no matter which site want they to see... Next step its that i want to do frames for every site, for example: client has request for http://example.com Original page: Code:
<script type="text/javascript">
document.write('Hello World!!!<BR>')
</script>
<HTML>
<BODY BACKGROUND=#CCDD00>
<A HREF="http://google.com">GOOGLE THE BEST!!!</A>
</BODY>
</HTML>
add this source to my javascript site then send it to client... Changed page: Code:
<script language="JavaScript"><!--
function loaded() {
frames[1].document.open();
frames[1].document.write('\074script\040type\075\042text
\057javascript\042\076\ndocument\056write\050\047Hello\040World
\041\041\041\074BR\076\047\051\n\074\057script\076\n\n\074HTML\076\n
\074BODY\040BACKGROUND\075\043CCDD00\076\n\074A\040HREF\075\042http
\072\057\057google\056com\042\076GOOGLE\040THE\040BEST
\041\041\041\074\057A\076\n\074\057BODY\076\n\074\057HTML\076');
frames[1].document.close();
}
document.write('<frameset rows="22,*" onLoad="loaded()">');
document.write('<frame src="banner.htm">');
document.write('<frame src="about:blank">');
document.write('<\/frameset>');
//--></script>
Any ideas how to do this? It's very important to me... with regards Tom |
![]() |
| Thread Tools | |
| Display Modes | |
|
|