Use these to select an area of my site



PROGRAMMING

DOCUMENTATION

SOFTWARE

UCF

Fade in background with VBScript

This page uses VBScript to illustrate how to create a fade in background.

Notes

  • This will not work if you use a image as your background.
  • You may have to use your browser's refresh function to see the effect multiple times.

Code Details

<body bgcolor="FFFFFF" text="000000" link="0000FF" vlink="800080">
<!-- Fade background. Just change the Bgcolor for effects -->
<script language = "vbscript">
<!-- To hide VBScript code from browsers that do not support it.
    For i = 16 To 255 Step 2 
      y = Hex(i)
      Document.Bgcolor = y & y & y
    Next
    Document.Bgcolor = "ffffff"
-->
</script>

Home Page | Personal | Professional | What's New | Hot Sites | Search | Write Us