Code để ''lấy'' các mã HTML
--------------------------
Một trang web đẹp hay xấu phần lớn phụ thuộc vào những đoạn javascript
vậy đây sẽ là nơi để post các loại java đó
Các bạn có thể download tại [You must be registered and logged in to see this link.]
Các bạn có thể download tại địa chỉ [You must be registered and logged in to see this link.]
các bạn có thể download tại
[You must be registered and logged in to see this link.]
Javascript Không cho lick chuột phải
chống copy text
[code][color=#000000][font=verdana]var clickmessage="Don't steal my images please."
function disableclick(e)
{
if (document.all)
{
if (event.button==2||event.button==3)
{
if (event.srcElement.tagName=="IMG")
{
alert(clickmessage);
return false;
}
}
}
else if (document.layers)
{
if (e.which == 3)
{
alert(clickmessage);
return false;
}
}
else if (document.getElementById)
{
if (e.which==3&&e.target.tagName=="IMG")
{
alert(clickmessage)
return false
}
}
}
function associateimages()
{
for(i=0;i
- Code:
javascript: document.write('' document.body.innerHTML '');
--------------------------
Một trang web đẹp hay xấu phần lớn phụ thuộc vào những đoạn javascript
vậy đây sẽ là nơi để post các loại java đó
Các bạn có thể download tại [You must be registered and logged in to see this link.]
Các bạn có thể download tại địa chỉ [You must be registered and logged in to see this link.]
các bạn có thể download tại
[You must be registered and logged in to see this link.]
Javascript Không cho lick chuột phải
- Code:
[color=#000000][font=verdana][table align="center" border="0" cellpadding="0" cellspacing="1" width="90%"][tr][td class="code" style="font-family: Courier, 'Courier New', sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; background-color: rgb(250, 250, 250); border-top-color: rgb(247, 253, 255); border-right-color: rgb(247, 253, 255); border-bottom-color: rgb(247, 253, 255); border-left-color: rgb(247, 253, 255); border-width: initial; border-style: initial; color: rgb(0, 102, 0); background-image: url(http://i81.servimg.com/u/f81/14/01/69/16/bg_alt11.gif); border-width: initial; border-style: initial; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; display: block; height: auto; line-height: 1.3em; margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; max-height: 1024px; max-width: 870px; overflow-x: auto; overflow-y: auto; padding-top: 5px; white-space: normal; width: auto; "][color=#2E8B57][font=Courier]function clickNS(e)
{
if (document.layers||(document.getElementById&&!document.all))
{
if (e.which==2||e.which==3) {(message);return false;}
}
}
if (document.layers)
{
document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;
}
else
{
document.onmouseup=clickNS;document.oncontextmenu=clickIE;
}
document.oncontextmenu=new Function("return false")[/font][/color]
[/td][/tr][/table]
[/font][/color]
chống copy text
- Code:
[color=#000000][font=verdana]function disableselect(e){
return false
}
function reEnable(){
return true
}
//if IE4
document.onselectstart=new Function ("return false")
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
[/font][/color]
[code][color=#000000][font=verdana]var clickmessage="Don't steal my images please."
function disableclick(e)
{
if (document.all)
{
if (event.button==2||event.button==3)
{
if (event.srcElement.tagName=="IMG")
{
alert(clickmessage);
return false;
}
}
}
else if (document.layers)
{
if (e.which == 3)
{
alert(clickmessage);
return false;
}
}
else if (document.getElementById)
{
if (e.which==3&&e.target.tagName=="IMG")
{
alert(clickmessage)
return false
}
}
}
function associateimages()
{
for(i=0;i