All pastes #938889 Raw Edit

Mine

public text v1 · immutable
·published 2008-03-11 22:31 UTC
rendered paste body
Try using this:
http://www.w3schools.com/css/tryit.asp?filename=trycss_position_relative


replace all code there with the following and hit "edit the text and click me":

<html>
<head>
</head>

<script type="text/javascript">

RegExp.escape = function( text, space_fix ) {
 
	if ( !arguments.callee.sRE ) {
		arguments.callee.sRE = /(\/|\.|\*|\+|\?|\||\(|\)|\[|\]|\{|\}|\\|\$|\^)/g;
	}
 
	text = text.replace( arguments.callee.sRE , '\\$1' );
 
	// Special Mediawiki escape, underscore/space is the same, often at lest:
 
	if( space_fix ) {
		text = text.replace( / |_/g, '[_ ]' );
	}
 
	return text;
 
}

var queryRes =  {
	"query": {
		"allpages": [
			{
				"pageid": 11984052,
				"ns": 4,
				"title": "Wikipedia:Articles for deletion\/List of shopping malls in the United States"
			},
			{
				"pageid": 13635248,
				"ns": 4,
				"title": "Wikipedia:Articles for deletion\/List of shopping malls in the United States (2nd nomination)"
			},
			{
				"pageid": 16245049,
				"ns": 4,
				"title": "Wikipedia:Articles for deletion\/List of shopping malls in the United States (3rd nomination)"
			}
		]
	}
}

var titles = {
"title0": "Wikipedia:Articles for deletion\/List of shopping malls in the United States",
"title1": "Wikipedia:Articles for deletion\/List of shopping malls in the United States (2nd nomination)",
"title2": "Wikipedia:Articles for deletion\/List of shopping malls in the United States (3rd nomination)"
}
 
			var number = 0;
			for( var i = 0; i < 3; ++i ) {
				var title = titles["title"+i];
document.write("<br /><br />iteration: " +i +"<br />");
document.write( title +"<br />");
				/*
				 * Check so that following isn't for the same article:
				 * Articles for deletion/Deleg (2nd nomination)
				 * Articles for deletion/Delegative democracy
				 */
				var correct_title_re = new RegExp( '^' + RegExp.escape( 'Wikipedia:Articles for deletion/' + "List of shopping malls in the United States" , true ) + '(?:\s+\(.*?\)|)$' );
				if( ! correct_title_re.test( title ) ) {
document.write( "bailing due to incorrect title???? <br />");
					continue;
				}
document.write( "corrected title: " + title + "<br />");
				title = title.replace( /(first|second|third|fourth|fifth|sixth|seventh|eighth|ninth|tenth|eleventh)/, function(v) {
						return {
							'first': '1st',
							'second': '2nd',
							'third': '3rd',
							'fourth': '4th',
							'fifth': '5th',
							'sixth': '6th',
							'seventh': '7th',
							'eighth': '8th',
							'ninth': '9th',
							'tenth': '10th',
							'eleventh': '11th'
						}[v];
					} );
document.write("2nd correction: "+title +"<br />");
				var n = /\(\s*(\d+)(?:(?:th|nd|rd|st) nom(?:ination)?)?\s*\)\s*$/.exec( title );
document.write( "n == " + n +"<br />");
				if( n && n[1] > number ) {
					number = n[1];
				} else if( number == 0 ) {
					number = 1;
				}
			}
 
			document.write( number +"<br />");

</script>

</html>