Webmaster Blog

Webmaster Resources

⇒Category: Home » General »

Adtoll Peel Adverts: Hide if Flash is not installed RSS

Add to my favourites!

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>
delicious stumbleupon

Subscribe to our feed and get free regular updates via mail:

Enter your email address:    

Similar Posts:

Comments



Recent Posts