rlmdrd
10-02-2009, 08:19 PM
hello everybody.
im kind of a noob, so im sorry if this question sounds dumb:o
ok i have a script that gets rss feeds.
but i want to change the colour of the hover, link and visited colour of the links. here is the code:
i want each rss scroller to have diffrent colour.
<style type="text/css">
#pscroller1{
border-color: black;
width: auto;
height: 130px;
background-color: #FFFFFF;
font-family: "Century Gothic", Cicle;
font-size: 40px;
color: #0066FF;
font-variant: inherit;
}
#pscroller2{
border-color: black;
width: auto;
height: 130px;
background-color: #FFFFFF;
font-family: "Century Gothic", Cicle;
font-size: 40px;
color: #0E005E;
}
#pscroller3{
border-color: black;
width: auto;
height: 130px;
background-color: #FFFFFF;
font-family: "Century Gothic", Cicle;
font-size: 40px;
color: #33CC33;
}
#pscroller5{
border-color: black;
width: auto;
height: 140px;
background-color: #FFFFFF;
font-family: "Century Gothic", Cicle;
font-size: 35px;
color: #E40303;
}
.rssclass .rsstitle{
font-weight: normal;
font-family: "Century Gothic", Cicle;
color: #00FF00;
}
.rssclass .rssdate{
color: gray;
font-size: 85%;
}
.rssclass a{
text-decoration: none;
}
</style>
<script type="text/javascript" src="rsspausescroller.js">
</script>
</head>
<body>
<script type="text/javascript" >
//new rsspausescroller(RSS_id, divId, divClass, delay, linktarget, optionalswitch)
//1) RSS_id: "Array key of RSS feed in scrollerbridge.php script"
//2) divId: "ID of DIV to display ticker in. DIV is dynamically created"
//3) divClass: "Class name of this ticker, for styling purposes"
//4) delay: delay between message change, in milliseconds
//5) linktarget: Target of links inside RSS feed. Set to "" for current page.
//6) optionalswitch: "optional arbitrary" string to create additional logic for formatrssmessage() to use.
// By default, optionalswitch supports "date", or "date+description" to also show these parts of a RSS feed.
new rsspausescroller("Digg", "pscroller1", "rssclass", 3000, "_new")
new rsspausescroller("Tweetmeme", "pscroller2", "rssclass", 3000, "_new")
new rsspausescroller("Technorati", "pscroller3", "rssclass", 3000, "_new")
new rsspausescroller("Slashdot", "pscroller4", "rssclass", 3000, "_new")
new rsspausescroller("Reddit", "pscroller5", "rssclass", 3000, "_new")
document.write("<br />") //add a divider for demo
</script>
im kind of a noob, so im sorry if this question sounds dumb:o
ok i have a script that gets rss feeds.
but i want to change the colour of the hover, link and visited colour of the links. here is the code:
i want each rss scroller to have diffrent colour.
<style type="text/css">
#pscroller1{
border-color: black;
width: auto;
height: 130px;
background-color: #FFFFFF;
font-family: "Century Gothic", Cicle;
font-size: 40px;
color: #0066FF;
font-variant: inherit;
}
#pscroller2{
border-color: black;
width: auto;
height: 130px;
background-color: #FFFFFF;
font-family: "Century Gothic", Cicle;
font-size: 40px;
color: #0E005E;
}
#pscroller3{
border-color: black;
width: auto;
height: 130px;
background-color: #FFFFFF;
font-family: "Century Gothic", Cicle;
font-size: 40px;
color: #33CC33;
}
#pscroller5{
border-color: black;
width: auto;
height: 140px;
background-color: #FFFFFF;
font-family: "Century Gothic", Cicle;
font-size: 35px;
color: #E40303;
}
.rssclass .rsstitle{
font-weight: normal;
font-family: "Century Gothic", Cicle;
color: #00FF00;
}
.rssclass .rssdate{
color: gray;
font-size: 85%;
}
.rssclass a{
text-decoration: none;
}
</style>
<script type="text/javascript" src="rsspausescroller.js">
</script>
</head>
<body>
<script type="text/javascript" >
//new rsspausescroller(RSS_id, divId, divClass, delay, linktarget, optionalswitch)
//1) RSS_id: "Array key of RSS feed in scrollerbridge.php script"
//2) divId: "ID of DIV to display ticker in. DIV is dynamically created"
//3) divClass: "Class name of this ticker, for styling purposes"
//4) delay: delay between message change, in milliseconds
//5) linktarget: Target of links inside RSS feed. Set to "" for current page.
//6) optionalswitch: "optional arbitrary" string to create additional logic for formatrssmessage() to use.
// By default, optionalswitch supports "date", or "date+description" to also show these parts of a RSS feed.
new rsspausescroller("Digg", "pscroller1", "rssclass", 3000, "_new")
new rsspausescroller("Tweetmeme", "pscroller2", "rssclass", 3000, "_new")
new rsspausescroller("Technorati", "pscroller3", "rssclass", 3000, "_new")
new rsspausescroller("Slashdot", "pscroller4", "rssclass", 3000, "_new")
new rsspausescroller("Reddit", "pscroller5", "rssclass", 3000, "_new")
document.write("<br />") //add a divider for demo
</script>