Hi, thanks for looking
I am using an updated Set Text of Layer i picked up at the DWexchange. (its updated for better nn6 compatibility)
Anyways, it's a pretty simple script, although I am no javascript coder....I would like to modify it a bit, so that i can use text in an external file, instead of in the function call.
heres what im talking about
(note: there is more script then this, but it is just FindObj sutff that DW uses)
function MM_setTextOfLayer(objName,x,newText) {
var obj = (document.getElementById) ? tmt_findObj(objName) : MM_findObj(objName);
if (obj!=null) with (obj)
if (document.layers) {document.write(unescape(newText)); document.close();}
else innerHTML = unescape(newText);
}
as you can see, it writes text into a layer, here is the link;
onMouseOver="MM_setTextOfLayer('mid-col','','Blah Blah Blah')
anyways, all i want to do is change Blah Blah Blah to and external .txt, i.e.
onMouseOver="MM_setTextOfLayer('mid-col','','myText.htm')
Hope this can be done, ive got my fingers crossed
Thanks,
Al
I am using an updated Set Text of Layer i picked up at the DWexchange. (its updated for better nn6 compatibility)
Anyways, it's a pretty simple script, although I am no javascript coder....I would like to modify it a bit, so that i can use text in an external file, instead of in the function call.
heres what im talking about
(note: there is more script then this, but it is just FindObj sutff that DW uses)
function MM_setTextOfLayer(objName,x,newText) {
var obj = (document.getElementById) ? tmt_findObj(objName) : MM_findObj(objName);
if (obj!=null) with (obj)
if (document.layers) {document.write(unescape(newText)); document.close();}
else innerHTML = unescape(newText);
}
as you can see, it writes text into a layer, here is the link;
onMouseOver="MM_setTextOfLayer('mid-col','','Blah Blah Blah')
anyways, all i want to do is change Blah Blah Blah to and external .txt, i.e.
onMouseOver="MM_setTextOfLayer('mid-col','','myText.htm')
Hope this can be done, ive got my fingers crossed
Thanks,
Al