Post Reply 
Sticky ad banners
Oct. 13, 2004, 07:24 AM
Post: #1
 
I came across another type of ad test at http://www.popuptest.com, Popup Test 5.
It is not a popup, but a sticky ad that cannot be scrolled past. Firefox popup blocking does not block it, nor do any of my Prox filters. Anybody got any idea how to stop this?
Add Thank You Quote this message in a reply
Oct. 13, 2004, 09:40 PM
Post: #2
 
It doesn't show for me.

�{=(~�::[Shea]::��~)=}�
How 'bout you sideburns, you want some of this milk?
This fading text is pretty cool, eh? I bet you wish you had some.
Add Thank You Quote this message in a reply
Oct. 13, 2004, 10:13 PM
Post: #3
 
Try this filter:

Code:
[Patterns]
Name = "Block: Sticky Ads [Kye-U]"
Active = TRUE
URL = "($TYPE(htm)|$TYPE(js))"
Limit = 20
Match = ".(innerWidth|offsetWidth|clip.width|pageYOffset|(pixel|scroll)Top|body.clientWidth|style.visibility|onscroll)"
Replace = ".Shonenscape"
Visit this user's website
Add Thank You Quote this message in a reply
Oct. 13, 2004, 10:51 PM
Post: #4
 
Kye-U Wrote:Try this filter:

Code:
[Patterns]
Name = "Block: Sticky Ads [Kye-U]"
Active = TRUE
URL = "($TYPE(htm)|$TYPE(js))"
Limit = 20
Match = ".(innerWidth|offsetWidth|clip.width|pageYOffset|(pixel|scroll)Top|body.clientWidth|style.visibility|onscroll)"
Replace = ".Shonenscape"
That works for me.
Add Thank You Quote this message in a reply
Oct. 14, 2004, 03:03 AM
Post: #5
 
Siamescat;

Tried to answer earlier today, but the Forum server was so slow that I got cancer and died before it responded. [wha]

Looking at Kye-U's code, I'm tempted to think that my first premonition is very likely correct. This sounds like a style sheet kind of thing, and the filter code pretty much confirms it (at least for me). However, I'd go for the throat, and snip the style definition out of the page code before it even gets to the browser.

Can you view the source code on your suspect page, and determine if any such thing is going on?


Oddysey

I'm no longer in the rat race - the rats won't have me!
Add Thank You Quote this message in a reply
Oct. 15, 2004, 07:28 AM
Post: #6
 
Oddysey,
Quote: This sounds like a style sheet kind of thing,
It is a javascript, not a stylesheet. It defines a procedure called StartFloat(), then uses onload to launch it. It does use 'style="position: absolute;', which I presume is how it gets the image to stay in the same place in the window (although I thought that was done by position: fixed).
I got the test number wrong. It is actually test 6, not test 5.
Add Thank You Quote this message in a reply
Oct. 19, 2004, 02:50 AM
Post: #7
 
Siamesecat;

OK, so it's a combination of the two technologies. :P Big Teeth

Position:relative means in reference to some piece of content within the page. Therefore, the final resting place will be dependent on where that referent piece is located. If it scrolls off the screen, whatever is positioned relative to it will also disappear from view.

Position:absolute means "in relation to the browser's viewing window on your monitor", and not the page's contents. Anything with this attribute will remain viewable at all times.

Position:fixed is also absolute, in most respects, but it is intended more for a smaller viewport-style device (i.e. a handheld, or possibly even a printer, etc.). In fact, on a printer, it will repeat the item on each printed page, something that position:absolute doesn't do.

<span style='color:blue'>Here's the definitive standard, as ignored by you-know-who.</span> [angry] <_< :o [lol]

If this were the primary culprit, I'd try to knock it out instead of chasing after stray bits of code. However, I'm sure you can handle the removal or modification of a piece of javascript code, right? Just my 2? worth, you understand. :P


Oddysey

I'm no longer in the rat race - the rats won't have me!
Add Thank You Quote this message in a reply
Oct. 19, 2004, 08:56 AM
Post: #8
 
Oddysey,

Nice explanation. I appreciate it. Kye-U's filter handles the sticky ad very nicely, so I'll use that.
Add Thank You Quote this message in a reply
Oct. 19, 2004, 09:08 AM
Post: #9
 
Siamesecat:

Da nada! Smile!


Oddysey

I'm no longer in the rat race - the rats won't have me!
Add Thank You Quote this message in a reply
Post Reply 


Forum Jump: