Important alert: (current site time 7/15/2013 10:48:30 PM EDT)
 

VB icon

Catch the Fish

Email
Submitted on: 7/17/2000 8:22:29 PM
By: MangaMorgan 
Level: Beginner
User Rating: By 2 Users
Compatibility: HTML, VbScript (browser/client side)
Views: 15331
 
     A fish moves frantically around the screen whilst you try to catch it. Good fun (in a simple kind of way).

 
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
'**************************************
' for :Catch the Fish
'**************************************
(C) 2000 - By Laurence Morgan
Source taken from "IEWorld" located inside -> "2 Lumps Please"
(http://2lumpsplease.faithweb.com)
e-mail: laumars@yahoo.com
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.
				
'**************************************
' Name: Catch the Fish
' Description:A fish moves frantically around the screen whilst you try to catch it. Good fun (in a simple kind of way).
' By: MangaMorgan
'
'This code is copyrighted and has' limited warranties.Please see http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=6260&lngWId=4'for details.'**************************************

<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
	<title>Dancing Fish!</title>
<SCRIPT ID=clientEventHandlersVBS LANGUAGE=vbscript>
<!--
'(C) 2000 - By Laurence Morgan
'Source taken from "IEWorld" located inside -> "2 Lumps Please"
'(http://2lumpsplease.faithweb.com)
'e-mail: laumars@yahoo.com
Sub imgFish_onmouseover
	dim x' as integer
	dim y' as integer
	randomize
	x=Int(((500-86) - 1 + 1) * Rnd + 1)
	y=Int(((400-65) - 1 + 1) * Rnd + 1)
	divFish.style.left=x
	divFish.style.top=y
End Sub
Sub window_onload
	divMain.style.backgroundColor=rgb(128,0,0)
End Sub
Sub imgFish_onclick
	call msgbox("Arrrrrrrrrrrrrrrrr!! You KILLED me!",48,"You fish killing SKUM!")
End Sub
-->
</SCRIPT>
</head>
<body bgcolor="#C0C0C0" text="#000000" link="#FF0000" vlink="#FF0000" alink="#FF0000" bgproperties="fixed">
	<center><h3> </h3><h3><font face="Times New Roman" size="5">Try and click the fish (if you can).</font></h3></center>
	<div id=divMain style="position: absolute; left: 50; top: 150; width: 500; height: 400; z-index: 0">
		<div id=divFish style="position: absolute; left: 100; top: 0; width: 86; height: 65; z-index: 1">
 <font face="Times New Roman">
			<img border="0" src="http://2lumpsplease.faithweb.com/images/fish.gif" id=imgFish alt="Here fishy, fishy, fishy!" width="86" height="65">
 </font>
		</div>
	</div>
</body>
</html>


Other 2 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments


 There are no comments on this submission.
 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.