filePath.html

<HTML>

<HEAD>

<script>var dFrameFilePath = '../../../../../dFrame/'</script>

<script language="Javascript" src="../../../../../dFrame/dFrame/lib/DFrameAPI.js"></script>

<script language="Javascript">

//Style

DFrameAPI.include('dFrame/styles/blue/styleBlue.js')

DFrameAPI.onLoad = function(){

var txtStyle = new ButtonStyle()

txtStyle.setBordersWidth(0)

var dFrame = new DFrame([10, 10, 90, 90], 'filePath.html', dFrameStyle)

dFrame.addText([10, 10], '2 different ways to indicate a filePath')

var bar = dFrame.addBar(null, null, barStyle)

bar.setBackgroundImage('dFrame/doc/Reference/examples/filePath/yellow.gif')

var txt = bar.addText(null, 'bar.setBackgroundImage(\'dFrame/doc/Reference/examples/filePath/yellow.gif\')', txtStyle)

var bar = dFrame.addBar(null, null, barStyle)

bar.setBackgroundImage('./filePath/red.gif', 'A')

bar.addText(null, 'bar.setBackgroundImage(\'./filePath/red.gif\', \'A\')', txtStyle)

dFrame.show()

}

</script>

</HEAD>

</HTML>