1.Code tạo khung chứa code đẹp:
DEMO: Khung chứa code bên dưới
<div style="border: 10px inset #007ABE; color: black; height: 200px; margin: 10px 0; overflow: auto; padding: 10px; text-align: left; width: 620px;">
Nội dung bài viết của bạn ở đây </div>
Nội dung bài viết của bạn ở đây </div>
2.Code tạo khung với chức năng Select All
CODE:
<form name="MyTextBoxForm">
<input name="button" onclick="javascript:this.form.MyTextBox.focus();this.form.MyTextBox.select();" type="button" value="Chọn tất cả" /><br/>
<textarea cols="60" name="MyTextBox" rows="12" wrap="off">
Pate code here!
</textarea>
</form>
DEMO:
CODE:
<style type="text/css">
.note{background:#FFEA97 url(http://goo.gl/w4a2f) repeat-x 0
0;color:#796100;width:83%;font-weight:normal;padding:13px 15px
0;margin-bottom:2.5em;border:1px solid #E1B500;-moz-border-radius:6px;-webkit-border-radius:6px;border-radius:6px;-moz-box-shadow:1px
1px 2px rgba(0,0,0,.4);-webkit-box-shadow:1px 1px 2px
rgba(0,0,0,.4);box-shadow:1px 1px 2px
rgba(0,0,0,.4);position:relative;left:34px}.note p{margin-bottom:1.5em}.note
p:last-child{margin-bottom:0}.note ul{margin-left:8px;margin-bottom:1.5em}.note
ul:last-child{margin-bottom:0}.note li{background:url(http://goo.gl/6kexs)
no-repeat 0
-95px;list-style-type:none;padding-left:18px;margin-bottom:.75em}.note
h5{font-size:14px;font-weight:bold;margin:0 0 .65em}.note
span{background:url(http://goo.gl/6kexs) no-repeat 100%
0;width:33px;height:40px;position:absolute;left:-34px;top:9px}
</style>
<br />
<div class="note">
<h5>
Lưu ý!</h5>
Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua...<br
/>
<ul>
<li>Vivamus mattis nibh sed purus ullamcorper
mollis.</li>
<li>Phasellus egestas nulla lobortis est eleifend
dapibus.</li>
<li>Morbi at nisi blandit eros rhoncus gravida et quis
leo.</li>
</ul>
</div>
<form name="MyTextBoxForm"><input
name="button"
onclick="javascript:this.form.MyTextBox.focus();this.form.MyTextBox.select();"
type="button" value="Select all"/>
<textarea cols="59" name="MyTextBox"
rows="18" wrap="on" style="background:#eee;
color:#464646; border:1px #A0C4EA dashed;">NỘI_DUNG_CODE</textarea>
</form>
CODE:
<script type="text/javascript">
function hide_float_right() {
var content =
document.getElementById('float_content_right');
var hide =
document.getElementById('hide_float_right');
if
(content.style.display == "none")
{content.style.display = "block"; hide.innerHTML = '<a
href="javascript:hide_float_right()">Tắt quảng cáo [X]</a>';
}
else {
content.style.display = "none"; hide.innerHTML = '<a
href="javascript:hide_float_right()">Xem quảng cáo...</a>';
}
}
</script>
<style>
.float-ck { position: fixed; bottom: 0px; z-index: 9000}
* html .float-ck
{position:absolute;bottom:auto;top:expression(eval
(document.documentElement.scrollTop+document.docum
entElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0)))
;}
#float_content_right {border: 1px solid #01AEF0;}
#hide_float_right {text-align:right; font-size: 11px;}
#hide_float_right a {background: #01AEF0; padding: 2px 4px;
color: #FFF;}
</style>
<div class="float-ck" style="right:
0px" >
<div id="hide_float_right">
<a href="javascript:hide_float_right()">Tắt
Quảng Cáo [X]</a></div>
<div id="float_content_right">
<!-- Start quang cao-->
<!-- Start of
adf.ly banner code --><a href="http://adf.ly/"><img border="0"
src="https://cdn.adf.ly/images/banners/adfly.300x250.1.gif"
width="300" height="250" title="AdF.ly - shorten links
and earn money!" /></a>
<!-- End of adf.ly banner code -->
<!-- End quang cao -->
</div>
</div>
CODE:
<script>
var bar=0
var line="||"
var amount="||"
function count(){
bar=bar+2
amount =amount + line
document.loading.chart.value=amount
document.loading.percent.value=bar+"%"
if (bar<99)
{setTimeout("count()",125);}
else
{loaibo()}
}
</script>
<div id="TGTH_Loading" align="center" style="position:fixed;visibility:hidden;-moz-opacity: 0.80px;background: #000000;filter: alpha(opacity=80);height: 100%;left: 0%;top: 0%;opacity: 0.80;width: 100%;z-index: 1001;">
<form name="loading">
<table align="center" style="position:fixed;top:11%; left: 0px;" height="90%" width="100%"><tbody><tr><td valign="center"><p align="center" style="font-family:Verdana;color:red;font-size:20pt;font-weight:bold">Welcome to One Dream Family Blogspot</p><p align="center" style="font-
family:Verdana;color:#295dc6;font-size:15pt;font-weight:bold"> Cảm ơn bạn đã dành thời gian ghé thăm One Dream Family Blogspot</p><p align="center" style="font-family:Verdanal;font-size:8pt"><input style="border: medium none ; color: white; background-color:black; text-align: center;" size="47" name="percent" /><br /><input style="border-style: none; padding: 0px; font-weight: bolder; color:white ; font-family: Arial; background-color: rgb(53, 53, 53);" size="45" name="chart" /><br /><script>count()</script><b><font style="font-size: 8pt;" color="#007ABE" face="Verdana"> Đang tải dữ liêu … Đợi chút xíu nhé!</font></b></p><br /><p align="center"style="font-family:Verdana;font-weight:bold"><a href="Javascript:loaibo()()" style="color:yellow;font-size:10pt"> Nhấn vào đây nếu bạn không muốn đợi lâu </a></p>
</td></tr></tbody></table></form>
</div>
var bar=0
var line="||"
var amount="||"
function count(){
bar=bar+2
amount =amount + line
document.loading.chart.value=amount
document.loading.percent.value=bar+"%"
if (bar<99)
{setTimeout("count()",125);}
else
{loaibo()}
}
</script>
<div id="TGTH_Loading" align="center" style="position:fixed;visibility:hidden;-moz-opacity: 0.80px;background: #000000;filter: alpha(opacity=80);height: 100%;left: 0%;top: 0%;opacity: 0.80;width: 100%;z-index: 1001;">
<form name="loading">
<table align="center" style="position:fixed;top:11%; left: 0px;" height="90%" width="100%"><tbody><tr><td valign="center"><p align="center" style="font-family:Verdana;color:red;font-size:20pt;font-weight:bold">Welcome to One Dream Family Blogspot</p><p align="center" style="font-
family:Verdana;color:#295dc6;font-size:15pt;font-weight:bold"> Cảm ơn bạn đã dành thời gian ghé thăm One Dream Family Blogspot</p><p align="center" style="font-family:Verdanal;font-size:8pt"><input style="border: medium none ; color: white; background-color:black; text-align: center;" size="47" name="percent" /><br /><input style="border-style: none; padding: 0px; font-weight: bolder; color:white ; font-family: Arial; background-color: rgb(53, 53, 53);" size="45" name="chart" /><br /><script>count()</script><b><font style="font-size: 8pt;" color="#007ABE" face="Verdana"> Đang tải dữ liêu … Đợi chút xíu nhé!</font></b></p><br /><p align="center"style="font-family:Verdana;font-weight:bold"><a href="Javascript:loaibo()()" style="color:yellow;font-size:10pt"> Nhấn vào đây nếu bạn không muốn đợi lâu </a></p>
</td></tr></tbody></table></form>
</div>
0 nhận xét:
Đăng nhận xét