Created
June 3, 2011 15:59
-
-
Save shtrih/1006583 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function SharedForm() | |
{ | |
this.init(); | |
} | |
SharedForm.prototype = | |
{ | |
container: null, | |
close: null, | |
init: function() | |
{ | |
var text, containerText; | |
this.container = document.createElement("div"); | |
this.container.className = 'gui sharedFrm'; | |
this.container.style.position = 'absolute'; | |
this.container.style.top = '0px'; | |
this.container.style.visibility = 'hidden'; | |
containerText = document.createElement("div"); | |
containerText.style.margin = '5px 5px'; | |
containerText.style.textAlign = 'left'; | |
this.container.appendChild(containerText); | |
text = document.createElement("p"); | |
text.style.textAlign = 'left'; | |
text.innerHTML = '<b>Link:</b><input onclick="this.select()" readonly="readonly" value="http://kjshdfkjsd" /> Size: 222Kb'; | |
containerText.appendChild(text); | |
text = document.createElement("hr"); | |
containerText.appendChild(text); | |
this.close = document.createElement("Close"); | |
this.close.className = 'button'; | |
this.close.innerHTML = '<span class="key">Close</span>'; | |
this.container.appendChild(this.close); | |
}, | |
show: function() | |
{ | |
this.container.style.visibility = 'visible'; | |
}, | |
hide: function() | |
{ | |
this.container.style.visibility = 'hidden'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment