Advertisement
ASP_Volume3 Complete Applications #44909

A Paint program

This program allows users to choose a color and pen size to draw on a picture box and the user can also make circles and fill the picture box with a certain color. ****UPDATED**** August 14. New tools include Circular Gradient maker and Gradient maker,eye dropper and I also put the tools into a list box so it is easier to find. I also improved the pen tool so it doesn't skip.

AI

Shrnutí AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Zdrojový kód
original-source
Upload
<html>
<head>
<title>Floating Menu</title>
<script language="Javascript">
<!--
function ScrollMenu()
{
	var menuLeft  = 5;
	var menuTop   = 10;
	var scrollDelay = 100;
	if (document.all.menu.style.pixelLeft < document.body.scrollLeft + menuLeft)
	{
		document.all.menu.style.pixelLeft++;
		setTimeout('ScrollMenu()', scrollDelay);
	}
	else if (document.all.menu.style.pixelTop < document.body.scrollTop + menuTop)
	{
		document.all.menu.style.pixelTop++;
		setTimeout('ScrollMenu()', scrollDelay);
	}
	else if (document.all.menu.style.pixelLeft > document.body.scrollLeft + menuLeft)
	{
		document.all.menu.style.pixelLeft--;
		setTimeout('ScrollMenu()', scrollDelay);
	}
	else if (document.all.menu.style.pixelTop > document.body.scrollTop + menuTop)
	{
		document.all.menu.style.pixelTop--;
		setTimeout('ScrollMenu()', scrollDelay);
	}
}
-->
</script>
<style type="text/css">
<!--
body            { margin-left:5px; margin-top:10px; background-color:white; font-family:Verdana; font-size:12px; font-style:normal; font-weight:bold; text-decoration:none; color:black; }
a:link, a:active, a:visited { text-decoration:underline; color:black; }
a:hover           { text-decoration:underline; color:silver; }
-->
</style>
</head>
<body onScroll="ScrollMenu()">
<div id="menu" style="position:absolute; left:5px; top:10px; width:100px; background-color:maroon; border:2px solid black; padding:2px;">
<a href="link1.htm">Link 1</a><br>
<a href="link2.htm">Link 2</a><br>
<a href="link3.htm">Link 3</a><br>
<a href="link4.htm">Link 4</a><br>
<a href="link5.htm">Link 5</a>
</div>
<div style="height:1000px; width:1000px;"></div>
</body>
</html>
Původní komentáře (3)
Obnoveno z Wayback Machine