...

View Full Version : Javascript and CSS



csam0003
03-20-2009, 01:29 AM
Hi,

I have a js file with this function

function wrapText(){

var workArea = "";
var openTag = '<span class=red>';

.....etc

}

The css file called something.css is saved in the same folder as the js file, however I do not think it the variable "openTag" is refering to the class specified in the css file.
any ideaS?

THANKS

rnd me
03-20-2009, 01:38 AM
var openTag = '<span class="red">';

also, firebug can let you browse a page's elements so you can quickly ascertain what's being applied to what.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum