DHTMLX Docs & Samples Explorer

Selection Test

Select text
Source
<link rel="stylesheet" type="text/css" href="../../codebase/dhtmlxlayout.css">
    <link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxlayout_dhx_terrace.css">
    <script src="../../codebase/dhtmlxcommon.js"></script>
    <script src="../../codebase/dhtmlxcontainer.js"></script>
    <script src="../../codebase/dhtmlxlayout.js"></script>
    <style>
        .text_terrace ::selection {
            color: #454544;
            background-color: #fffcda;
        }
        .text_terrace ::-moz-selection {
            color: #454544;
            background-color: #fffcda;
        }
    </style>
    
    <script>
var dhxLayout;
 
function doOnLoad() {
 
    dhxLayout = new dhtmlXLayoutObject("parentId", "2U");
    dhxLayout.cells("a").setText("Terrace Selection Style");
    dhxLayout.cells("b").setText("Regular Selection Style");
 
    dhxLayout.cells("a").attachObject("objId");
    dhxLayout.cells("b").attachObject("objId2");
 
}
</script> Select text <div id="parentId" style="position: relative; top: 20px; left: 20px; width: 600px; height: 400px;"></div> <div id="objId" class="text_terrace" style="width: 100%; height: 100%; overflow: auto; display: none; font-family: Arial; font-size: 13px; color: #454544; line-height: 17px;"> <div style="margin: 3px 5px 3px 5px;"> King Arthur is a 2004 film directed by Antoine Fuqua and written by David Franzoni. It stars Clive Owen as the title character. <br><br> The makers of the film claim to present a historically accurate version[1] of the Arthurian legends, supposedly inspired by new archaeological findings. The accuracy of these claims is subject to debate, but the film is unusual in representing Arthur as a Roman soldier rather than a medieval knight. <br><br> Arthur, also known as Artorius Castus (Clive Owen), is portrayed as a Roman cavalry officer and commander, the son of a Roman father and a Celtic mother, who leads a military force of Sarmatian cavalry in Britain at the close of the Roman occupation in 467 A.D. He and his men guard Hadrian's Wall against the Woads, a Celtic people who resist Roman rule, based on the historical Picts,[2] led by their mysterious leader Merlin. He is not the first Arthur - over the years, many of his ancestors have manned the Wall, leading Sarmatian auxiliaries. <br><br> As the film starts, Arthur and his remaining men Lancelot (whose voiceover is heard at the beginning and end), Bors, Tristan, Gawain, Galahad and Dagonet - are expecting discharge from the service of the Empire after faithfully serving for 15 years (Lancelot's entry into service as a youth in 452 A.D. is depicted at the very beginning of the film). However, they are dispatched on a final and possibly suicidal mission by Bishop Germanius of Auxerre in the freezing winter to rescue an important Roman family, which includes the Pope's godson, from impending capture by the invading Saxons, who are led by their chief Cerdic and his son Cynric. The knights are charged with this rescue because Rome is retiring from Britain, now considered an indefensible outpost. <br><br> In the course of this mission, Arthur encounters and rescues a Woad princess, Guinevere (Keira Knightley), from the imprisonment and torture by the Roman citizen he is charged with rescuing. Guinevere reveals that she is the daughter of Merlin, and Arthur himself is revealed to be half Celt (on his mother's side). His famous sword, Excalibur, is also shown to be his father's, which he drew from the tombstone on Pendragon's burial mound as a boy (inspiring the legend of the Sword in the Stone) in an effort to rescue his mother who died during a Woad attack. <br><br> The Roman family is rescued, but the party soon encounter the Saxons at an ice-covered lake. Though greatly outnumbered, Arthur, Guinevere and the knights manage to repel them (by getting the ice to break, drowning many) at the cost of Dagonet's life. <br><br> Struck by Rome leaving its subjects to the mercy of the Saxons, Arthur is further disillusioned when he learns that Bishop Pelagius, whose teachings about the equality of all men inspired the brotherhood of his Round Table � has been executed as a heretic by order of Bishop Germanius himself. <br><br> In due course, Arthur and his remaining men forsake Roman citizenship and form an alliance with the Woads to fight the Saxons. In the climactic battle, the Battle of Badon Hill, the Saxons are defeated and Cerdic and his son are killed � at the cost of many lives, including Lancelot's and Tristan's. <br><br> The film ends with Arthur and Guinevere's marriage. Merlin then proclaims him to be their king. King Arthur and his remaining knights promise to lead the Britons, now united after the Romans leave, against future invaders. The last scene shows Lancelot, Dagonet and Tristan roaming the lands freely as reincarnated horses as told in a legend by Lancelot's father. </div> </div> <div id="objId2" style="width: 100%; height: 100%; overflow: auto; display: none; font-family: Arial; font-size: 13px; color: #454544; line-height: 17px;"> <div style="margin: 3px 5px 3px 5px;"> King Arthur is a 2004 film directed by Antoine Fuqua and written by David Franzoni. It stars Clive Owen as the title character. <br><br> The makers of the film claim to present a historically accurate version[1] of the Arthurian legends, supposedly inspired by new archaeological findings. The accuracy of these claims is subject to debate, but the film is unusual in representing Arthur as a Roman soldier rather than a medieval knight. <br><br> Arthur, also known as Artorius Castus (Clive Owen), is portrayed as a Roman cavalry officer and commander, the son of a Roman father and a Celtic mother, who leads a military force of Sarmatian cavalry in Britain at the close of the Roman occupation in 467 A.D. He and his men guard Hadrian's Wall against the Woads, a Celtic people who resist Roman rule, based on the historical Picts,[2] led by their mysterious leader Merlin. He is not the first Arthur - over the years, many of his ancestors have manned the Wall, leading Sarmatian auxiliaries. <br><br> As the film starts, Arthur and his remaining men Lancelot (whose voiceover is heard at the beginning and end), Bors, Tristan, Gawain, Galahad and Dagonet - are expecting discharge from the service of the Empire after faithfully serving for 15 years (Lancelot's entry into service as a youth in 452 A.D. is depicted at the very beginning of the film). However, they are dispatched on a final and possibly suicidal mission by Bishop Germanius of Auxerre in the freezing winter to rescue an important Roman family, which includes the Pope's godson, from impending capture by the invading Saxons, who are led by their chief Cerdic and his son Cynric. The knights are charged with this rescue because Rome is retiring from Britain, now considered an indefensible outpost. <br><br> In the course of this mission, Arthur encounters and rescues a Woad princess, Guinevere (Keira Knightley), from the imprisonment and torture by the Roman citizen he is charged with rescuing. Guinevere reveals that she is the daughter of Merlin, and Arthur himself is revealed to be half Celt (on his mother's side). His famous sword, Excalibur, is also shown to be his father's, which he drew from the tombstone on Pendragon's burial mound as a boy (inspiring the legend of the Sword in the Stone) in an effort to rescue his mother who died during a Woad attack. <br><br> The Roman family is rescued, but the party soon encounter the Saxons at an ice-covered lake. Though greatly outnumbered, Arthur, Guinevere and the knights manage to repel them (by getting the ice to break, drowning many) at the cost of Dagonet's life. <br><br> Struck by Rome leaving its subjects to the mercy of the Saxons, Arthur is further disillusioned when he learns that Bishop Pelagius, whose teachings about the equality of all men inspired the brotherhood of his Round Table � has been executed as a heretic by order of Bishop Germanius himself. <br><br> In due course, Arthur and his remaining men forsake Roman citizenship and form an alliance with the Woads to fight the Saxons. In the climactic battle, the Battle of Badon Hill, the Saxons are defeated and Cerdic and his son are killed � at the cost of many lives, including Lancelot's and Tristan's. <br><br> The film ends with Arthur and Guinevere's marriage. Merlin then proclaims him to be their king. King Arthur and his remaining knights promise to lead the Britons, now united after the Romans leave, against future invaders. The last scene shows Lancelot, Dagonet and Tristan roaming the lands freely as reincarnated horses as told in a legend by Lancelot's father. </div> </div>