Click to See Complete Forum and Search --> : Erase all code upto a certain point in html file.


DJsAC
09-21-2003, 12:58 PM
Hello.
I want to know if it is possible to remove ALL the code (starting at the top) of a html document upto a certain point in the document.

for example:

blablabla
blablabla
blablabla
$starter
<script>

cls( 0 to $starter)

Does anyone have anything that can do this?
The part of the code gets implanted bij the server and I want to remove it (if possible)
another option, change the code upto $starter to comments.

thanks!
greetz
DJsAC

Nevermore
09-21-2003, 01:53 PM
You could only do it by opening the file in another file, and then the other file would have the code implanted too...

DJsAC
09-21-2003, 02:45 PM
is there a possibility of deleting the first part with a php command which deletes the specific string?

For example, something which works like this?


<?php $trash = <script language="javascript">

if(window == window.top) {
var address=window.location;
var s='<html><head><title>'+'</title></head>'+
'<frameset cols="*,140" frameborder="0" border="0" framespacing="0" onload="return true;" onunload="return true;">'+
'<frame src="'+address+'?" name="memberPage" marginwidth="0" marginheight="0" scrolling="auto" noresize>'+
'<frame src="http://ads.tripod.lycos.nl/ad/google/frame.php?_url='+escape(address)+'" name="LycosAdFrame" marginwidth="0" marginheight="0" scrolling="auto" noresize>'+
'</frameset>'+
'</html>';

document.write(s);
}
</script>

and then
search filename.html for $trash
if found $trash = true then
$trash = "0"

<javascript write(normal site)>

ALL this Without reloading the page?
or would you still have to refresh and endup in a loop?
plz help.
greetz
Dj's A.C.

pyro
09-21-2003, 05:45 PM
Looks like you are trying to get rid of an ad that your host adds to the page... If so, you might as well forget about it. I'm sure you had to sign something saying that these ads will be placed on your site. Removing them will probably just result in the loss of your account.

DJsAC
09-22-2003, 12:18 AM
I'm not trying to remove all the advertisements, just the ones on certain pages.
chk http://members.lycos.nl/acmusicserver/reclame.jpg for a screenshot of a particularly "bad load"

I did indeed sign for "one" advertisement on my webpage, i did not however sign for 6.

I wish to remove all the adversitements except the places where they are acceptable, I know I leaving at least 1 is mandatory. I accepted the advertisements when is signed on to lycos 2 years ago, then they had only a small disappearing ad along the top of the page. But as of lately they have added an ad frame, which loads itself anywhere, obscuring, replacing and causing my site to crash. I have no problems with the 1 frame along the side, but wish to disable the rest so that my site is at least visible.
lycos uses a random frameset inserter, but usually there are 4-5 frames on the page. (depends on the time of day and number of hits it seems)

Please help me clear this up, I've mailed lycos about it and they have decided not to reply at all.

does anyone have anycode that could help?