View Full Version : How to style a script?

Dec 23rd, 2008, 07:22 PM
Hey, I wasn't sure what category to post this in, but I just downloaded a free "random quotes" script (http://www.javascriptkit.com/script/script2/motivatequotes.shtml) from javascriptkit and I want to be able to style the random quotes to match the fonts on the rest of the page. Can I do this using css or do I need to do something else? thanks.

Dec 23rd, 2008, 07:36 PM
change the last line in your motivatequotes.js file to this instead

document.write('<span class="quote">' + quotes[whichquote] + '</span>')

now in your css, add a .quote class

Dec 23rd, 2008, 07:46 PM