SetAttribute(oBody,'link', '#00ff00' ) is NOT working in Firefox 1.0 and Netscape 7.2.
Ok in IE
I just created a button that fires function below.
Need this to work for my new CMS. I need to set this 'link' attribute as well as others dynamically after the editor has been displayed. Works fine in IE but need to workin in Firefox/Mozilla as well.
See code below .
function manipLinkColor(instanceName){
editor_frame = document.getElementById(instanceName+'___Frame');
if (editor_frame!=null) {
editor_source = editor_frame.contentWindow.document.getElementById('eEditorArea');
if (editor_source!=null) {
var oBody = editor_source.contentWindow.document.body;
SetAttribute( oBody, 'link' , '#00ff00' ) ;
return true;
} else { return false; }
} else { return false; }
}
Ok in IE
I just created a button that fires function below.
Need this to work for my new CMS. I need to set this 'link' attribute as well as others dynamically after the editor has been displayed. Works fine in IE but need to workin in Firefox/Mozilla as well.
See code below .
function manipLinkColor(instanceName){
editor_frame = document.getElementById(instanceName+'___Frame');
if (editor_frame!=null) {
editor_source = editor_frame.contentWindow.document.getElementById('eEditorArea');
if (editor_source!=null) {
var oBody = editor_source.contentWindow.document.body;
SetAttribute( oBody, 'link' , '#00ff00' ) ;
return true;
} else { return false; }
} else { return false; }
}
Anybody with a soulution to this ???