Advertisement
ASP_Volume3 Miscellaneous #44607

The Most Simple Credit - Scroller

This code will easily let any user create simple, yet effective credit scroller. This is so effectively easy, that any novice can create it. I created this code because I tried the other source code on this site, and I found it difficult to follow.

AI

สรุปโดย 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.

ซอร์สโค้ด
original-source
1) Create a new project (Standard EXE).
2) Place a label on the form at the bottom with whichever BackColor you set the form's BackColor to, and leave all the other properties alone except these:
 A) Alignment: 2 - Center
 B) Caption: This is a sample scroller.
3) On the form, place two picture boxes (one on top of the form, and one on the bottom) with these properties set. (Leave all others alone.)
 A) BackColor: &H80000012&
 B) BorderStyle: 0 - None
 NOTE: Be sure that the picture box is covering the label.
4) Place a timer on the form, and set the interval to '1'. And inside the timer, copy and paste this code:
 Label1.Top = (Label1.Top - 20)
 If Label1.Top = 0 Then '0 is the location topmost form coordinate
    Label1.Top = Me.Height
 End If
5) Run and test the program. Viola! You now have created the most simple scroller program available! If you have any problems with this code, which you shouldn't, please e-mail me at: madcat47@hotmail.com
#
# Provide your users with dynamically generated links to MapQuest 
# using basic address, city, state, or zipcode strings with this simple function.
#
# This function requires the Client address.
# Get the latest addres line requirements from MapQuest.
# Here's the latest as of August 31, 2006:
function generate_mapquest_link($address,$city,$state,$country,$zip)
{
	if ($country == "USA") $country="US";
	if ($country == "")  $country="US";
	if ($address > "" && $city > "" && $state > "" && $zip > "")
	{
		$address = trim($address);
		$address = str_replace(","," ",$address);
		$address = str_replace(" ","+",$address);
		#$address = str_replace(",","%2C",$address);
		$city  = trim($city);
		$city  = str_replace(" ","+",$city);
		$link="http://www.mapquest.com/maps/map.adp".
			"?country=$country".
			"&title=Map to RepleteMeeting Location".
			"&address=$address".
			"&city=$city".
			"&state=$state".
			"&zipcode=$zip".
			"&cid=lfmaplink";
	}
	else
		$link = "*** Address Not Specified ***";
	return $link;
}

Upload
ความคิดเห็นดั้งเดิม (3)
กู้คืนจาก Wayback Machine