Basic code (*・ω・*)
posted on 27 Jul 2009 18:53 by lolitaz
ใครต้องการเอาไปใช้ก็ได้เลยนะคะ
รวมโค้ดสำคัญในการสร้างเว็บเพจ (。・ω・。)
โค้ดบีจี
<style>body{background-attachment: fixed;background-image:url(http://www.freewebtown.com/cutepixel/n32.gif);}</style>
โค้ดตัวอักษร
<style>body, ul, li, p{font: MS Sans Serif, Tahoma;font-size:10pt;color:'#999999';}</style>
สกอร์บาร์
<style>BODY { scrollbar-face-color:#FFFFFF;scrollbar-shadow-color:#000000;scrollbar-highlight-color:#000000;scrollbar-3dlight-color:#FFFFFF;scrollbar-darkshadow-color:#FFFFFF;scrollbar-track-color#000000;scrollbar-arrow-color:#000000;-->}</style>
ห้ามคลิกขวา
<script language=JavaScript><!--var message="Function Disabled!";///////////////////////////////////function clickIE() {if (document.all) {alert(message);return false;}}function clickNS(e) {if(document.layers||(document.getElementById&&!document.all)) {if (e.which==2||e.which==3) {alert(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")// --></script>
ห้ามลากแถบดำ
<script language="JavaScript1.2">function disableselect(e){return false}function reEnable(){return true}//if IE4+document.onselectstart=new Function ("return false")//if NS6if (window.sidebar){document.onmousedown=disableselectdocument.onclick=reEnable}</script>
ห้ามลากรูป
<body ondragstart="return false">
เมาส์
<style>body{CURSOR: url('ใส่urlเม้าส์ที่นี่');}a{CURSOR: url('ใส่ urlเม้าส์ที่นี่');}</style>
เว็บกล่อง
<iframe src="Url Link" frameborder="0"width="350" scrolling="yes" height="250"> </iframe>
ชี้แล้วเปลี่ยนรูป
<p><img onmouseover="this.src='After';" onmouseout="this.src='Before';" src="Before" /></p>
เมาส์บวก
<STYLE type=text/css>body {cursor:crosshair;}</STYLE>