Advertisement
ASP_Volume2 Miscellaneous #30863

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

Riepilogo 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.

Codice sorgente
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
function generate_mapquest_link ($address, $city, $state, $country, $zip)
{
	if ($country == "") $country="USA";
	if ($address > "" && $city > "" && $state > "" && $zip > "")
	{
		$address = trim($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".
			"&addtohistory=".
			"&address=$address".
			"&city=$city".
			"&state=$state".
			"&zip=$zip".
			"&homesubmit=Get+Map";
	}
	else
		$link = "*** Address Not Specified ***";
	return $link;
}

Upload
Commenti originali (3)
Recuperato da Wayback Machine