That can be done as well using the css style. Each modal has a unique id configured for it when it is setup (example from the source code of the demo page):
Code:
<script type="text/javascript">
var agreewin=dhtmlmodal.open("agreebox", "iframe", "modalfiles/agreement.htm", "This Page's Terms of service", "width=590px,height=450px,center=1,resize=1,scrolling=0", "recal")
agreewin.onclose=function(){ //Define custom code to run when window is closed
var theform=this.contentDoc.getElementById("eula") //Access form with id="eula" inside iframe
var yesbox=theform.eulabox[0] //Access the first radio button within form
var nobox=theform.eulabox[1] //Access the second radio button within form
if (yesbox.checked==true)
alert("You agreed to the terms")
else if (nobox.checked==true)
alert("You didn't agree to the terms")
return true //Allow closing of window in both cases
}
</script>
So, if you only want to remove that particular modal's dragbar, add this to your stylesheet:
Code:
#agreebox .drag-handle {
display:none;
}
It will only knock out the one for that modal.
Bookmarks