<1>Insert Part 3 anywhere in body. Don't forget to change text!
<2>
<3>
<4><SCRIPT LANGUAGE="vbscript">
Document.Write "<CENTER><H3>My Web Page</H3>"
Alert "Welcome to my web page!"
</SCRIPT>
<End>
"Simple alert on unload"
<1>Insert Part 1 in between your </HEAD>and</HEAD> tags and Part 3 anywhere in body. Don't forget to change text!
<2><SCRIPT LANGUAGE="vbscript">
Sub Window_OnUnload
Alert "Good Bye, Come Again Soon!!"
End Sub
</SCRIPT>
<3>
<4><H1>Hallo</H1>
<End>
"Simple alert - three buttons"
<1>Insert Part 1 in between your </HEAD>and</HEAD> tags and Part 3 anywhere in body. Change text in the lines marked 'CHANGE TEXT and BUTTON 1, 2 and 3.
<2><SCRIPT LANGUAGE="vbscript">
Dim CRLF
CRLF = Chr(13) & Chr(10)
Sub cmdButton1_OnClick
Call showAlertBox(Top.cmdButton1.Value)
End Sub
Sub cmdButton2_OnClick
showAlertBox Top.cmdButton2.Value
End Sub
Sub cmdButton3_OnClick
showAlertBox Top.cmdButton3.Value
End Sub
Sub showAlertBox(strButtonValue)
dim strMessage
strMessage = "This is to let you know " & CRLF 'CHANGE TEXT
strMessage = strMessage & "you just pressed the button" & CRLF 'CHANGE TEXT
strMessage = strMessage & "marked " & strButtonValue 'CHANGE TEXT
<1>This script will play a different audio clip to greet you when the page loads, depending on what time of day it is. You should have three different .wav files, morning.wav, afternoon.wav and evening.wav. Insert Part 1 in between your </HEAD>and</HEAD> tags.
<1>Script plays MIDI files on load randomly. You should have 5 mid files named sound1.mid through sound5.mid, placed in the same folder. Insert Part 3 in body.
<1>Link changes color on mouse over. Insert Part 1 in between <HEAD>and</HEAD> tags, Part 2 as your <BODY> tag (set bacground color as you wish), and Part 3 in body. Change HEXCOLOR, YOUR LINK 1... and LINK DESCRIPTION 1...
<2><SCRIPT LANGUAGE="VBScript">
<!--
Function OnLink()
If window.event.toElement.tagname = "A" Then
window.event.toElement.style.color = "HEXCOLOR"
End If
End Function
Function OffLink()
If Not IsNull(window.event.fromElement.tagname) Then
<4><A HREF="YOUR LINK 1">LINK DESCRIPTION 1</A><BR>
<A HREF="YOUR LINK 2">LINK DESCRIPTION 1</A>
<!--You can add as meny links as you want-->
<End>
"Random Background Image Changer"
<1> Insert Part 1 in between <HEAD>and</HEAD> tags, Part 2 as your <BODY> tag (set bacground color as you wish), and Part 3 in body. Change BGIMAGE1 and BGIMAGE2. Change text.
<2><script language="VBScript">
<!--
Dim BODYTAG 'HTML tag to include in page
Dim NumImages, Image() 'Used to hold the image
Dim RandomNumber 'Used to generate a random number
Dim BackgroundPath 'Used for path to background images
'Path to your images in the case that thay are in different folder then 'your .html
BackgroundPath = ""
NumImages = 2
ReDim Image(NumImages - 1) 'Subtract one since arrays use whole numbers
'You need to set these to the images in the path on your server
<3><!-- Do not set the Background initially. The script won't display the
background if it was already specified in the body tag. However, you can set
the background color. -->
<BODY BGCOLOR="#FFFFC8">
<4><!-- Your text-->
<H1>Random Image Displayer</H1>
This page automatically loaded a background image at random.
<End>
"Random background, colors and fonts Changer"
<1>This script changes background, forecolor, link colors and fonts. Make sure that your images have file names: 1.jpg, 2.jpg, 3.jpg and 4.jpg. Insert Part 2 as your <BODY> tag and Part 3 in body of your document. Change YOUR LINK 1...,YOUR LINK DESCRIPTION 1..... and contents of your page.
<2>
<3><SCRIPT LANGUAGE="vbscript">
'create arrays for the body tag variables
Dim Lnk(4)
Dim VLnk(4)
Dim FColor(4)
Dim Fnt(4)
'create a global variable
Dim x
'Variables for Version No. 1
Lnk(0) = "Fuchsia"
Vlnk(0) = "Silver"
FColor(0) = "Lime"
Fnt(0) = "tahoma"
'Variables for Version No. 2
Lnk(1) = "blue"
Vlnk(1) = "fushia"
FColor(1) = "white"
Fnt(1) = "times roman"
'Variables for Version No. 3
Lnk(2) = "green"
Vlnk(2) = "maroon"
FColor(2) = "blue"
Fnt(2) = "arial"
'Variables for Version No. 4
Lnk(3) = "lime"
Vlnk(3) = "teal"
FColor(3) = "yellow"
Fnt(3) = "ms sans serif"
'Variables for Version No. 5
Lnk(4) = "navy"
Vlnk(4) = "gray"
FColor(4) = "black"
Fnt(4) = "verdana"
'initialise the generator
RANDOMIZE
'generate a random number twixt none and four
x = Int((5 - 1 + 1) * Rnd)
'turn said number into a string making sure there are no spaces
strX = Trim(CStr(x))
'add the jpg file extension and youve got a file name
randomimage = strX & ".jpg"
'write the randomly generated body tag into the document
<!--This writes the Version Number using the x global varaible-->
<SCRIPT LANGUAGE="vbscript">
Document.Write CStr(x+1)
</SCRIPT>
<CENTER>
<H2>YOUR TITLE</H2>
<B>
<A HREF="YOUR LINK 1">YOUR LINK DESCRIPTION 1</A><BR>
<A HREF="YOUR LINK 2">YOUR LINK DESCRIPTION 2</A><BR>
<A HREF="YOUR LINK 3">YOUR LINK DESCRIPTION 3</A><BR>
<!--Add as many links as you want-->
</B>
<P>
<H3>I have a randomly changing Home Page...see if you can collect the set. Your text goes here !!!</H3>
</CENTER>
</FONT>
<End>
"Day - Night Link and color Changer"
<1>This script changes background, color, links, link description and text according to time. Insert Part 1 in between <HEAD>and</HEAD> tags, insert Part 2 as your <BODY> tag (it's being writen automaticly) and Part 3 in body of your document. Change YOUR NIGHT TIME TITLE, YOUR DAY TIME TITLE, YOUR NIGHT TIME LINK DESCRIPTION 1...,YOUR DAY TIME LINK DESCRIPTION 1..., YOUR NIGHT TIME LINK 1..., YOUR DAY TIME LINK 1..., DAY TIME IMAGE, and NIGHT TIME IMAGE.
<2><SCRIPT LANGUAGE="vbscript">
'create arrays for the body tag variables
Dim Lnk(1)
Dim VLnk(1)
Dim FColor(1)
Dim Fnt(1)
Dim Greet(1)
'declare two dimensional arrays for the links
Dim LinkDesc(1,4)
Dim LinkURL(1,4)
'declare two constants
Dim DAYTIME
Dim NIGHTTIME
DAYTIME = 1
NIGHTTIME = 0
'create a global variable
Dim x
'Variables for Nighttime Version, can be changed
Lnk(NIGHTTIME) = "blue"
Vlnk(NIGHTTIME) = "fushia"
FColor(NIGHTTIME) = "yellow"
Fnt(NIGHTTIME) = "times roman"
Greet(NIGHTTIME) = "YOUR NIGHT TIME TITLE"
'Variables for Daytime Version, can be changed
Lnk(DAYTIME) = "red"
Vlnk(DAYTIME) = "teal"
FColor(DAYTIME) = "orange"
Fnt(DAYTIME) = "ms sans serif"
Greet(DAYTIME) = "YOUR DAY TIME TITLE"
'Descriptions for the Links
LinkDesc(NIGHTTIME,0) = "YOUR NIGHT TIME LINK DESCRIPTION 1"
LinkDesc(NIGHTTIME,1) = "YOUR NIGHT TIME LINK DESCRIPTION 2"
LinkDesc(NIGHTTIME,2) = "YOUR NIGHT TIME LINK DESCRIPTION 3"
LinkDesc(NIGHTTIME,3) = "YOUR NIGHT TIME LINK DESCRIPTION 4"
LinkDesc(NIGHTTIME,4) = "YOUR NIGHT TIME LINK DESCRIPTION 5"
LinkDesc(DAYTIME,0) = "YOUR DAY TIME LINK DESCRIPTION 1"
LinkDesc(DAYTIME,1) = "YOUR DAY TIME LINK DESCRIPTION 2"
LinkDesc(DAYTIME,2) = "YOUR DAY TIME LINK DESCRIPTION 3"
LinkDesc(DAYTIME,3) = "YOUR DAY TIME LINK DESCRIPTION 4"
LinkDesc(DAYTIME,4) = "YOUR DAY TIME LINK DESCRIPTION 5"
<1>Insert Part 3 anywhere in your body. Change YOUR LINK 1... and YOUR LINK DESCRIPTION 1...
<2>
<3>
<4><SELECT NAME="SecondList" >
<OPTION VALUE="Sample1">YOUR LINK DESCRIPTION 1
<OPTION VALUE="Sample2">YOUR LINK DESCRIPTION 2
<OPTION VALUE="Sample3">YOUR LINK DESCRIPTION 3
<OPTION VALUE="Sample4">YOUR LINK DESCRIPTION 4
<OPTION VALUE="Sample5">YOUR LINK DESCRIPTION 5
</SELECT>
<SCRIPT LANGUAGE=VBSCRIPT>
sub SecondList_OnChange
If SecondList.selectedindex = 0 then
Window.Location.Href = "YOUR LINK 1"
ElseIf SecondList.selectedindex = 1 then
Window.Location.Href = "YOUR LINK 2"
ElseIf SecondList.selectedindex = 2 then
Window.Location.Href = "YOUR LINK 3"
ElseIf SecondList.selectedindex = 3 then
Window.Location.Href = "YOUR LINK 4"
ElseIf SecondList.selectedindex = 4 then
Window.Location.Href = "YOUR LINK 5"
End If
end sub
</SCRIPT>
<End>
"List box links"
<1>Insert Part 3 anywhere in your body. Change YOUR LINK 1... and YOUR LINK DESCRIPTION 1...
<2>
<3>
<4><FORM NAME="ValidForm">
<SELECT NAME="PAGETARGET" size=4>
<OPTION VALUE="YOUR LINK 1">YOUR LINK DESCRIPTION 1
<OPTION VALUE="YOUR LINK 1">YOUR LINK DESCRIPTION 1
<OPTION VALUE="YOUR LINK 1">YOUR LINK DESCRIPTION 1
<OPTION VALUE="YOUR LINK 1">YOUR LINK DESCRIPTION 1
<!--You can add here as many items as you want-->
</SELECT>
</FORM>
<SCRIPT LANGUAGE=VBSCRIPT>
Sub PAGETARGET_onDblClick
set form = document.ValidForm
Dim TheIndex
TheIndex = form.PAGETARGET.selectedIndex
navigate form.PAGETARGET.value
End Sub
</SCRIPT>
<End>
"Mouse over link - Status bar message"
<1>Insert Part 1 in between <HEAD>and</HEAD> tags and Part 3 in body. Change YOUR MESSAGE, LINK DESCRIPTION and YOUR LINK. You can add as meny links as you want, matching Sub and A NAME (link1, link2...
<1>Link descriptions are being displayed in TextArea "OnMouseOver". Insert Part 1 in between <HEAD>and</HEAD> tags and Part 3 in body. Change Text Description 1..., Your Link 1... and Your Link Descripotion 1...
<1>Link descriptions are being displayed on Label "OnMouseOver". Insert Part 1 in between <HEAD>and</HEAD> tags and Part 3 in body. Change Text Description 1..., Your Link 1... and Your Link Descripotion 1...
<2><SCRIPT language="vbscript">
Dim DescribeLink(5)
DescribeLink(0) = "Text Description 1"
DescribeLink(1) = "Text Description 2"
DescribeLink(2) = "Text Description 3"
DescribeLink(3) = "Text Description 4"
DescribeLink(4) = "Text Description 5"
DescribeLink(5) = "Text Description 6"
Sub ShowLink(LinkNo)
Label1.Caption = DescribeLink(CInt(LinkNo))
tID = setTimeout("ClearDesc()",5000)
End Sub
Sub LinkTo_onMouseMove(s,b,x,y)
tID = setTimeout("ClearDesc()",5000)
End Sub
Sub ClearDesc()
Status = ""
Label1.Caption = ""
End Sub
</SCRIPT>
<3>
<4><HR>
<A LANGUAGE="vbscript" NAME="LinkTo" OnMouseOver="call showLink(0)" HREF="Your Link 1">Your Link Description 1</A><BR>
<A LANGUAGE="vbscript" NAME="LinkTo" OnMouseOver="call showLink(1)" HREF="Your Link 2">Your Link Description 2</A><BR>
<A LANGUAGE="vbscript" NAME="LinkTo" OnMouseOver="call showLink(2)" HREF="Your Link 3">Your Link Description 3</A><BR>
<A LANGUAGE="vbscript" NAME="LinkTo" OnMouseOver="call showLink(3)" HREF="Your Link 4">Your Link Description 4</A><BR>
<A LANGUAGE="vbscript" NAME="LinkTo" OnMouseOver="call showLink(4)" HREF="Your Link 5">Your Link Description 5</A><BR>
<A LANGUAGE="vbscript" NAME="LinkTo" OnMouseOver="call showLink(5)" HREF="Your Link 6">Your Link Description 6</A><BR>
<1>Insert Part 1 in between <HEAD>and</HEAD> tags and Part 3 wherever you want in body of your document. You can add as meny links as you want, matching Sub and A NAME (link1, link2...
<2><SCRIPT LANGUAGE="vbscript">
Sub link1_onClick
Alert "Description of Page"
End Sub
</SCRIPT>
<3>
<4><A NAME="link1" HREF="YOUR LINK">YOUR LINK DESCRIPTION</A>
<End>
"Button click - open new window"
<1>This script opens a new window when you click on the button. Insert Part 1 in between <HEAD>and</HEAD> tags and Part 3 in body. Change YOUR LINK and BUTTON CAPTION. You can also change attributes of new window.(strOptions)
<1>Fade in effecat with two titles. Insert Part 2 as your <BODY> tag, insert Part 3 in body of your document. Change TITLEs...
<2>
<3><BODY BGCOLOR = FFFFFF>
<4><CENTER><Font face = Arial size = 4 color = ffffff>
<SCRIPT LANGUAGE="VBScript">
For i = 255 To 1 Step -5
x = Hex(i)
Document.Bgcolor = x & x & x
If i = 255 Then
Document.Write "YOUR TITLE NO. 1"
End If
Next
Document.Bgcolor = "000000"
</SCRIPT>
</Font>
</CENTER>
<BODY BGCOLOR=BLACK>
<FONT SIZE=7 COLOR = FFFFFF><B><I><CENTER>YOUR TITLE NO. 2</CENTER></I></B></FONT>
<End>
"Fade In #2"
<1>Insert Part 2 as your <BODY> tag, insert Part 3 in body of your document. Change TITLEs... and Your Text...
<2>
<3><BODY Bgcolor = "000000">
<4><CENTER><Font face = Tahoma size = 6>
<SCRIPT LANGUAGE="VBScript">
For i = 1 To 255 Step 5
x = Hex(i)
Document.Bgcolor = x & x & x
If i = 1 Then
Document.Write "YOUR TITLE NO. 1
End If
Next
Document.Bgcolor = "ffffff"
</SCRIPT>
</Font>
</CENTER>
<BODY BGCOLOR=WHITE>
<p>
<FONT SIZE=4><B><I><CENTER>YOUR TITLE NO. 2</CENTER></I></B></FONT>
<p>
Your Text, Your Text, Your Text, Your Text, Your Text, Your Text, Your Text,
Your Text, Your Text, Your Text, Your Text, Your Text, Your Text, Your Text,
Your Text, Your Text, Your Text, Your Text, Your Text, Your Text...........
<p>
<End>
"Fade Text #1"
<1>This script lets you display text with a fade-out effect. You can specify the text to display, whether to fade in or out, whether the fading is to black or white, and the color to fade. Try changing attributes in line(s) FadeText("YOUT TEXT",False,False,True,False,False). The effect greatly depends on the background color. Insert Part 1 in between <HEAD>and</HEAD>
tags, Part 2 as your <BODY> tag and Part 3 in body. Change Your Page Title goes here.
<2><SCRIPT LANGUAGE=VBScript>
<!---
Function FadeText(Text,BlackFade,FadeIn,ByVal Red, ByVal Green, ByVal Blue)
NumChars=Len(Text)
If Not BlackFade Then
Red=Not Red
Green=Not Green
Blue=Not Blue
End If
OutPut=""
For j=1 To NumChars
If FadeIn Then x=((255*(j-1))\(NumChars-1))
If Not FadeIn Then x=255-((255*(j-1))\(NumChars-1))
If BlackFade then
R=Hex(-Red*x)
G=Hex(-Green*x)
B=Hex(-Blue*x)
End If
If Not BlackFade then
R=Hex(255-(-Red*x))
G=Hex(255-(-green*x))
B=Hex(255-(-Blue*x))
End If
If Len(R)=1 Then R="0" & R
If Len(G)=1 Then G="0" & G
If Len(B)=1 Then B="0" & B
Output=OutPut & "<FONT COLOR=" & R & G & B & ">" & Mid(Text,j,1)& "</FONT>"
<1>You can fade out whole blocks of text. Insert Part 1 in between <HEAD>and</HEAD>tags, Part 2 as your <BODY> tag and Part 3 in body. Don't forget to change text.
<2><SCRIPT LANGUAGE=VBScript>
<!---
Function FadeText(Text,BlackFade,FadeIn,ByVal Red, ByVal Green, ByVal Blue)
NumChars=Len(Text)
If Not BlackFade Then
Red=Not Red
Green=Not Green
Blue=Not Blue
End If
OutPut=""
For j=1 To NumChars
If FadeIn Then x=((255*(j-1))\(NumChars-1))
If Not FadeIn Then x=255-((255*(j-1))\(NumChars-1))
If BlackFade then
R=Hex(-Red*x)
G=Hex(-Green*x)
B=Hex(-Blue*x)
End If
If Not BlackFade then
R=Hex(255-(-Red*x))
G=Hex(255-(-green*x))
B=Hex(255-(-Blue*x))
End If
If Len(R)=1 Then R="0" & R
If Len(G)=1 Then G="0" & G
If Len(B)=1 Then B="0" & B
Output=OutPut & "<FONT COLOR=" & R & G & B & ">" & Mid(Text,j,1)& "</FONT>"
<INPUT TYPE="button" NAME="cmdChangeBGColor" VALUE="Change the Background">
<SELECT NAME="ForeGround">
<OPTION>White
<OPTION>Black
<OPTION>Blue
<OPTION>Red
<OPTION>Yellow
<OPTION>Aqua
<OPTION>Fushia
<OPTION>Gray
<OPTION>Lime
<OPTION>Maroon
<OPTION>Navy
<OPTION>Olive
<OPTION>Purple
<OPTION>Silver
<OPTION>Teal
</SELECT>
<INPUT TYPE="button" NAME="cmdChangeFGColor" VALUE="Change the Foreground">
</FORM>
<End>
"Reveal transition"
<1>Cool effect using reveal filter. Insert Part 1 in between <HEAD>and</HEAD> tags and Part 3in body. Change YOUR IMAGE FILE, IMAGEWIDTH, ALTEXT and IMAGEHEIGHT.
<1>Cool effect using sequencer and layers. Insert Part 1 in between <HEAD>and</HEAD>tags, Part 2 as your <BODY> tag and Part 3 in body. Set your images instead of 1.jpg, 2.jpg and 3.jpg(These are shiped as samples). Don't forget to change text.
<4><FONT FACE = Harrington><FONT SIZE = 7><B><CENTER>Your Title</CENTER></B></FONT>
<P>
<FONT FACE = Arial><FONT SIZE = 4>
Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here.
<1>This is not an animated GIF. You need two different images(either .gif or .jpg) with same dimensions, but it's not necessery. Insert Part 1 in between <HEAD>and</HEAD> tags, Part 2 as your <BODY> tag and Part 3 in body. Change YOUR IMAGE 1 and YOUR IMAGE 2.
<4><FONT FACE = Mistral><FONT SIZE = 7><B><CENTER>Your Title</CENTER></B></FONT>
<P>
<FONT FACE = Arial><FONT SIZE = 4>
Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here. Your text goes here.
<1>You can use this script as it is, or you can set up your questions and anweres. It's not realy that hard. Insert Part 1 in between <HEAD>and</HEAD> tags and Part 3 in body.