Strict Standards: Only variables should be passed by reference in /home/abeall/public_html/fireworks/download.php on line 28

Warning: Cannot modify header information - headers already sent by (output started at /home/abeall/public_html/fireworks/download.php:28) in /home/abeall/public_html/fireworks/download.php on line 44
// Fireworks JavaScript Command // Copy to Fireworks/Configuration/Commands/ // 2007 Aaron Beall - http://fireworks.abeall.com // Version 1.1 // Requires CS3+ var dom = fw.getDocumentDOM(); var sel = [].concat(fw.selection); function UpperCaseFirst(){ if(!dom) return; var texts = []; for(var s in sel){ if(sel[s] == "[object Text]") texts.push(sel[s]); } if(!texts.length) return alert("Please select at least one text box or some text."); if(texts.length > 1){ for(var t in texts) setTextChars(texts[t],toTitleCase(texts[t].textChars)); }else{ var selIndex = fw.textInsertionIndex; var selLength = fw.textInsertionLength; if(selIndex == -1){ setTextChars(texts[0],toTitleCase(texts[0].textChars)); }else{ if(selLength == 0) return alert("Select some text, or select the entire text box."); var chars = texts[0].textChars; setTextChars( texts[0],chars.substring(0,selIndex) + toTitleCase(chars.substring(selIndex,selIndex+selLength)) + chars.substring(selIndex+selLength,chars.length) ); } } // change first letter after every whitespace to uppercase /*function doUpperCaseFirst(txt){ txt = txt.toLowerCase(); // lowercase everything first var cha, isWhite = true, newText = ""; for(var c = 0; c