Location: PHPKode > projects > FeedMeLinks, Social BookmarkingSince2002 > right-click.php
<%
	echo "FOR OUR RIGHT-CLICKIN' BITCHES";
	if( $op != "add" ) {
%>
<html>
<script LANGUAGE="JavaScript">

if (external.menuArguments) {
	var parentwin = external.menuArguments;
	if (parentwin.document.selection) {
		var sel = parentwin.document.selection.createRange().text;
	}
	
	if (!sel) {
		var sel = '';
	}
	
	var url = parentwin.location.href;
	var title = parentwin.document.title;
	
	if (parentwin.event.srcElement.tagName == "A") {
		url = parentwin.event.srcElement.getAttribute("HREF");
		title = parentwin.event.srcElement.innerText;
	}
	void(window.open('http://feedmelinks.com/categorize?from=right-click&name='
	+ escape(title)+'&url='
	+ escape(url),'_blank','scrollbars=yes,width=666,height=575,left=75,top=30,status=no,resizable=yes'))
} else {
	history.go(-1);
}
</script>
</html>
<h1>do magical js shit...</h1>

<!--
to <a href="/install/">use the right-click menu</a> with <a
href="http://feedmelinks.com/">FML</a>, you must have Javascript
enabled in your browser.
-->

<% } else { %>
$op was <%= $op %>...
<% } %>
Return current item: FeedMeLinks, Social BookmarkingSince2002