Jump to content
MakeWebGames

Recommended Posts

Posted

I want it so the A:hover thingy does overline and underline so if I have black text, And I put my mouse on it, It will be red underline and overline.

Miniman said it's in header.php so here's mine.

<?php

class headers {

function startheaders() {

global $ir, $set;

echo <<<EOF

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<title>{$set['game_name']}</title>

<style type="text/css">

<!--

/* Cascading Style Sheet

Owned by and licensed to only

Created by Slinger

for all info contact either administration or */

body {

BACKGROUND-COLOR: #B9B4B4;

SCROLLBAR-FACE-COLOR: #AEA89D;

SCROLLBAR-ARROW-COLOR: #000000;

SCROLLBAR-TRACK-COLOR: #B9B4B4;

CURSOR: default;

font-family:calibri, helvetica, arial, geneva, sans-serif;font-size:12px;color: black;

}

a:visited,a:active,a:hover,a:link { color: black, none; }

table,tr,td { font-family:helvetica, arial, geneva, sans-serif;font-size: 12px; }

img { border:none; }

textarea { font-family:helvetica, arial, geneva, sans-serif;font-size:12px;color: black; }

table {

background-color: #B9B4B4;

}

th {

background-color: #4A4f4d;

color: #B9B4B4;

}

td {

background-color: #b9b4b4;

}

div {

background-color: #b9b4b4;

}

.jail {

background-color: orange;

padding: 10 10 10 10;

marging: 10 10 10 10;

}

background-color: white;

padding: 10 10 10 10;

marging: 10 10 10 10;

}

.normal {

padding: 10 10 10 10;

marging: 10 10 10 10;

}

 

-->

</style></head>

EOF;

if ($ir['jail']>0)

{

echo '<body class="jail">';

}

elseif ($ir['hospital']>0)

{

echo '<body class="hosp">';

}

else

echo '<body class="normal">';

 

echo '<center>

You can see some color and layout changes during the comming days. if there are any errors, wait a bit, if they are permanent please contact staff. Thanks

<table width="75%" border="0" cellpadding="20" cellspacing="0">

<tr>

<td class="center">';

}

function userdata($ir,$lv,$fm,$cm,$dosessh=1)

{

global $db,$c,$userid, $set;

$IP = ($_SERVER['HTTP_X_FORWARDED_FOR'])

? $_SERVER['HTTP_X_FORWARDED_FOR']

: $_SERVER['REMOTE_ADDR'];

$db->query("UPDATE users SET laston=unix_timestamp(),lastip='$IP' WHERE userid=$userid");

if(!$ir['email'])

{

global $domain;

die ("<body>Your account may be broken. Please mail help@{$domain} stating your username and player ID.");

}

if($dosessh && ($_SESSION['attacking'] || $ir['attacking']))

{

print "You lost all your EXP for running from the fight.";

$db->query("UPDATE users SET exp=0,attacking=0 WHERE userid=$userid");

$_SESSION['attacking']=0;

}

$enperc=(int) ($ir['energy']/$ir['maxenergy']*100);

$wiperc=(int) ($ir['will']/$ir['maxwill']*100);

$experc=(int) ( $ir['exp']/$ir['exp_needed']*100);

$brperc=(int) ($ir['brave']/$ir['maxbrave']*100);

$hpperc=(int) ($ir['hp']/$ir['maxhp']*100);

$enopp=100-$enperc;

$wiopp=100-$wiperc;

$exopp=100-$experc;

$bropp=100-$brperc;

$hpopp=100-$hpperc;

if ($ir['jail'] > 0)

print ("<center><font color=blue>{$ir['username']} You are in Jail for {$ir['jail']} minutes. You gotta get better at this. <a href=jailbreak.php>Attempt escape</a></font>");

if ($ir['married']>0)

{

$marr=$db->query("SELECT * FROM users WHERE userid={$ir['married']}",$c);

$ma=mysql_fetch_array($marr);

if ($ma['willmax']>$ir['maxwill'])

{

$db->query("UPDATE users SET maxwill={$ma['willmax']} WHERE userid=$userid",$c);

}

if ($ir['willmax']<$ir['maxwill'] && $ir['maxwill']>$ma['willmax'])

{

$db->query("UPDATE users SET maxwill=willmax WHERE userid=$userid",$c);

}

}

if ($ir['maxwill']<$ir['willmax'])

{

$db->query("UPDATE users SET maxwill=willmax WHERE userid=$userid",$c);

}

if ($ir['married']==0 && $ir['maxwill']>$ir['willmax'])

{

$db->query("UPDATE users SET maxwill=willmax WHERE userid=$userid",$c);

}

$d="";

$u=$ir['username'];

if($ir['donatordays']) { $u = "<font color=red>{$ir['username']}</font>";$d="donator.gif"; }

$gn="";

global $staffpage;

print <<<OUT

title.gif

 

<table width="100%" border="0" cellpadding="0" cellspacing="0">

<tr>

<td width="20%" bgcolor="#$bgcolor" valign="top">

Name: $gn{$u} [{$ir['userid']}] $d

Money: {$fm}

Level: {$ir['level']}

Crystals: {$ir['crystals']}

Turns: {$ir['turns']} [use]

[Emergency Logout]

 

[City Bank]

 

[Refill Energy]

 

[Vote Here]

 

<hr width=100 />

Energy: {$enperc}%

 

<img src=bargreen.gif width=$enperc height=10><img src=barred.gif width=$enopp height=10>

 

Will: {$wiperc}%

 

<img src=bargreen.gif width=$wiperc height=10><img src=barred.gif width=$wiopp height=10>

 

Brave: {$ir['brave']}/{$ir['maxbrave']}

 

<img src=bargreen.gif width=$brperc height=10><img src=barred.gif width=$bropp height=10>

 

EXP: {$experc}%

 

<img src=bargreen.gif width=$experc height=10><img src=barred.gif width=$exopp height=10>

 

Health: {$hpperc}%

 

<img src=bargreen.gif width=$hpperc height=10><img src=barred.gif width=$hpopp height=10>

<hr width=100/>

 

OUT;

if($ir['fedjail'])

{

$q=$db->query("SELECT * FROM fedjail WHERE fed_userid=$userid");

$r=$db->fetch_row($q);

die("<font color=red size=+1>You have been put in the {$set['game_name']} Federal Jail for {$r['fed_days']} day(s).

 

Reason: {$r['fed_reason']}</font></body></html>");

}

if(file_exists('ipbans/'.$IP))

{

die("<font color=red size=+1>Your IP has been banned from {$set['game_name']}, there is no way around this.</font></body></html>");

}

}

function menuarea()

{

include "mainmenu.php";

global $ir,$c;

$bgcolor = 'FFFFFF';

print '</td><td width="2" class="linegrad" bgcolor="#CCCCCC'.$bgcolor.'"> </td><td width="80%" bgcolor="#CCCCCC'.$bgcolor.'" valign="top">

<center>';

if($ir['currentmission'] > 0)

{

$mission=mysql_query("SELECT * FROM missions WHERE missionID='{$ir['currentmission']}'",$c);

while($r=mysql_fetch_array($mission))

{

print "<center><h4>You are currently doing <font color=red>"{$r['missionNAME']}"</font> mission.</h4>

<h5>[<a href=missions.php?action=abort&ID={$r['missionID']}>Abort Mission</a>]</center></h5>";

}}

if($ir['hospital'])

{

print "NB: You are currently in hospital for {$ir['hospital']} minutes.

";

}

if($ir['jail'])

{

print "NB: You are currently in jail for {$ir['jail']} minutes.

";

}

print "Donate to {$set['game_name']} now for donator only items!

";

}

function smenuarea()

{

include "smenu.php";

global $ir,$c;

$bgcolor = 'FFFFFF';

print '</td><td width="2" class="linegrad" bgcolor="#CCCCCC'.$bgcolor.'"> </td><td width="80%" bgcolor="#CCCCCC'.$bgcolor.'" valign="top"><center>';

}

function endpage()

{

global $db;

print <<<OUT

</center>

</td>

</tr>

</table></td>

</tr>

</table>

{$db->num_queries} queries<div></body>

</html>

OUT;

}

}

?>

Guest Anonymous
Posted

Re: Underline overline

a { text-decoration:none; border-top:solid 1 px black; border-bottom:solid 1px black; color:black; }

a:hover { text-decoration:none; border-top:solid 1 px red; border-bottom:solid 1px red; color:red; }

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...