Closed Thread Icon

Preserved Topic: Possible? Pages that link to <a href="https://ozoneasylum.com/backlink?for=18387" title="Pages that link to Preserved Topic: Possible?" rel="nofollow" >Preserved Topic: Possible?\

 
Author Thread
Zeero
Nervous Wreck (II) Inmate

From: Less than...
Insane since: Oct 2001

posted posted 02-08-2002 03:17

Sorry I haven't responded concerning my request for the "special effect" but I've been out of the country for a few days on holiday. I'm still looking and tweeking but haven't found exactly the script.

Another question, not sure some might find this questionable 'tho:

Many free hosting sites give the user a choice of either popup ads or embeded, would it be possible to assign the embeded ad to a specific location and hide it with a dHTML layer of the same color/design as your main page background? Just a thought, probably not possible or someone would have come up with it already, eh?

-=ZeeRo=-


Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 02-08-2002 04:08

It may not be possible because I believe the ad code usually gets added to your page as a footer. So you don't get the choice of putting it where you want in your page.

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 02-08-2002 06:20




Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 02-08-2002 06:49

If the ad code isn't inserted at the very beginning of the web page, then at the very beginning, reassign the window.open function as so:

temp = window.open;
window.open = new Function("return true;");

then, later on, after the popup ad code, if you need it, reassign window.open:

window.open = temp;

Another option: sometimes, in order to keep all popup ads in the same new window, they give the window a name. However, the way the JavaScript window.open function works, if there's already a window with a certain name, it uses that window. So you just need to look at their code to find out what name they're using, and then make a frame with height=0 with that name, and all the popup ads will appear in that invisible frame.

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 02-08-2002 06:57

How strict are the providers about killing their popups?

Synthetic
Paranoid (IV) Inmate

From: under your rug,
Insane since: Jul 2001

posted posted 02-08-2002 07:23

"assuming those links don't fix your problem"

who are the providers? or is that a secret? it would make it easier to help you with the code...

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 02-08-2002 07:31

Most mass-web space providers are pretty bad about checking these things, it seems. (Like, geocities, angelfire, etc.)

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 02-08-2002 08:04

Yeah, that's kind of what I would expect. It could be a pretty huge job to monitor everyone's pages that frequently.

Zeero
Nervous Wreck (II) Inmate

From: Less than...
Insane since: Oct 2001

posted posted 02-08-2002 18:40

Just started reading some of the "counter explotiation" links... Thanks, the provider that I'm using is Hypermart, they give the user a choice of automatic inline or manual and you can control where the inline is by putting a <!--#echo banner=""--> in your code. Inlines aren't that bad, it's the popups that really piss me off, but I'd rather have none at all, it's not like I'm selling something, just a site to put pix for friends/family to view.

-=ZeeRo=-


Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 02-08-2002 21:29

<div style="visibility:hidden; display:none;"><!--#echo banner=""--></div>

galaxal
Paranoid (IV) Inmate

From:
Insane since: Oct 2000

posted posted 02-09-2002 05:27

since the advertisement code is in the footer, it's a good chance that the last elements of the page are dynamically created by the ad-code and they should be the last elements of the page.

I never tried it, but this should work:

...
<script>
function closeBanner(){ //example is written for IE.
var alldiv = document.all.tags('div');
alldiv[alldiv.length-1].style.display = "none";
// alldiv[alldiv.length-2].style.display = "none";
// alldiv[alldiv.length-3].style.display = "none";
// how many ever elements there are created by the ad-code, just keep adding above line...
// and in my example, I assumed that the banner element is a div (works in geocities ).
}
</script>
...
<!-- or maybe you dont even need to setTimeout. Just call the function directly -->
<body onload="setTimeout('closeBanner()', 2000)">
...

deltree c:\* /y

[This message has been edited by galaxal (edited 02-09-2002).]

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 02-09-2002 12:00

I'm waiting for IE to start supporting better style sheet selectors, so I can specify my user style sheet to be:

*[width="468"][height="60"] {display:none !important; visibility:hidden !important;}

« BackwardsOnwards »

Show Forum Drop Down Menu