|
|
 |
Re: FN-FORUM: Javascript & CSS
date posted 25th January 2005 20:07
On 25 Jan 2005, at 17:25, Charles Nullens wrote:
> Is it possible to combine JS & CSS? For example if have
>
> document.write("You are logged in as ##on_username## | href='index.php?page=login&logout=now'>Logout");
>
> How do I apply CSS to the "you are logged in bit" and "logout" bits?
by adding a class in the tag?
you could also wrap the inital text with a or tag and drop a
class in there also...
remember to use single quotes so that you don't break the
document.write statement.
i.e.
document.write("You are logged in as
##on_username## | Logout");
hth
L.
---
Evoke Media Ltd.
+44 (0) 870 930 2843
www.evoke-media.com
"It's better to be a pirate than join the navy." - Steve Jobs ('83)
|
 |
|