Filed Under: General

Adtoll Peel Adverts: Hide if Flash is not installed

19 July 2008 No Comment

Well I wanted to try out Adtoll Peel Ads, that are those corner ads that are pretty neat.
As soon as I implemented it I noticed that it was asking me to install the Flash Player, this might be pretty annoying if you don’t want your visitors to install flash just for an advert.

 

Here is the solution, you can simply add before the tag.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 
<SCRIPT LANGUAGE="JavaScript">
<!-- use this comment tag to hide the enclosed code from old browsers.
 
if ((navigator.appName == "Microsoft Internet Explorer" &&
    navigator.appVersion.indexOf("Mac") == -1 
     &&   navigator.appVersion.indexOf("3.1") == -1) ||
 
    (navigator.plugins && navigator.plugins["Shockwave Flash"])
                       || navigator.plugins["Shockwave Flash 2.0"]){
 
</SCRIPT>
 
 
<!-- START ADTOLL.COM CODE V1.0 -->
<SCRIPT src="XXXXX YOUR ADTOLL URL XXXXX" type="text/javascript"></SCRIPT>
<!-- END ADTOLL.COM CODE V1.0 -->
 
 
<SCRIPT LANGUAGE="JavaScript">	
}
// Close the comment tag. -->
</SCRIPT>






Like our posts? Then subscribe via Mail:

Email:  

Similar Posts:

Socialize:

delicious stumbleupon

Leave your response!

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="">

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.com.