HTML Tips and Tricks
Highlite text on mouse over
<style type="text/css">
<!--
A:link {text-decoration: none;}
A:visited {text-decoration: none;}
A:hover {color: ff0033;}
-->
</style>
No Right Click
<script language="JavaScript">
<!--
var message="No right click."; // Put your message for
the alert box between the quotes.
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;}}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;}}}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);}
document.onmousedown=click;
// -->
</script>
BOLD on Mouse OVER
<style><!--a:hover{font-weight:bold;
}--></style>
CHANGE SCROLLBAR COLOR
<style>
<!--
BODY{
scrollbar-face-color:#0000FF;
scrollbar-arrow-color:black;
scrollbar-track-color:#EEEEEE;
scrollbar-shadow-color:'';
scrollbar-highlight-color:'';
scrollbar-3dlight-color:'';
scrollbar-darkshadow-Color:''; }
-->
</style>
IFRAME BOX
<iframe name="cwindow"
style="border:15px solid gray" width=150 height=150
src="doc.htm"></iframe>
Temporary Popup placed in head tag
HEAD
<SCRIPT LANGUAGE="JAVASCRIPT">
var ccpop_window = null;
function ccpop(status,url) {
if(status != 0) {
if(ccpop != null) ccpop.focus();
else {
var ccpop = open(url, "ccpop", "WIDTH=500,HEIGHT=200");
ccpop_window = ccpop; }
} else {
if(ccpop_window != null) ccpop_window.close(); } }
</SCRIPT>
BODY
A HREF="http://www.discoveryvip.com" onMouseover="ccpop(1,'http://www.discoveryvip.com/popup.htm')"
onMouseout="ccpop(0)"><font color="#FF0000">Click
here</font></A>
Remove underline from link
<A HREF="http://www.yourdomain.com"
STYLE="TEXT-DECORATION: NONE">Your Link</A>
|