PDA

View Full Version : Creating new link class


Nog
08-02-2002, 06:55 PM
Im trying to create a new link class so the I can have an alturnative link/hover color.

Ive added this to my headinclude template:

.new A:link, .new A:visited, .new A:active {
color: #FFFFFF
background-color:"#000000";
text-decoration: underline;

}

.new A:hover {
color: #FF4400
background-color: #000000;
}

This new link class is sposed to be white normally and red when you hover over it.

And for example here's a link I would like to change to my "new" class from the forumhome template:

Welcome to our newest member, <a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$newuserid"><class="new"> $newusername</a></class>

It doesant work.https://vborg.vbsupport.ru/

Can anyone see why?

xdam
08-03-2002, 02:12 PM
try this (i haven't tested it.


<style>
a:link { text-decoration: none;
color: #FFFFFF;
background-color: #000000;
}

a:active { text-decoration: none;
color: #FFFFFF;
background-color: #000000;
}

a:visited { text-decoration: none;
color: #FFFFFF;
background-color: #000000;
}

a:hover { text-decoration: none;
color: #FF4400;
background-color: #000000;
}

</style>

Nog
08-03-2002, 03:25 PM
Thanks xdam,

I tryed it but had to take out the style tags as it came up with an error when going to the home page.

I thought Id better put .new at the start as well so that the class referance in the link code would work. Dunno if i was right to do that.

I added this to my headinclude template:

.new a:link { text-decoration: none;
color: #FFFFFF;
background-color: #000000;
}

.new a:active { text-decoration: none;
color: #FFFFFF;
background-color: #000000;
}

.new a:visited { text-decoration: none;
color: #FFFFFF;
background-color: #000000;
}

.new a:hover { text-decoration: none;
color: #FF4400;
background-color: #000000;
}

And I used the following for one of the link's I want to be differant:

Welcome to our newest member, <class= "new"><a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$newuserid"> $newusername</a></class>

It didnt work

I have tryed everything I can think of and nothing works. Ive spent hours.

If anyone can figure this out I would gladly skip around them and shower them with confetti.

Nog
08-04-2002, 09:10 PM
^^BUMP^^

Someone must have an idea.
Im really stuck :/

mashby
08-04-2002, 10:30 PM
Have you tried including the class in the <a href> tag? In other words <a class="new" href="foo.com">

Nog
08-07-2002, 07:19 PM
Thanks for the reply mashby, Just tryed it and that didnt work either. http://www.btinternet.com/~ian_sharman/bigcry.gif

mashby
08-07-2002, 09:52 PM
Can you send me the URL to your board? I'd like to take a peek at it for myself if I may.

Nog
08-08-2002, 02:38 PM
Indeedy. I can't wait you you all to see it. Ive spent a lot of time on it to make it just right, and id be interested by your thoughts/suggestions, but Im not goona make it public till Ive got it completely sorted. It has to be all done before anyone join's.:)

SaintDog
08-08-2002, 05:25 PM
Nog, please edit your website to your real website, the one you currently have entered is not only vulgar but sickening......

Nog
08-08-2002, 05:32 PM
Originally posted by SaintDog
Nog, please edit your website to your real website, the one you currently have entered is not only vulgar but sickening......

ROFL Ok Ive removed it.:D

SaintDog
08-08-2002, 05:40 PM
I find nothing funny about that at all, there is no sense in entering that in your profile for any reason.....