|
Flashing Text Replacing Your Google Ads / In Your Shoutout Box |
|
|
Author |
Message |
shirow
HCG Member
> : I love HCG!
Posts : 15
Location : INDONESIA
Reg-Date : 2008-11-09
Forum Warning :
Contribution :
|
Subject: Flashing Text Replacing Your Google Ads / In Your Shoutout Box Sun Nov 09, 2008 3:38 pm |
|
|
Flashing Text Replacing Your Google Ads credit:andha - Quote :
- var fcontent=new Array();
begintag='<div style="font: normal 12px Century Gothic; padding: 1px;">'; fcontent[0]="TEXT HERE"; fcontent[1]="TEXT HERE"; fcontent[2]="TEXT HERE"; fcontent[3]="TEXT HERE"; closetag='</div>';
//No need to edit below this line//
var delay = 1000; var maxsteps=20; var stepdelay=20;
var startcolor= new Array(255,255,255); var endcolor=new Array(0,0,0);
var fwidth='150px'; var fheight='300px';
var fadelinks=1;
var ie4=document.all&&!document.getElementById; var DOM2=document.getElementById; var faderdelay=0; var index=0;
function changecontent(){ if (index>=fcontent.length) index=0 if (DOM2){ document.getElementById("14").style.color="rgb("+startcolor[0]+", "+startcolor[1]+", "+startcolor[2]+")" document.getElementById("14").innerHTML=begintag+fcontent[index]+closetag if (fadelinks) linkcolorchange(1); colorfade(1, 15); } else if (ie4) document.all.fscroller.innerHTML=begintag+fcontent[index]+closetag; index++ }
function linkcolorchange(step){ var obj=document.getElementById("14"); if (obj.length>0){ for (i=0;i<obj.length;i++) obj[i].style.color=getstepcolor(step); } }
var fadecounter; function colorfade(step) { if(step<=maxsteps) { document.getElementById("14").style.color=getstepcolor(step); if (fadelinks) linkcolorchange(step); step++; fadecounter=setTimeout("colorfade("+step+")",stepdelay); }else{ clearTimeout(fadecounter); document.getElementById("14").style.color="rgb("+endcolor[0]+", "+endcolor[1]+", "+endcolor[2]+")"; setTimeout("changecontent()", delay); } }
function getstepcolor(step) { var diff var newcolor=new Array(3); for(var i=0;i<3;i++) { diff = (startcolor[i]-endcolor[i]); if(diff > 0) { newcolor[i] = startcolor[i]-(Math.round((diff/maxsteps))*step); } else { newcolor[i] = startcolor[i]+(Math.round((Math.abs(diff)/maxsteps))*step); } } return ("rgb(" + newcolor[0] + ", " + newcolor[1] + ", " + newcolor[2] + ")"); }
if (ie4||DOM2) document.write('<div id="14" style="border:0px solid black;width:'+fwidth+';height:'+fheight+'"></div>');
if (window.addEventListener) window.addEventListener("load", changecontent, false) else if (window.attachEvent) window.attachEvent("onload", changecontent) else if (document.getElementById) window.onload=changecontent --------------------------------------------------- Flashing Text In Your Shoutout (thx to dracoknight09 for the idea) - Quote :
- var fcontent=new Array();
begintag='<div style="font: normal 12px Century Gothic; padding: 1px;">'; fcontent[0]="TEXT HERE"; fcontent[1]="TEXT HERE"; fcontent[2]="TEXT HERE"; fcontent[3]="TEXT HERE"; closetag='</div>';
//No need to edit below this line//
var delay = 1000; var maxsteps=20; var stepdelay=20;
var startcolor= new Array(255,255,255); var endcolor=new Array(0,0,0);
var fwidth='150px'; var fheight='300px';
var fadelinks=1;
var ie4=document.all&&!document.getElementById; var DOM2=document.getElementById; var faderdelay=0; var index=0;
function changecontent(){ if (index>=fcontent.length) index=0 if (DOM2){ document.getElementById("cpShoutoutBox").style.color="rgb("+startcolor[0]+", "+startcolor[1]+", "+startcolor[2]+")" document.getElementById("cpShoutoutBox").innerHTML=begintag+fcontent[index]+closetag if (fadelinks) linkcolorchange(1); colorfade(1, 15); } else if (ie4) document.all.fscroller.innerHTML=begintag+fcontent[index]+closetag; index++ }
function linkcolorchange(step){ var obj=document.getElementById("cpShoutoutBox"); if (obj.length>0){ for (i=0;i<obj.length;i++) obj[i].style.color=getstepcolor(step); } }
var fadecounter; function colorfade(step) { if(step<=maxsteps) { document.getElementById("cpShoutoutBox").style.color=getstepcolor(step); if (fadelinks) linkcolorchange(step); step++; fadecounter=setTimeout("colorfade("+step+")",stepdelay); }else{ clearTimeout(fadecounter); document.getElementById("cpShoutoutBox").style.color="rgb("+endcolor[0]+", "+endcolor[1]+", "+endcolor[2]+")"; setTimeout("changecontent()", delay); } }
function getstepcolor(step) { var diff var newcolor=new Array(3); for(var i=0;i<3;i++) { diff = (startcolor[i]-endcolor[i]); if(diff > 0) { newcolor[i] = startcolor[i]-(Math.round((diff/maxsteps))*step); } else { newcolor[i] = startcolor[i]+(Math.round((Math.abs(diff)/maxsteps))*step); } } return ("rgb(" + newcolor[0] + ", " + newcolor[1] + ", " + newcolor[2] + ")"); }
if (ie4||DOM2) document.write('<div id="cpShoutoutBox" style="border:0px solid black;width:'+fwidth+';height:'+fheight+'"></div>');
if (window.addEventListener) window.addEventListener("load", changecontent, false) else if (window.attachEvent) window.attachEvent("onload", changecontent) else if (document.getElementById) window.onload=changecontent u can change the font properties. u also can add the number of content. e.g - Quote :
- var fcontent=new Array();
begintag='<div style="font: normal 12px Century Gothic; padding: 1px;">'; fcontent[0]="TEXT HERE"; fcontent[1]="TEXT HERE"; fcontent[2]="TEXT HERE"; fcontent[3]="TEXT HERE"; credit goes to DYNAMIC DRIVE a little modification by ANDHA. :D LIVE PREVIEW
|
|
|
|
shirow
HCG Member
> : I love HCG!
Posts : 15
Location : INDONESIA
Reg-Date : 2008-11-09
Forum Warning :
Contribution :
|
Subject: Re: Flashing Text Replacing Your Google Ads / In Your Shoutout Box Sun Nov 09, 2008 3:39 pm |
|
|
-------------------------------------------- just refresh, if u can't see it. i saw my shared profile just now. here is the screenshot
|
|
|
|
chiin
HCG Geek
> : em back :]]
Posts : 734
Age : 29
Location : my mom's womb
Mood : Cheerful
Country :
Reg-Date : 2008-10-09
Forum Warning :
Contribution :
|
Subject: Re: Flashing Text Replacing Your Google Ads / In Your Shoutout Box Sun Nov 09, 2008 6:28 pm |
|
|
|
|
|
|
darkangel15
HCG Addict
> : friendster.... profile ander c
Posts : 231
Age : 27
Location : somewhere near you...
Mood : Happy
Country :
Reg-Date : 2008-11-02
Forum Warning :
Contribution :
|
Subject: Re: Flashing Text Replacing Your Google Ads / In Your Shoutout Box Sun Nov 09, 2008 6:33 pm |
|
|
|
|
|
|
eyesetokill
HCG Elite
> : i am so very speechless
Posts : 1266
Age : 33
Location : right there..in your heart
Mood : Dark
Country :
Reg-Date : 2008-10-13
Forum Warning :
Contribution :
|
Subject: Re: Flashing Text Replacing Your Google Ads / In Your Shoutout Box Sun Nov 09, 2008 8:47 pm |
|
|
|
|
|
|
shirow
HCG Member
> : I love HCG!
Posts : 15
Location : INDONESIA
Reg-Date : 2008-11-09
Forum Warning :
Contribution :
|
Subject: Re: Flashing Text Replacing Your Google Ads / In Your Shoutout Box Mon Nov 10, 2008 9:58 am |
|
|
|
|
|
|
awra
HCG Elite
> : now, your turn.
Posts : 1815
Age : 35
Location : KMB
Country :
Reg-Date : 2008-09-23
Forum Warning :
Contribution :
|
Subject: Re: Flashing Text Replacing Your Google Ads / In Your Shoutout Box Mon Nov 10, 2008 5:18 pm |
|
|
|
|
|
|
mistymallow
HCG Maniac
> : i hate immatures :))
Posts : 4053
Age : 29
Location : Conway,Arkansas
Mood : Happy
Country :
Reg-Date : 2008-10-09
Forum Warning :
Contribution :
|
Subject: Re: Flashing Text Replacing Your Google Ads / In Your Shoutout Box Tue Nov 11, 2008 5:44 pm |
|
|
thanks for sharing. gonna use it. xD
|
|
|
|
awra
HCG Elite
> : now, your turn.
Posts : 1815
Age : 35
Location : KMB
Country :
Reg-Date : 2008-09-23
Forum Warning :
Contribution :
|
Subject: Re: Flashing Text Replacing Your Google Ads / In Your Shoutout Box Tue Nov 11, 2008 9:09 pm |
|
|
|
|
|
|
[a][c]
HCG Freak
> : I JUST DON'T LOVE YOU NO MORE :)
Posts : 179
Age : 94
Mood : Crazy
Reg-Date : 2008-10-31
Forum Warning :
Contribution :
|
Subject: Re: Flashing Text Replacing Your Google Ads / In Your Shoutout Box Mon Nov 17, 2008 11:58 pm |
|
|
|
|
|
|
0daven0
HCG Maniac
> : reminiscing xD
Posts : 4430
Age : 31
Location : here
Reg-Date : 2008-10-06
Forum Warning :
Contribution :
|
Subject: Re: Flashing Text Replacing Your Google Ads / In Your Shoutout Box Tue Nov 18, 2008 8:20 am |
|
|
|
|
|
|
patricia
Guest
> : I love HCG!
Posts : 1
Reg-Date : 2008-11-04
Forum Warning :
Contribution :
|
Subject: Re: Flashing Text Replacing Your Google Ads / In Your Shoutout Box Sat Dec 06, 2008 8:25 pm |
|
|
bakit parang di poh nagana?.. tanung lang po.. chill lang!..
|
|
|
|
Pawem
Promoter
> : i miss this :)
Posts : 3903
Age : 30
Location : Britannia
Mood : Energetic
Country :
Reg-Date : 2008-09-19
Forum Warning :
Contribution :
|
Subject: Re: Flashing Text Replacing Your Google Ads / In Your Shoutout Box Sun Dec 07, 2008 8:06 am |
|
|
|
|
|
|
christianbien
HCG Addict
> : hello??
Posts : 260
Age : 29
Location : dUn sa may kantO perO d pa dUn
Mood : Happy
Country :
Reg-Date : 2008-10-02
Forum Warning :
Contribution :
|
Subject: Re: Flashing Text Replacing Your Google Ads / In Your Shoutout Box Sun Dec 07, 2008 8:51 am |
|
|
Tnx For ShariNg wahahha ^_^V
|
|
|
|
slaevolohr
HCG Geek
> : i'm' so tired of WAITING!!!!
Posts : 908
Age : 32
Location : Iloilo
Mood : Dark
Reg-Date : 2008-10-27
Forum Warning :
Contribution :
|
Subject: Re: Flashing Text Replacing Your Google Ads / In Your Shoutout Box Sun Dec 07, 2008 8:58 am |
|
|
|
|
|
|
JirO™
Global Mod
> : >:)
Posts : 2580
Age : 31
Location : There :O
Mood : Blissful
Country :
Reg-Date : 2008-09-05
Forum Warning :
Contribution :
|
Subject: Re: Flashing Text Replacing Your Google Ads / In Your Shoutout Box Sun Dec 07, 2008 9:07 am |
|
|
- pawpaw wrote:
- i dont see the tricks.
Maybe you're hiding your GOOGLE ADS right?:]
|
|
|
|
wiALyN
HCG Member
> : SiLeNCE iS AN ANSWER
Posts : 11
Age : 33
Location : ..
Country :
Reg-Date : 2008-11-18
Forum Warning :
Contribution :
|
Subject: Re: Flashing Text Replacing Your Google Ads / In Your Shoutout Box Tue Dec 09, 2008 9:16 am |
|
|
|
|
|
|
javin6*
HCG Freak
> : I love HCG!
Posts : 136
Age : 32
Reg-Date : 2008-11-19
Forum Warning :
Contribution :
|
Subject: Re: Flashing Text Replacing Your Google Ads / In Your Shoutout Box Tue Dec 09, 2008 9:33 am |
|
|
|
|
|
|
Angelite
Moderator
> :
Posts : 2329
Age : 27
Location : san nga baa?~
Mood : Annoyed
Country :
Reg-Date : 2008-12-07
Forum Warning :
Contribution :
|
Subject: Re: Flashing Text Replacing Your Google Ads / In Your Shoutout Box Thu Dec 11, 2008 7:55 pm |
|
|
gumagana ba to sa set 7?..hehe..
|
|
|
|
Marlou123
HCG Addict
> : I love HCG!
Posts : 222
Age : 29
Location : Catarman Cordova Cebu
Mood : Excited
Reg-Date : 2008-12-30
Forum Warning :
Contribution :
|
Subject: Re: Flashing Text Replacing Your Google Ads / In Your Shoutout Box Mon Jan 19, 2009 8:14 pm |
|
|
thnx for sharing we... i like this codes..
|
|
|
|
Sponsored content
|
Subject: Re: Flashing Text Replacing Your Google Ads / In Your Shoutout Box |
|
|
|
|
|
|
|
Flashing Text Replacing Your Google Ads / In Your Shoutout Box |
|
|