function OffOn(xx,yy) {                                        var theSpan1 = xx;                                        var theSpan2 = yy;                                                                                if (theSpan1.style.display == "none") {                                          theSpan1.style.display = "";                                        }                                        else if (theSpan1.style.display == "") {                                          theSpan1.style.display = "none";                                        }                                        else {                                          theSpan1.style.display = "none";                                        }                                                                                if (theSpan2.style.display == "none") {                                          theSpan2.style.display = "";                                        }                                        else if (theSpan2.style.display == "") {                                          theSpan2.style.display = "none";                                        }                                        else {                                          theSpan2.style.display = "none";                                        }                                        }                                                                                      setTimeout("OffOn(spA,sp0);",1000);          setTimeout("OffOn(sp0,sp1);",2500);        setTimeout("OffOn(sp1,sp2);",4000);       setTimeout("OffOn(sp2,sp3);",6500);             " />

Jump to content


- - - - -

Having Fun With Adsense


  • Please log in to reply
4 replies to this topic

#1 glen

glen

    Administrator

  • Admin
  • PipPipPipPip
  • 888 posts

Posted 14 September 2005 - 08:06 AM

I found the following code and it just seemed too cool to not repeat.....Its probably a breach of the TOS by drawing an excessive amount of attention to the ads. However if we toned it down sufficiently then I think maybe it could be OK. :) Cut and paste it into a html page and see what happens! :)

Quote







THIS IS A VERY BOLD


                                     
   
   
                                     
                                     
<script language="javascript">                                       
                                       
function OffOn(xx,yy) {                                       
var theSpan1 = xx;                                       
var theSpan2 = yy;                                       
                                       
if (theSpan1.style.display == "none") {                                       
  theSpan1.style.display = "";                                       
}                                       
else if (theSpan1.style.display == "") {                                       
  theSpan1.style.display = "none";                                       
}                                       
else {                                       
  theSpan1.style.display = "none";                                       
}                                       
                                       
if (theSpan2.style.display == "none") {                                       
  theSpan2.style.display = "";                                       
}                                       
else if (theSpan2.style.display == "") {                                       
  theSpan2.style.display = "none";                                       
}                                       
else {                                       
  theSpan2.style.display = "none";                                       
}                                       
}                                                                               
      setTimeout("OffOn(spA,sp0);",1000);   
      setTimeout("OffOn(sp0,sp1);",2500); 
      setTimeout("OffOn(sp1,sp2);",4000);
      setTimeout("OffOn(sp2,sp3);",6500);   
       
 


#2 Guest_Wally_*

Guest_Wally_*
  • Guests

Posted 14 September 2005 - 03:58 PM

Hello Glen!!
I tried this and implementet it into my Funsite, but it was not working with firefox.
But thank you, good idea!
If you have a code also working for both browsers, it would be great. If you have give it to us please. But this is maybe difficult.
Thx
lg Wally

#3 glen

glen

    Administrator

  • Admin
  • PipPipPipPip
  • 888 posts

Posted 14 September 2005 - 10:18 PM

hi wally, i just tested the code in firefox 1.0.6 and it seems to work ok. which version of firefox are u using? :)

i need to find some way of toning this idea down a bit so it is not so LOUD and so it will not be classed as drawing "undue attention" to the ads.....i think the whole concept has great potential! :) also it is helpful because sometimes the ads take a little while to display and i think this will really help to fill the void while the adsense ad is loading :)

cheers, glen

#4 Guest_Wally_*

Guest_Wally_*
  • Guests

Posted 17 September 2005 - 06:13 PM

glen, on Sep 15 2005, 01:18 PM, said:

hi wally, i just tested the code in firefox 1.0.6 and it seems to work ok. which version of firefox are u using? :)

i need to find some way of toning this idea down a bit so it is not so LOUD and so it will not be classed as drawing "undue attention" to the ads.....i think the whole concept has great potential! :) also it is helpful because sometimes the ads take a little while to display and i think this will really help to fill the void while the adsense ad is loading :)

cheers, glen

<{POST_SNAPBACK}>


Hi Glen,

it worked? Iam using Firefox 1.06 also. It stands still at the first site/sentence and will not show 2., 3. and the adsense also not. Absolut not showing and stand still in Firefox 1.06, I tried it really some hours on my website. What can I do? Have you got an idea?

Yes yes you are right I think. It is good!! And looks good. I wanted to try this, but dont work in Firefox. In Internet Explorer it worked absolutly very good! But much people and I using Firefox. Have you a Idea?

Cheers, Wally
(Greetings from the other site of the world, tomorrow is election here.) :)

#5 glen

glen

    Administrator

  • Admin
  • PipPipPipPip
  • 888 posts

Posted 18 September 2005 - 08:13 AM

hi wally,

what type of page are you trying to paste the code into? is it just a html page or is it into a template for a blog, forum etc?

i tried to a modified version of this code in my forum and it gave me a lot of problems and the whole forum stopped working!

but if you just put it in a plain html page it should work ok....give it a go and let me know what happens! :)

cheers, glen

happy election! :P did they decide who won yet?




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users