<style> color add for description text

Results 1 to 6 of 6
  1. #1
    Account Upgraded | Title Enabled! epocal is offline
    MemberRank
    Jun 2012 Join Date
    inside MuServerLocation
    579Posts

    <style> color add for description text

    I want to change the description text to white color FFFFF.



    I don't know how to add color style to a .$value, like my script .$value['description'].

    Can you help me change the color ?

    Code :
    Code:
    <script type="text/javascript">
    function eventstime(lasttime, repeattime, showid, opentime) {
    	if (lasttime < 0) lasttime = repeattime-1;
    	if (lasttime <= opentime) {
    		document.getElementById(showid).innerHTML = "is Open";
    		setTimeout('eventstime('+(lasttime-1)+', '+repeattime+', \''+showid+'\', '+opentime+');', 999);
    	} else {
    		var secs = lasttime % 60;
    		if (secs < 10) secs = '0'+secs;
    		var lasttime1 = (lasttime - secs) / 60;
    		var mins = lasttime1 % 60;
    		if (mins < 10) mins = '0'+mins;
    		lasttime1 = (lasttime1 - mins) / 60;
    		var hours = lasttime1 % 24;
    		var days = (lasttime1 - hours) / 24;
    		if (days > 1) days = days+' days + ';
    		else if (days > 0) days = days+' day + ';
    		document.getElementById(showid).innerHTML = days+hours+':'+mins+':'+secs;
    		setTimeout('eventstime('+(lasttime-1)+', '+repeattime+', \''+showid+'\', '+opentime+');', 999);
    	}
    }
    </script>
    
    <?
    echo'
    <table border="0" cellspacing="0" cellpadding="0" width="100%" style="margin-top: 10px;" >
    <td align="center" class="customRTitle">Events</td></table><div style="height: 5px;"></div>
    <table border="0" cellspacing="2" cellpadding="2" width="49%" class="customRTable">';
    include ("ETconfig.php");
    $i = 0;
    echo '';
    foreach ($eventtime as $value) {
    	$i++;
    	$bc_remain = $value['repeattime'] - ((WEBSITE_REAL_TIME - strtotime($value['start'])) % $value['repeattime']);
    	$startevents .= 'eventstime('.$bc_remain.', '.$value['repeattime'].', \'event'.$i.'\', '.$value['opentime'].'); ';
    	echo '<tr id="customRbg" height="25"><td align="center">'.$value['name'].': <span id="event'.$i.'" style="color:#FF6611;"></span><br>'.$value['description'].'</td></tr>'; 
    }
    echo '<script type="text/javascript">'.$startevents.'</script>
    <table align ="center" border="0" cellspacing="2" cellpadding="2" width="49%" class="customRTable2">';	
    $i2 = 1;
    foreach ($eventtime2 as $value2) {
    	$i2++;
    	$bc_remain = $value2['repeattime'] - ((WEBSITE_REAL_TIME - strtotime($value2['start'])) % $value2['repeattime']);
    	$startevents .= 'eventstime('.$bc_remain.', '.$value2['repeattime'].', \'event2'.$i2.'\', '.$value2['opentime'].'); ';
    	echo '<tr id="customRbg" height="25"><td align ="center">'.$value2['name'].': <span id="event2'.$i2.'" style="color:#FF6611;"></span><br>'.$value2['description'].'</td></tr>';	
    }
    echo '<script type="text/javascript">'.$startevents.'</script>
    </table>';
    ?>
    <style>
    .customRTable
    {
    margin-bottom: 25px;
    margin-left;
    float:left;
    background-color: #222222;
    border: 1px solid #444444; 
    border-radius:7px;
    }
    #customRbg
    {
    background-color: #111111;	
    }
    .customRTitle
    {
    padding-top: 3px;
    padding-bottom: 3px;
    color: #D5D5D5;
    margin-top: 15px;
    font-size: 18px;
    background-color: #111111;
    border: 1px solid #444444; 
    border-radius:7px;
    font-weight:bold;	
    }
    .customRTable2
    {
    margin-bottom: 25px;
    float:right;
    background-color: #222222;
    border: 1px solid #444444; 
    border-radius:7px;
    }
    </style>
    Thank you in advance !


  2. #2
    Alpha Member 2009x2014 is offline
    MemberRank
    Dec 2009 Join Date
    2,765Posts

    Re: <style> color add for description text

    all desc same color

    <span id ="newb">'.$value['description'].'</span>

    and style

    #newb
    {
    color: #FFFFFF;
    }


    by desc id on ETconfig.php

    $eventtime[1]['description'] = '<font color="#FFFFFF">Newbie</font>';

  3. #3
    Account Upgraded | Title Enabled! epocal is offline
    MemberRank
    Jun 2012 Join Date
    inside MuServerLocation
    579Posts

    Re: <style> color add for description text

    Thanks, Martin ... maybe you will look into that BC topic ... serious problem for my server :-< cya ...

  4. #4
    Alpha Member 2009x2014 is offline
    MemberRank
    Dec 2009 Join Date
    2,765Posts

    Re: <style> color add for description text

    Quote Originally Posted by epocal View Post
    Thanks, Martin ... maybe you will look into that BC topic ... serious problem for my server :-< cya ...
    No i won't :) it's funny atm i won't ruin it :D

  5. #5
    Account Upgraded | Title Enabled! epocal is offline
    MemberRank
    Jun 2012 Join Date
    inside MuServerLocation
    579Posts

    Re: <style> color add for description text

    Quote Originally Posted by 4FUNer View Post
    No i won't :) it's funny atm i won't ruin it :D
    You are so bad ! I kind of know that guy is talking crazy ... and I just like to see my head hurting :)) anyway I've send Ian a message to take a look until you decide to help us :))

  6. #6
    Alpha Member 2009x2014 is offline
    MemberRank
    Dec 2009 Join Date
    2,765Posts

    Re: <style> color add for description text

    Quote Originally Posted by epocal View Post
    You are so bad ! I kind of know that guy is talking crazy ... and I just like to see my head hurting :)) anyway I've send Ian a message to take a look until you decide to help us :))
    He's trying to help you, anw he base on my info, and dont know what to do :P

    ian is config helper, he can't do much with real code things :P

    let's help you lazy :P



Advertisement