User:Lucianolll

From MozillaWiki
Jump to: navigation, search

<a href="javascript: var documtitle = document.title ; var documloc = document.location.href ; var wining = window.open('','winder',config='resizable=1,status=1,scrollbars=1,width=540,height=215'); var lnkex = document.getElementsByTagName('link'); wining.document.open(); wining.document.writeln('<html><head><style type=\'text/css\'> body {margin: 0px 16px; font-family: Arial; font-size: 13px;} form {margin: 1px;} input {font-size: 11px; border: 1px solid #223366; background: #ddcc99; margin-right: 1px;} textarea {width: 99%; height: 110px; margin: 1px 3px; border: solid 2px #004466; overflow: auto; font-family: Arial; font-size: 13px; padding: 4px 4px 4px 6px;} .selecta {text-align: right; padding-top: 4px; padding-right: 10px; font-weight: 700; filter: alpha(opacity=65); opacity: .65;} </style></head><body>'); wining.document.writeln('<div class=\'selecta\' style=\'background: #006066;\' onclick=\'self.close()\' />Close</div>'); wining.document.writeln('<form><textarea wrap=\'off\' ondblclick=\'this.select(); this.focus();\'>'); wining.document.writeln(documtitle); wining.document.writeln(documloc); wining.document.writeln('</textarea></form>'); wining.document.writeln('<div class=\'selecta\' style=\'background: #ef8faf;\' onclick=\'adSelect()\' />Select</div>'); wining.document.writeln('<form name=%22ads%22 action=%22javascript: (function() { window.opener.location.href = document.ads.elements[0].value; void(0); }());%22><input type=%22text%22 value=%22%22 onkeyup=%22if(this.value.substring(0,3)==\'www\') this.value=\'http://\'+ this.value%22 ondblclick=\'this.select(); this.focus();\' style=%22width: 270px; background: #eeddbb; margin-right: 5px; %22 /><input type=%22button%22 value=%22Opn%22 onclick=%22javascript: window.opener.location.href = this.form.elements[0].value%22 /><input type=%22button%22 value=%22Go%22 onclick=%22javascript: document.location.href = this.form.elements[0].value%22 /><input type=%22button%22 value=%22Up%22 onclick=%22javascript: window.open(this.form.elements[0].value)%22 /></form>'); wining.document.writeln('<div id=%22adloc%22><a href=%22'+ documloc +'%22>'+ documtitle +'</a></div>'); wining.document.writeln('<a onclick=%22var gendiv = document.createElement(\'div\'); var refloc = document.getElementById(\'adloc\').innerHTML; var adNode= document.createTextNode(refloc +\'<br/>\'); gendiv.appendChild(adNode); this.nextSibling.appendChild(gendiv)%22>Get</a><div></div><br/>'); for(i=0; i<lnkex.length; i++) {wining.document.writeln('<a href=%22'+ lnkex[i].href +'%22 target=%22_blank%22>'+ lnkex[i].getAttribute(%22href%22) +'</a><br/>')}; wining.document.writeln('\<script\> window.setTimeout(\'self.focus()\',400); function adSelect() { var texti = document.forms[0].elements[0]; texti.select(); texti.focus(); } window.setTimeout(\'adSelect()\',900) \</script\>'); wining.document.writeln('</body></html>'); wining.document.close(); void(0);">RFS</a> For implementation test as optional button of information of pages --- Favor to twirl the text as HTML ;