사이트 내 전체검색
Google Search & PHP Function Lookup
로빈아빠
https://cmd.kr/javascript/623 URL이 복사되었습니다.

본문

Google Search & PHP Function Lookup

간단한 자바스크립트 소스이다.
찾고 싶은 단어를 쓰면 구글과 php.net에서 그 결과를 링크 시키는 소스입니다.
잘 응용하면 여러곳에 사용할 수 있을 것입니다.

Google Search
<html>
<head>
<script language="JavaScript">
<!--

function google() {
	o = prompt('Google','');
	o = escape(o);
	if (o != '' && o != 'NULL' ) {
		location.href = "http://www.google.com/search?hl=en&ie=ISO-8859-1&q=" + o;
	}
}

// -->
</script>
</head>
<body onload="google()"></body>
</html>


PHP Function Lookup
<html>
<head>
<script language="JavaScript">
<!--

function phpLookup() {
	o = prompt('Enter the name of a PHP function','');
	while (o.indexOf("_") != -1) {
		o = o.split('_').join('-');
	}
	o = escape(o);
	if (o != '' && o != 'NULL' ) {
		alert("http://www.php.net/manual/en/function." + o + ".php");
	}
}

// -->
</script>
</head>
<body onload="phpLookup()"></body>
</html>

댓글목록

등록된 댓글이 없습니다.

831 (3/17P)

Search

Copyright © Cmd 명령어 3.128.203.137