Simon
Member
Registered: 24th Apr 03
Location: Oxfordshire
User status: Offline
|
I'm trying to add a series of rotating quotes onto a website, I only know very basics of html so doing what I always do - google something and copy the code.
So I've got the code from here: http://www.tutorialstream.com/tutorials/javascript/text-slideshow/
Got it set up on the page working fine. Only problem is that I need to change the colour of all the text to white and Verdana font so it matches the rest of the site and if possible all the quotes in italics. I've tried putting in various font tags in random places but whatever I do it stops anything from working at all. Anybody help me out. Don't really know what I'm doing
Thanks
[Edited on 17-11-2011 by Simon]
|
Nismo
Member
Registered: 12th Sep 02
User status: Offline
|
Use CSS and give it classes, failing that if your not clued up on that but inline style (font & colour) tags in but dont use block quotes only single quotes.
quotations[0]= "<font face='verdana' color='white'>I have not failed. I've just found 10,000 ways that won't work.<br/><i>Thomas Alva Edison</i></font>"
|
Dom
Member
Registered: 13th Sep 03
User status: Offline
|
code:
<style type="text/css">
#quotation {
font-family: Verdana;
font-style: italic;
color: white;
}
</style>
Bung that somewhere on your page or just add the CSS section (everything from # to }) to your CSS stylesheet. And you only need to use classes if the styling is to be applied to more than one element.
|
Simon
Member
Registered: 24th Apr 03
Location: Oxfordshire
User status: Offline
|
Cheers guys, I'll give your suggestions a go on Monday and see what happens. Thanks
|
Simon
Member
Registered: 24th Apr 03
Location: Oxfordshire
User status: Offline
|
No idea what CSS is so used your method Nismo adding that before each quote. Thanks both of you though
|