Border Color Change

[Total: 0    Average: 0/5]

This example changes the border color.

Head Code:

<script src="http://www.js-examples.com/bin/div_construct.js"></script>
<script>
var _msg='<div style="border:3;border-Color:red;border-Style:solid;width:300;height:300;clip:rect(0,300,300,0)">SAMPLE TEXT<BR><a href="javascript:colorIt1()">Change border color to gold</a></div>';
//function NewDiv(window, id, body, left, top, width, height, zIndex, absolute) {
var _d = new NewDiv(window,"d0",_msg,0,0,300,300,1,"RELATIVE");
</script>

Body Code:

<script>
_d.output();
function colorIt1() {
  var _msg1='<div style="border:3;border-Color:gold;border-Style:solid;width:300;height:300;clip:rect(0,300,300,0)">SAMPLE TEXT<BR><a href="javascript:colorIt2()">Change border color to red</a></div>';
  _d.setBody(_msg1);
}
function colorIt2() {
  var _msg1='<div style="border:3;border-Color:red;border-Style:solid;width:300;height:300;clip:rect(0,300,300,0)">SAMPLE TEXT<BR><a href="javascript:colorIt1()">Change border color to gold</a></div>';
  _d.setBody(_msg1);
}
</script>

Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *