homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

Any trick to block sound in ads?

5+ Year Member

Msg#: 4407332 posted 12:38 pm on Jan 16, 2012 (gmt 0)

I work with several ad companies (including AdSense). Every now and then, one of them will display an ad which starts playing a sound (although they are not supposed to do it).

All these ads are javascript - like AdSense.

Is there anything I can do to block the sound on my website / page? A magic script? A javascript? A line in the .htaccess file?



Msg#: 4407332 posted 3:18 pm on Jan 16, 2012 (gmt 0)

I know I am going to get slapped for this... I can't resist.

Turn off the speakers.



WebmasterWorld Senior Member tedster us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 4407332 posted 4:38 pm on Jan 16, 2012 (gmt 0)

This is a tough one to research - everything I turn up is advice for the end user. There is a complaint thread on Google's own forums about the issue with Adsense, but so far the only advice there is to go to text ads only... not exactly a solution.

I learned that there is an actionscript method called stopallsounds() - but that would need to be embedded in the Flash file itself. Since the files are supplied by a third party, that's a no go - and not all sound ads are going to be Flash at any rate.

Right now, I assume that the responsibility falls on the third party - the ad network itself. It seems like there ought to be something you can do on your server, too, but I can't find it. Hope someone else can turn it up for you.

I'm moving this thread to the JavaScript forum where someone with the specific knowledge you need has a better chance of seeing your question.


WebmasterWorld Senior Member tangor us a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

Msg#: 4407332 posted 8:23 pm on Jan 16, 2012 (gmt 0)

Intrigued, (I'm not a java kind of guy) the question was interesting enough I took a look. Obviously there are ways to MAKE sound: [javascripter.net...] for example.
Which makes me think one might parse incoming script and delete/remove those sound calls... but as I said, I'm not a js guy (with one exception "frame busting") so others will have to test it out.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved