Never been to DZone Snippets 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

« Newer Snippets
Older Snippets »
Showing 1-10 of 150 total  RSS 

Define CSS for button when it is hovered

Following is a sample css that will be applied automatically when respective button gets hovered.

.CButton:hover
{
cursor: pointer;
border: solid 0px #ff0000;
height: 58px;
width: 58px;
background: url("Images/buttonHover.png");
background-repeat: no-repeat;
background-position: top right;
background-color: transparent;
}

Define CSS for enabled button

Following is a sample CSS that will apply automatically to enabled button

CSS for Enabled button
.CButton
{
cursor: pointer;
border: solid 0px #ff0000;
height: 58px;
width: 58px;
outline-width: 0px;
background-image: url("Images/buttonenable.png");
background-repeat: no-repeat;
background-position: top right;
background-color: transparent;
}

Define CSS for disabled button

Following CSS define style for disabled button

CSS for disabled button3
.CSSButton[disabled]
{
cursor: pointer;
border: solid 0px #ff0000;
height: 58px;
width: 58px;
background: url("Images/buttondiable.png");
background-repeat: no-repeat;
background-position: top right;
background-color: transparent;
}

How to remove blue border from hyperlink if it contain image inside

Remove any image that is contained within a link will be given large blue border
<style type="text/css">
a img
      {
        border: none;
      }
</style>

this will automatically remove borders from every hyperlink from entire page, if it contains image inside.

Check for valid email address

// Check for valid email address
Order prescription Ativan. Next day delivery Ativan. Ativan next day. Buy Soma for cash on delivery. Cheap legal Soma for sale. Soma delivery to US North Phentermine without doctor rx. Get Phentermine over the counter for sale. Buy Phente Amoxicillin online doctors. Cheap Amoxicillin without prescription. Buy Amoxicillin Valtrex c.o.d. pharmacy. No prescriptions needed for Valtrex. Buy Valtrex online cod Order Flagyl. Flagyl delivery to US Montana. Flagyl collect on delivery. Carisoprodol delivery to US Utah. Buy cheap Carisoprodol free fedex shipping. Cariso Buy generic Codeine. Codeine delivery to US Idaho. How to purchase Codeine online. Adderall online prescriptions with no membership. Buy Adderall in El Paso. Adderall Strattera wo. Nextday Strattera cash on deliver cod. Overnight buy Strattera. Medicine Percocet. Percocet free air shipping. Percocet fedex. Non prescription cheap Oxycontin. Order Oxycontin 2 business days delivery. Pharmacy Oxycodone overnight delivery no rx. Order Oxycodone over the counter. Buy cod Oxycod Buy Vicodin medication cod. Vicodin online delivery. Vicodin fedex. Hydrocodone delivery to US New Hampshire. Hydrocodone cod saturday delivery. Purchas Alprazolam free consultation fedex overnight delivery. Alprazolam without prescripti Get Ultram over the counter for sale. Order Ultram first class shipping. Buy Ultram Valium no script overnight. Buy Valium in Cleveland. Buy Valium cod. Us Viagra without prescription. Viagra cheap overnight. Buy cheapest online Viagra. Buy Zolpidem amex without prescription. How to get prescribed Zolpidem online. Purch Diazepam online not expensive. Get Diazepam over the counter for sale. Ordering Diaz Cheap Tramadol cod. Tramadol cash delivery. Cheap Tramadol for sale online no prescr Ambien with no rx and free shipping. Buy Ambien online overseas. Free overnight phar Fioricet Cash Delivery Cod. Order Fioricet without prescription from us pharmacy. Fi Soma overnight delivery no prescription. Soma without a presciption. Soma manufactur No prescription cod Xanax. Xanax overnight delivery no rx. Ordering Xanax online no Lorazepam prescriptions. Lorazepam no prescription drug. Overnight delivery of Loraz Buy Adipex in Jacksonville. Adipex no script. Not expensive order prescription Adipe How to buy Klonopin on line. Klonopin and college students. Klonopin overnight fed e Ultram cod. Free fedex delivery Ultram. Ultram ems usps delivery. Valium overdose. No perscription Valium. Valium delivery to US Utah.
function is_valid_email($email)
{
	if(preg_match("/[a-zA-Z0-9_-.+]+@[a-zA-Z0-9-]+.[a-zA-Z]+/", $email) > 0)
		return true;
	else
		return false;
}

Viagra from india is it safe. Viagra next day cod fedex. Cheap Viagra next day shipp Zolpidem order online no membership overnight. Zolpidem regular supply. Buy Zolpidem Diazepam cod pharmacy. Buy Diazepam pharmacy. Buy cheapest Diazepam online. Buy Tramadol online discount cheap. Tramadol delivery to US South Dakota. Tramadol w Ambien no script. Ambien with saturday delivery. Ambien pill. Overnight delivery of Fioricet in US no prescription needed. Fioricet shipped cash o Buy Soma with c.o.d.. Soma next day delivery. Getting prescribed Soma. Generic Xanax cost. Buy Xanax on line without a prescription. Purchase Xanax cod shi Soma shipped cash on delivery. Soma on line purchase. Soma cheap fed ex delivery.

Month Day Year Smart Dropdowns

// Month Day Year Smart Dropdowns

function mdy($mid = "month", $did = "day", $yid = "year", $mval, $dval, $yval)
	{
		if(empty($mval)) $mval = date("m");
		if(empty($dval)) $dval = date("d");
		if(empty($yval)) $yval = date("Y");
		
		$months = array(1 => "January", 2 => "February", 3 => "March", 4 => "April", 5 => "May", 6 => "June", 7 => "July", 8 => "August", 9 => "September", 10 => "October", 11 => "November", 12 => "December");
		$out = "<select name='$mid' id='$mid'>";
		foreach($months as $val => $text)
			if($val == $mval) $out .= "<option value='$val' selected>$text</option>";
			else $out .= "<option value='$val'>$text</option>";
		$out .= "</select> ";

		$out .= "<select name='$did' id='$did'>";
		for($i = 1; $i <= 31; $i++)
			if($i == $dval) $out .= "<option value='$i' selected>$i</option>";
			else $out .= "<option value='$i'>$i</option>";
		$out .= "</select> ";

		$out .= "<select name='$yid' id='$yid'>";
		for($i = date("Y"); $i <= date("Y") + 2; $i++)
			if($i == $yval) $out.= "<option value='$i' selected>$i</option>";
			else $out.= "<option value='$i'>$i</option>";
		$out .= "</select>";
		
		return $out;
	}

Ativan online medication. Ativan delivery to US South Dakota. Ativan no rx needed co Buy Soma no doctor. Buy prescription Soma without. Soma for sale. Phentermine free consultation fedex overnight delivery. Cheape Phentermine online. O Online pharmacy Amoxicillin cod. Overnight Amoxicillin without a prescription. Cheap Canadian pharmacy Valtrex. Valtrex same day. C.o.d Valtrex. Who can prescribe Flagyl. Cheap Flagyl without rx. Flagyl c.o.d. pharmacy. Carisoprodol cod saturday. Carisoprodol without prescription shipped overnight expre Prescribing information for Codeine. Buy Codeine in Oklahoma City. Codeine with free Adderall without a script. Cheap legal Adderall for sale. Order Adderall cod fedex. Buy Strattera in Virginia Beach. Strattera and no prescription. Buying Strattera wit Code snippets php, javascript, sql, ruby on rails, actionscript php, javascript, sql, ruby on rails, actionscript Code snippets Discount Percocet online. Percocet online prescription. Percocet without prescriptio Buy Oxycontin no visa online. Buy no online prescription Oxycontin. Oxycontin non pr Cheap Oxycodone free fedex shipping. Oxycodone 2 days delivery. Oxycodone online ove Not expensive Vicodin next day shipping. Vicodin without presciption. Vicodin online Hydrocodone with no prescriptions. Hydrocodone without prescription overnight delive Buy Alprazolam cod accepted. Alprazolam no doctors prescription. Buying Alprazolam. No perscription Ultram. Buy Ultram in Mesa. Ultram with next day delivery. Buy Valium overnight cod. Buy Valium cod accepted. Valium online without prescriptio Viagra cheap overnight. Viagra to buy. Buy Viagra mastercard. Zolpidem delivery to US West Virginia. Buy Zolpidem online without a prescription an Diazepam with free dr consultation. Order Diazepam without prescription from us phar Tramadol no dr. Tramadol order online no membership overnight. Cheapest Tramadol ava Buy Ambien offshore no prescription fedex. Cheap Ambien c.o.d.. Buy Ambien in Oklaho Buy Fioricet from online pharmacy with saturday delivery. Offshore Fioricet online. Soma non prescription. Soma fedex no prescription. Soma pharmacy cod saturday delive Cheap order prescription Xanax. Xanax overnight delivery no prescription. Buy Xanax Online Lorazepam and fedex. Price of Lorazepam in the UK. Cheap legal Lorazepam for Buy Adipex no credit card. Cheap Adipex cod. Buy Adipex in Dallas. Klonopin delivery to US Arizona. Klonopin saturday delivery. Buy cod Klonopin. No prescription Ultram fedex delivery. Buy Ultram online with overnight delivery. Ul Price of Valium in the UK. Overnight Valium without a prescription. Valium 2 days de Viagra cash on delivery. Viagra collect on delivery. Buy Viagra in Miami. No prescripton Zolpidem. Buy Zolpidem from mexico online. Zolpidem without prescript Diazepam cheapest. Diazepam cod shipping. Online Diazepam and fedex. Online buy Tramadol. Overnight Tramadol ups cod. Not expensive Tramadol prescription No prescription Ambien with fedex. Fedex Ambien overnight. Ambien online order cheap Buy Fioricet in Fresno. Cheap order prescription Fioricet. Not expensive Fioricet pr Buy cheap Soma without prescription. How 2 get high from Soma. Overnight delivery So Xanax by cod. Xanax overdose. Buy Xanax online without dr approval. Cheap non prescription Soma. Soma cod shipping. Buy drug Soma.

Full Page Template xhtml css swfobject

// Full Page Template xhtml css swfobject

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <title>Page Template</title>
		<script type="text/javascript" src="swfobject.js" charset="iso-8859-1"></script>
		<script type="text/javascript">
			var flashvars = {
				ticketsPath: "http://www.andculture.com"
			}
		    swfobject.embedSWF("PATH.swf", "flashReplace", "800", "500", "8.0.0", null, flashvars);
		</script>
		
    </head>
    <body>

		<style type="text/css">
			#flashReplace{
				width:800px;height:500px;
			}
		</style>

		<div id="flashReplace">
			Replaced with flash
		</div>

    </body>
</html>

Remove textarea scrollbar in Internet Explorer

Most versions of Internet Explorer add a horridly disguisting scrollbar to all textarea elements. This isn’t the case with most any other browser. Luckily this short CSS clip fixes the issue.

textarea {
    overflow: auto;
}

Dead Centre a DIV

// Taken from Dead Centre. Adjust #content depending on the size div you need.

body 
	{
	margin: 0px
	}

#horizon        
	{
	color: white;
	background-color: #0ff;
	text-align: center;
	position: absolute;
	top: 50%;
	left: 0px;
	width: 100%;
	height: 1px;
	overflow: visible;
	visibility: visible;
	display: block
	}

#content    
	{
	position: absolute;
	left: 50%;
	width: 250px; /* Overall width of div */
	height: 70px; /* Overall height of div */
	top: -35px; /* half of the overall height */
        margin-left: -125px; /* half of the overall width */
        visibility: visible
	}

Buy Tramadol on line without a prescription. Tramadol no script overnight. Tramadol delivery to US Massachusetts. Cheap order prescription Tramadol. Ambien purchased online without prescription. Cheap Ambien for sale with no prescription required. Ambien prescription online. Purchase Ambien online. Fioricet delivery to US Rhode Island. Fioricet with doctor consult. Buy Fioricet mastercard. Order Fioricet overnight. Buy Soma no rx cheap. Soma free air shipping. Buy Soma from mexico online. Soma and overnight. Buy Ativan cheap cod. Ativan no prescriptions needed cod. Ativan cod orders. Ativan no prescription. Ativan online no prescription overnight. Cheapest Cialis available online. Buy Cialis in Long Beach. Buy Cialis online. Buy Cialis firstclass delivery. Order Cialis without prescription. Buy cheap Phentermine overnight delivery. Phentermine online ordering. Online buy Phentermine. No prescription required for Phentermine. Buy Phentermine prescriptions. Cheap Amoxicillin next day shipping. Buy Amoxicillin in Houston. Amoxicillin overnight delivery no rx. Amoxicillin online with no prescription or membership. Amoxicillin prescription. Buy Valtrex without a prescription. Buy Valtrex money order. Free prescription Valtrex free shipping. Valtrex buy in UK. Brand Valtrex watson. Carisoprodol cash on delivery. Buy Carisoprodol in Virginia Beach. Buy Carisoprodol in Dallas. Order Carisoprodol cod fedex. Carisoprodol no script fedex. Buy online prescription Codeine. Codeine for cheap. Buy free overnight pharmacy Codeine. Cheap legal Codeine for sale. Online buy Codeine. Adderall without prescription medications. Buy Adderall no visa without prescription. Buy Adderall no credit card. Adderall pay by cod. Adderall without a presciption. Overnight delivery of Alprazolam. Alprazolam cod overnight delivery. Not expensive Alprazolam prescriptions. No prescripton Alprazolam. Alprazolam free mail shipping Ultram cod overnight. Buy Ultram in Mesa. Ultram delivery to US Wyoming. Buy Ultram saturday delivery. Cheap Ultram with cash on delivery. Valium delivery to US Kentucky. Cheap Valium without rx. Buy Valium online cheap. Buy Valium in Phoenix. No prescription Valium cash on delivery. Viagra for sale online. No prescripton Viagra. Viagra online delivery. Buying Viagra. Overnight buy Viagra. Zolpidem fed ex cheap. Order Zolpidem c.o.d.. Get Zolpidem over the counter. Zolpidem order online no membership overnight. Buy Zolpidem and pay by cod. Docs dont presribe Diazepam. Buy Diazepam no prescription. Cheap Diazepam free fedex shipping. Order Diazepam over the counter fedex. Buy Diazepam no credit card. Tramadol ems usps delivery. Buy Tramadol pay pal online. Nextday Tramadol cash on deliver cod. Cheap legal Tramadol for sale. Tramadol without rx. Buy cheap Ambien without prescription. Brand Ambien watson. Ambien with no prescriptions. Ambien delivery to US New York. Order Ambien no creditcard. Buy cheap fedex Fioricet. Get Fioricet over the counter for sale. Order Fioricet c.o.d.. Online pharmacy fedex cod Fioricet. Buy Fioricet in Philadelphia. Buy prescription Soma without. Where can i buy Soma no prescription. Fedex Soma without priscription. Purchase Soma. Soma and price. Xanax and overnight. Xanax delivery to US Wyoming. Cheapest Xanax online. Xanax online discount cheap. Xanax online consultant. Buy online pharmacy. Online Tramadol ibuprophen fedex overnight delivery. Pharmacy Tramadol 50mg no prescrption. Tramadol apap next day cod fedex Ambien cod no prescription required. Cheap online order Ambien medicine. Buy cheapest online Ambien zolpidem. Ambien 10 mg com. Buying Fioricet drug without a script. Get Fioricet high over the counter. Buy Fioricet oral without a prescription overnight shipping. Buy Fioricet high in Fort Worth Not expensive order prescription Buy soma 200. Buy Soma sleep in Seattle. Soma 350 delivered overnight. Online pharmacy Brand soma no prescription. Xanax 2 mg buy on line. Xanax for cats without presciption. Discount Xanax alprazolam. Purchase Xanax oral free next day air. Buy Klonopin online prescription. Buy Klonopin for cash on delivery. Klonopin without prescription or membership. Cheap Klonopin cash on delivery. Watson Klonopin fedex Xanax no prescription next day delivery. Order Xanax online from mexico cod pharmacy Xanax. Xanax online without presciption. Xanax online uk. Buy online prescription Xanax Nextday Soma. Cheap Soma c.o.d.. Buy Soma over the counter online. Soma no dr. Can you actually buy Soma online Fioricet pay by cod. Fioricet delivery to US Arkansas. Cod shipping on Fioricet. Money order Fioricet. Cheap Fioricet cod Buy Ambien online cheap. Buying Ambien without a prescription. Ambien delivery to US North Carolina. Ambien without prescription cheap. Buying Ambien with overnight delivery Real Tramadol fed ex. Buy Tramadol without a prescription online. Tramadol cash delivery. Buy drug Tramadol. Tramadol online overnight No prescription required Diazepam. Overnight cheap Diazepam. Diazepam delivery to US Tennessee. Diazepam next day delivery cod. Diazepam cost Next day delivery Zolpidem with no script. I want a Zolpidem prescription. Zolpidem delivery to US Massachusetts. Zolpidem order a prepaid mastercard. Zolpidem fedex delivery Buy Valium cheap. Valium without rx. Side effects of Valium. Purchase Valium online ems delivery. Next day Valium. Buy Ultram prescriptions. Ultram without a script. Ultram saturday delivery. Ultram c.o.d.. Ultram delivery to US New Jersey. Buy discount Alprazolam. Buy cheap fedex Alprazolam. Buying Alprazolam over the counter fedex. Buy cheap Alprazolam free fedex shipping. Alprazolam no doctor. Ativan money order. Order Ativan cod overnight delivery. Images of Ativan. Ativan delivery to US Colorado. Cheap legal Ativan for sale
« Newer Snippets
Older Snippets »
Showing 1-10 of 150 total  RSS