Choose from our various pricing plans. There is a package for everyone!


Changing color of bubble ads.

View previous topic View next topic Go down

Changing color of bubble ads.

Post by Leo on Fri Aug 17, 2012 4:43 am

How can I change the color of the bubble ads?
http://urandom.forumotion.com/forum
avatar
Leo
Member
Member

Age : 20
Posts : 196
Join date : 2012-07-10
Reputation : 4

View user profile

Back to top Go down

Re: Changing color of bubble ads.

Post by Mr.Joker on Fri Aug 17, 2012 11:23 am

Can you provide picture what you think?


Please read forum rules. Don't request help via PM!

avatar
Mr.Joker
Premium Member


Age : 24
Posts : 283
Join date : 2012-06-24
Reputation : 21

View user profile

Back to top Go down

Re: Changing color of bubble ads.

Post by Leo on Fri Aug 17, 2012 3:39 pm


Internet Forest
Generalita
GamingHub
FmServices
GraphicZone
avatar
Leo
Member
Member

Age : 20
Posts : 196
Join date : 2012-07-10
Reputation : 4

View user profile

Back to top Go down

Re: Changing color of bubble ads.

Post by Mr.Joker on Fri Aug 17, 2012 3:51 pm

Find the place where you added links, if you did it manualy. And there add something like this:

Code:
<a href="URL" style="color:enter color;">LINK NAME</a>


Please read forum rules. Don't request help via PM!

avatar
Mr.Joker
Premium Member


Age : 24
Posts : 283
Join date : 2012-06-24
Reputation : 21

View user profile

Back to top Go down

Re: Changing color of bubble ads.

Post by Leo on Fri Aug 17, 2012 3:56 pm

Here's the code
Code:
cloud[0]=["http://internetforest.com/index.php","Internet Forest",""];
    cloud[1]=["http://fmservices.forumotion.com/","FmServices",""];
    cloud[2]=["http://graphiczone.forummotion.com/forum","Graphic Zone",""];
    cloud[3]=["http://gaminghub.forumotion.com/forum","GamingHub",""];
    cloud[4]=["http://generalita.co.cc/index/","Generalita",""];

How do I change the colors?
avatar
Leo
Member
Member

Age : 20
Posts : 196
Join date : 2012-07-10
Reputation : 4

View user profile

Back to top Go down

Re: Changing color of bubble ads.

Post by Mr.Joker on Fri Aug 17, 2012 7:22 pm

Well, you used javascript there. Is there javascript that activate that?


Please read forum rules. Don't request help via PM!

avatar
Mr.Joker
Premium Member


Age : 24
Posts : 283
Join date : 2012-06-24
Reputation : 21

View user profile

Back to top Go down

Re: Changing color of bubble ads.

Post by Leo on Fri Aug 17, 2012 10:01 pm

I put that code in my index_body
avatar
Leo
Member
Member

Age : 20
Posts : 196
Join date : 2012-07-10
Reputation : 4

View user profile

Back to top Go down

Re: Changing color of bubble ads.

Post by Leo on Sun Aug 19, 2012 1:06 pm

BUMP
avatar
Leo
Member
Member

Age : 20
Posts : 196
Join date : 2012-07-10
Reputation : 4

View user profile

Back to top Go down

Re: Changing color of bubble ads.

Post by Mati™ on Sun Aug 19, 2012 1:25 pm

You can change color in this script.

Code:
for( i=0; i<cloud.length; i++){size = 8+(Math.random()*9);if( size < 8 ){color = '#176093'}else if( size > 8 && size < 9 ){color = '#6CB2E4'}else if( size > 10 && size < 11 ){ color = '#6CB2E4'}else if( size > 12 && size < 16 ){ color = '#176093'}else{color = '#176093';}document.write("<span style='font-size:"+size+"px;margin: 18px;'>");document.write("<a href='"+cloud[i][0]+"' style='color:"+color+";text-decoration: none;' target='_blank' title='"+cloud[i][2]+"'>"+cloud[i][1]+"</a>"); document.write("</span> ");}</script>
avatar
Mati™
Administrator
Administrator

Age : 31
Posts : 2112
Join date : 2011-10-20
Forum Version : PhpBB3
Reputation : 147

View user profile http://fmfocus.forumotion.net/forum

Back to top Go down

Re: Changing color of bubble ads.

Post by Leo on Sun Aug 19, 2012 1:44 pm

I already tried this. Didn't work.
avatar
Leo
Member
Member

Age : 20
Posts : 196
Join date : 2012-07-10
Reputation : 4

View user profile

Back to top Go down

Re: Changing color of bubble ads.

Post by Mati™ on Sun Aug 19, 2012 1:49 pm

You cannot change it for one link because this script is change colour randomly for each time the page is loaded.
avatar
Mati™
Administrator
Administrator

Age : 31
Posts : 2112
Join date : 2011-10-20
Forum Version : PhpBB3
Reputation : 147

View user profile http://fmfocus.forumotion.net/forum

Back to top Go down

Re: Changing color of bubble ads.

Post by Leo on Sun Aug 19, 2012 2:26 pm

Okay. Is there a way I can have certain ones a color for the whole time and the other ones just change color?
avatar
Leo
Member
Member

Age : 20
Posts : 196
Join date : 2012-07-10
Reputation : 4

View user profile

Back to top Go down

Re: Changing color of bubble ads.

Post by Mr.Joker on Sun Aug 19, 2012 2:59 pm

So you want only one color for whole text?


Please read forum rules. Don't request help via PM!

avatar
Mr.Joker
Premium Member


Age : 24
Posts : 283
Join date : 2012-06-24
Reputation : 21

View user profile

Back to top Go down

Re: Changing color of bubble ads.

Post by Leo on Sun Aug 19, 2012 4:10 pm

No different colors like this.

Internet Forest FF0000
Generalita #00FF00
GamingHub #008080
FmServices #008080
GraphicZone #A239CC

Those colors are the colors of my staff. I want their colors to be on the bubble ads, and the regular members will be the same colors, no change.
avatar
Leo
Member
Member

Age : 20
Posts : 196
Join date : 2012-07-10
Reputation : 4

View user profile

Back to top Go down

Re: Changing color of bubble ads.

Post by Mr.Joker on Sun Aug 19, 2012 5:19 pm

Tell me how this look like:
Code:
<script type="text/javascript">
for( i=0; i<cloud.length; i++){
size[i] = 10;
size[i] = 12;
size[i] = 14;
size[i] = 16;
if( size0 == 10 ){
color = '#FF0000' ;
}
else if( size1 == 12 ){
color = '#00FF00'
}else if( size2 == 14){
color = '#008080'
}else if( size3 == 16){
color = '#008080'
}else{
color = '#A239CC';
}
document.write("<span style='font-size:"+size+"px;margin: 18px;'>");
document.write("<a href='"+cloud[i][0]+"' style='color:"+color+";text-decoration: none;' target='_blank' title='"+cloud[i][2]+"'>"+cloud[i][1]+"</a>");
document.write("</span> ");
}
</script>
Give me ss what you get from this.


Please read forum rules. Don't request help via PM!

avatar
Mr.Joker
Premium Member


Age : 24
Posts : 283
Join date : 2012-06-24
Reputation : 21

View user profile

Back to top Go down

Re: Changing color of bubble ads.

Post by Leo on Mon Aug 20, 2012 4:53 am

Where does this go?
avatar
Leo
Member
Member

Age : 20
Posts : 196
Join date : 2012-07-10
Reputation : 4

View user profile

Back to top Go down

Re: Changing color of bubble ads.

Post by Mr.Joker on Mon Aug 20, 2012 9:44 am

Same way where you added javacsript. If doesen't work return old script.


Please read forum rules. Don't request help via PM!

avatar
Mr.Joker
Premium Member


Age : 24
Posts : 283
Join date : 2012-06-24
Reputation : 21

View user profile

Back to top Go down

Re: Changing color of bubble ads.

Post by Leo on Mon Aug 20, 2012 5:05 pm

It didn't work. Thanks though!
avatar
Leo
Member
Member

Age : 20
Posts : 196
Join date : 2012-07-10
Reputation : 4

View user profile

Back to top Go down

Re: Changing color of bubble ads.

Post by Mati™ on Wed Dec 25, 2013 11:29 am

User inactive and seems not to need help. Because of this, the support topic has been closed.


If you have other questions, please open a new topic.
avatar
Mati™
Administrator
Administrator

Age : 31
Posts : 2112
Join date : 2011-10-20
Forum Version : PhpBB3
Reputation : 147

View user profile http://fmfocus.forumotion.net/forum

Back to top Go down

Re: Changing color of bubble ads.

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum