Jump to content

changing line colors in latest version


Recommended Posts

ok peeps heres an update on what to do if you want things like change the colors of the category divder lines and the colors of the next and previous lines

first off go to your wpiscripts folder and open boxes.js in an editor

category divider color lines

youll find on line 112

you can add the color command to that line and make it look like this to change its colors

this is darkred in the example

  txt += ('<hr align="left" width="95%" color="#8B0000">\n');
now to change the colors of the previous and next divider lines..

this is a multiple line edit to do this

starting with line 198 alter this tag to add or make it look like this example

<hr size="1" color="#8B0000">

notice all ive added was the color command

follow up by adding the same command and color of choice in all hr command lines

198

203

204

208

209

and that should do it. to alter those line colors :)

Link to comment
Share on other sites


sure here it is

//

// This function creates a page-break and the virtual scrollbar

//

function backnext(li,colw,next, cols)

{

position = "boxes.js";

var txt = new String();

txt = "";

previ = li - 1;

nexti = li + 1;   

var colwidth=Math.round(100/cols,2);   

txt += ('</td></tr>\n<tr class="rtclass"><td colspan="' + cols + '" height="100%" >' );

txt += ('<table class="tclass" height="100%" cellspacing=0 cellpadding=0><tr><td><hr size="1" color="#8B0000"></td>');

if (previ!=0)

  txt += ('<td class="backnext" align="center"><a class="backnext" href="#pg' + previ + '">Previous</a></td>');

else

  txt += ('<td class="backnext"><hr size="1" color="#8B0000"></td>');

  txt += ('<td width=20><hr size="1" color="#8B0000"></td>');

if (next)

  txt += ('<td class="backnext" align="center"><a class="backnext" href="#pg' + nexti + '">Next</a></td>');

  else

  txt += ('<td class="backnext"><hr size="1" color="#8B0000"></td>');

txt += ('<td width=50><hr size="1" color="#8B0000"></td></tr></table>');

txt += ('</td></tr></table>');

if (next)

{

  txt += ('<table class="tclass">');

  txt += ('<tr class="rtclass"><td width="' + colwidth + '%" valign="top" nowrap>');

  txt += ('<a name="#pg' + nexti + '"></a>');

  }     

else txt+=('<table><tr><td>');

lasti= nexti;

return txt;

Edited by Lost Soul
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...