Log In · Register

 
 
Closed TopicStart new topic
change ad's look, change the look of the xanga ad.
jeti
post Mar 7 2004, 03:03 PM
Post #1


Newbie
*

Group: Member
Posts: 2
Joined: Feb 2004
Member No: 5,469



well, currently there's an ad fading code going around that looks like this:

CODE
<!-- begin code provided by createblog.com -->

<script>
function opaque(){
banner = document.body.firstChild.firstChild.getElementsByTagName('table')[0];
banner.style.filter = "alpha(opacity=50)"
}
setTimeout("opaque()",1);
</script>

<!-- end code provided by createblog.com -->


and you can change the opacityto 20 or 75 or whatever, yadda yadda yadda. however, you can also change the word "opacity" to something else. for instance, "gray", "xray", "invert"... i think that's it. so for instance, if you change the code to xray:

CODE
<!-- begin code provided by createblog.com -->

<script>
function opaque(){
banner = document.body.firstChild.firstChild.getElementsByTagName('table')[0];
banner.style.filter = "xray"
}
setTimeout("opaque()",1);
</script>

<!-- end code provided by createblog.com -->


you'll get a lovely banner that is all black and white. i currently have this one running on my xanga, so you can lookit it. it's pretty neat. (note: i'm currently messing with my xanga, so stuff might be messed up right now... but the code works! ^^)

gray will change the ad to white and black (as opposed to xray which is black and white... i hope that's understandable ^^;;; ) and invert will just use the opposite of all the colors. for instance, all things on the ad that are blue will turn orange, and vice versa. and white = black.

aaand... i believe that's all. i hope this was a help to at least one person. goodness knows the ad opacity is fine and dandy, but it's still all orange and blue. these changes here will modify nicely for black & white layouts.

except invert, which is just plain ugly. ^^;;;
 
largosama
post Mar 7 2004, 10:36 PM
Post #2


Happy Person
******

Group: Member
Posts: 1,729
Joined: Feb 2004
Member No: 4,674



i found out that the regular fader takes up alotta system resources and lags the comp, but this nice.
 
largosama
post Mar 7 2004, 10:37 PM
Post #3


Happy Person
******

Group: Member
Posts: 1,729
Joined: Feb 2004
Member No: 4,674



nevery mind.. this whole script takes up 125k of RAM... I'm not using it anymore.. though it looked nice
 
Kensei
post Mar 7 2004, 10:48 PM
Post #4


Senior Member
***

Group: Member
Posts: 51
Joined: Jan 2004
Member No: 2,155



125k.... huh.gif
 
faithin_felix
post Mar 7 2004, 11:15 PM
Post #5


Feeel X
******

Group: Member
Posts: 2,814
Joined: Jan 2004
Member No: 1,498



i still dun get why ppl get banned for taking it out ermm.gif
 
aznhybriddragon
post Mar 7 2004, 11:22 PM
Post #6


Senior Member
*****

Group: Member
Posts: 946
Joined: Jan 2004
Member No: 603



QUOTE(faithin_felix @ Mar 7 2004, 8:15 PM)
i still dun get why ppl get banned for taking it out ermm.gif

Well xanga gets money from
1. ADS,
2. premium

So whenever someone blocks it, they are losing money, so yea, And plus they have the Right to Ban U.
 
*AngelicEyz00*
post Mar 7 2004, 11:45 PM
Post #7





Guest






happy.gif OOH, this script is cool... I'm gonna use it _smile.gif
 
*krnxswat*
post Mar 8 2004, 12:09 AM
Post #8





Guest






oops. approved this by accident
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: