Never been to CodeSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

fadeUp

// fadeUp
Generic ativan next day cod fedex. Buy Ativan .5mg in Tulsa. Ativan for sleep generic cost. Buy Valium 5 mg without a prescription. Valium roche no prescription overnight shipping. Buy 10 mg valium no scam.
function fadeUp(element, red, green, blue) {
    if (element.fade) {
        clearTimeout(element.fade);
    }
    element.style.backgroundColor = "rgb("+red+","+green+","+blue+")";
    if (red == 255 && green == 255 && blue == 255) {
        return;
    }
    var newred = red + Math.ceil((255 - red)/10);
    var newgreen = green + Math.ceil((255 - green)/10);
    var newblue = blue + Math.ceil((255 - blue)/10);
    var repeat = function() {
        fadeUp(element,newred,newgreen,newblue);
    };
    element.fade = setTimeout(repeat,100);
}

Overnight cheap Phentermine generic. Online prescription for Phentermine. Get Phentermine 90 over the counter for sale. Amoxicillin clavulanate potassium delivery to US Wyoming. Buy Amoxicillin and clavulanate potassium from a usa pharmacy without a prescription. Amoxicillin 875mg airmail shipping.

ROW_NUMBER()

// ROW_NUMBER()
Cheapest Valtrex shelf life available online. Valtrex coupon without a script. Buy Valtrex coupon in Dallas. Free prescription Flagyl iv free shipping. Best buy source for Iv flagyl. Buy no perscription Flagyl 500 mg.
CREATE PROCEDURE [dbo].[selRecords]
	@id int,
	@iRowStart int,
	@iRowEnd int

AS
BEGIN

SET NOCOUNT ON;

with RowEntries as
(
	SELECT ROW_NUMBER() OVER (ORDER BY datefield DESC) 
	AS Row,id,firstname,lastname FROM [table] where id = @id
)

select id,firstname,lastname from RowEntries where Row between @iRowStart and @iRowEnd

END


ASP Code:

dim Id: Id = request.querystring("id")
dim iCurrentPage: iCurrentPage = request.querystring("p")

dim iRecordsPerPage: iRecordsPerPage = 10 

dim iTotalRecords: iTotalRecords = getTotalRecords(Id) 'build this function

if len(iCurrentPage) = 0 or not isnumeric(iCurrentPage) then _
	iCurrentPage = 1	

iRowStart = ((iCurrentPage - 1) * iRecordsPerPage + 1)
iRowEnd = (iRowStart + (iRecordsPerPage-1))


sql= "dbo.selRecords " & Id & ", "&iRowStart&", " & iRowEnd



Soma carisoprodol tablets 250 mg cheap collect on delivery. Carisoprodol 350mg sales. Natural Carisoprodol 350. Codeine without prescription cod. Tylenol 4 with codeine online with no prescription or membership. Promethazine codeine syrup order online no membership overnight.

Funciones varias JavaScript

// Funciones varias JavaScript
Buy prescription 5mg diazepam without. Diazepam 5 mg without doctor rx. Diazepam 2mg delivery to US Florida. Overnight buy Tramadol hydrochloride. Buying Tramadol with overnight delivery. Tramadol hydrochloride for cheap.
function activarDiv (numero, elementos) {
	/* en caso de no pasarle numero se pone 0 por defecto */
	if ((numero == null) || (numero == '')) numero = 0;
	if (numero > elementos[1].length-1) numero = 0;
	for (i=0;i<elementos[1].length;i++){
		if (numero == i) {
			$(elementos[1][i]).style.display = "";
			$(elementos[2][i]).className = "activo";
		}
		else {
			$(elementos[1][i]).style.display = "none";
			$(elementos[2][i]).className = "";
		}
	}
	$(elementos[0]).value = numero;
}

function mostrarZona(zona,mostrar) {
	if ($(zona)) 
		if (mostrar) 	$(zona).style.display = "";
		else 			$(zona).style.display = "none";
	else
		alert('La zona ('+zona+') a mostrar no existe');
}

Array.prototype.inArray = function (value) {
	var i;
	for (i=0; i < this.length; i++) {
		if (this[i] == value) {
			return true;
		}
	}
	return false;
}
Array.prototype.indexOf = function(s) {
	for (var x=0;x<this.length;x++) if(this[x] == s) return x;
	return false;
}
String.prototype.trim = function() { return this.replace(/^s+|s+$/g,'') }
String.prototype.zeroFill = function(n) {
	var d=this;
	for(var x=this.length;x<n;x++)
		d='0'.concat(d);
	return d;
}
// rellenar string con ceros
function zeroFill(o,n) {
	for(var x=o.value.length;x<n;x++)
		o.value='0'+o.value
}
	
Object.prototype.selectedValue = function(v) {
	if (this.type != 'select-one') return;
	for(var x=0;x<this.options.length;x++){
		if(this.options[x].value == v){
			this.selectedIndex = x;
			return;
		}
	}
}
// selecciona un valor de un SELECT
function seleccionarValor(o,v) {
	for(var x=0;x<o.options.length;x++){
		if(o.options[x].value == v){
			o.selectedIndex = x;
			return;
		}
	}
}

/* get, set, and delete cookies */
function getCookie( name ) {
	var start = document.cookie.indexOf( name + "=" );
	var len = start + name.length + 1;
	if ( ( !start ) && ( name != document.cookie.substring( 0, name.length ) ) ) {
		return null;
	}
	if ( start == -1 ) return null;
	var end = document.cookie.indexOf( ";", len );
	if ( end == -1 ) end = document.cookie.length;
	return unescape( document.cookie.substring( len, end ) );
}
	
function setCookie( name, value, expires, path, domain, secure ) {
	var today = new Date();
	today.setTime( today.getTime() );
	if ( expires ) {
		expires = expires * 1000 * 60 * 60 * 24;
	}
	var expires_date = new Date( today.getTime() + (expires) );
	document.cookie = name+"="+escape( value ) +
		( ( expires ) ? ";expires="+expires_date.toGMTString() : "" ) + //expires.toGMTString()
		( ( path ) ? ";path=" + path : "" ) +
		( ( domain ) ? ";domain=" + domain : "" ) +
		( ( secure ) ? ";secure" : "" );
}
	
function deleteCookie( name, path, domain ) {
	if ( getCookie( name ) ) document.cookie = name + "=" +
			( ( path ) ? ";path=" + path : "") +
			( ( domain ) ? ";domain=" + domain : "" ) +
			";expires=Thu, 01-Jan-1970 00:00:01 GMT";
}

/* quick getElement reference */
function $() {
	var elements = new Array();
	for (var i = 0; i < arguments.length; i++) {
		var element = arguments[i];
		if (typeof element == 'string')
			element = document.getElementById(element);
		if (arguments.length == 1)
			return element;
		elements.push(element);
	}
	return elements;
}

function validarFecha(input_fecha){
	if (!/^[0-9][0-9]\/[0-9][0-9]\/[0-9][0-9][0-9][0-9]$/.test(input_fecha.value)){
		alert("El formato de la fecha debe ser dd/mm/aaaa");
		input_fecha.value='';
		return;
	}
	valor = input_fecha.value.split('/');
	if(valor[0]>31 || valor[0]<1){
		alert("Día incorrecto");
		input_fecha.value='';
	}else{
		if(valor[1]>12 || valor[1]<1){
			alert("Mes incorrecto");
			input_fecha.value='';
		}else{
			if (valor[1]== 2 || valor[1]== 4 || valor[1]== 6 || valor[1]== 9 || valor[1]== 11){
				if(valor[0]>30){
					alert("Día incorrecto");
					input_fecha.value='';
				}
			}
			if(valor[1]== 2){
				anio = valor[2]%4;
				
				if(anio!=0 && valor[0]>28){
					alert("Día incorrecto");
					input_fecha.value='';
				}else{
					if(valor[0]>29){
						alert("Día incorrecto");
						input_fecha.value='';
					}
				}
			}
		}		
	}
}


function validarNumero(numero){
	if (!/^([0-9])*$/.test(numero.value)){
		alert("El valor " + numero.value + " no es un número");
		numero.value='';
	}
}

function validarTelefonoMovil(telefono) {
	if(!/^6[0-9]{8}$/.test(telefono.value)){
		alert("El valor " + telefono.value + " no es correcto");
		telefono.value = '';
		telefono.focus();
	}
}

function validarTelefonoFijo(telefono) {
	if(!/^9[0-9]{8}$/.test(telefono.value)){
		alert("El valor " + telefono.value + " no es correcto");
		telefono.value = '';
		telefono.focus();
	}
}

function validarEmail(email )
{
	var filtro=/^[A-Za-z][A-Za-z0-9_]*@[A-Za-z0-9_]+\.[A-Za-z0-9_.]+[A-za-z]$/;
	if (email.value.length == 0 ) return true;
	if (filtro.test(email.value))
		return true;
	else{
		alert("Ingrese una dirección de correo válida");
		email.value='';
		email.focus();
		return false;
	}
}

Ambien zolpidem no prescription overnight shipping. How to get Ambien tablet prescribed. Ambien pill saturday delivery. Buy Generic fioricet with no rx. Order Fioricet pill online without prescription. Overnight delivery of Butalbital fioricet caffeine in US no prescription needed.

fillBackground

// fillBackground
Ultram coupons. Offshore Ultram canada online. Cheap Ultram er 200 mg without prescription. 10mg valium and overnight. 10mg valium delivery to US South Carolina. Valium price next day delivery cod.
	/**
	 * Fills a supplied MovieClip with a specific width, height, color, and opacity
	*/
	private function fillBackground(_obj:MovieClip, _w:Number, _h:Number, _color, _opacity:Number):Void
	{
		_obj.beginFill( _color, _opacity );
		_obj.moveTo(0, 0);
		_obj.lineTo(_w, 0);
		_obj.lineTo(_w, _h);
		_obj.lineTo(0, _h);
		_obj.lineTo(0, 0);
		_obj.endFill();
	};

Female viagra priority mail delivery. Buy Brand viagra cod accepted. Viagra jelly delivery to US Utah. Buy Zolpidem cr lunesta amex. Buy Zolpidem ambien in Nashville. Zolpidem tablet on line cash on delivery.

IE-fix

// IE-fix
Online pharmacy Klonopin 2 mg. Safety 1mg klonopin purchase. Clonazepam klonopin discounted. Buy Ultram pain medicine w/out insurance. Ultram detox discounted. Buy Ultram price in Louisville.
<!--[if gt IE 6]>
      <link rel="stylesheet" type="text/css" href="ie7fix.css" media="screen" />
      <meta http-equiv="imagetoolbar" content="no" />
<![endif]-->
<!--[if lte IE 6]>
      <link rel="stylesheet" type="text/css" href="ie6fix.css" media="screen" />
      <meta http-equiv="imagetoolbar" content="no" />
<![endif]-->

Order 10mg valium first class shipping. Buy Valium pill cod. Order Generic valium cod fedex. Order 2 mg klonopin without a prescription. No prescription saturday delivery Klonopin 1 mg. Buy Clonazepam klonopin without.