Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

FDL Code

for Freedealerlocator.com. Ex: [fdl myid=4]

// Add Shortcode
function fdl_gen_code( $atts ) {

	// Attributes
	extract( shortcode_atts(
		array(
			'myid' => '4',
		), $atts )
	);

	// Code
$thecode = <<<EOF
<!--  -------- The following Javascript code has changed for version 2.0 - DO NOT EDIT ------ -->
<a href="http://www.freedealerlocator.com"></a><SCRIPT LANGUAGE="JavaScript">
<!-- Begin Javascript

 function zipWindow(myname, w, h) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
if(!document.zipform.styleSheet)
  {styleSheet = "http://www.freedealerlocator.com/styles/default.css";}
else if(document.zipform.styleSheet.value=="")
  {styleSheet = "http://www.freedealerlocator.com/styles/default.css";}
else 
  {styleSheet =document.zipform.styleSheet.value;}

if(!document.zipform.mapIcon)
 {mapIcon = "http://www.freedealerlocator.com/images/compass.gif";}
else if(document.zipform.mapIcon.value=="")
 {mapIcon = "http:/www.freedealerlocator.com/images/compass.gif";}
else 
 {mapIcon =document.zipform.mapIcon.value;}


thepage="http://www.freedealerlocator.com/locator3_1.php?id="+document.zipform.id.value+"&txtZip="+document.zipform.zip.value+"&cboDist="+document.zipform.dist.value+"&styleSheet="+styleSheet+"&mapIcon="+mapIcon;

//-------- End 2.0 Javascript changes-------

winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes,location=no,resizable';
win = window.open(thepage, myname, winprops);
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
     }
//  End Javascript -->
</script>

 <table align="center" width="100%" border="0" cellpadding="4"><tr><td><form style="margin-bottom:0" name="zipform" onsubmit="zipWindow('Locations',495,350)"><B>
<!-- You may edit the following line -->
Find A Dealer Near You.</B><BR>

Enter your U.S. zip code:<BR> 

<input type=text name="zip" size=5 maxsize=5>  
<input type="hidden" name="id" value="$myid">

<!-- The following HTML code has changed for version 2.0 - You MAY edit these values -->

<!-- Edit the following line to point to your custom stylesheets (version 2.0 and greater only) -->
<input type="hidden" name=styleSheet value="http://www.freedealerlocator.com/styles/default.css">

<!-- Edit the following line to point to your custom map icon (version 2.0 and greater only) -->
<input type="hidden" name=mapIcon value="http://www.freedealerlocator.com/images/compass.gif">

<!-- End 2.0 HTML changes -->

<input type=button onclick="zipWindow('Locations',495,350)" value="Find"><BR>
Within:<BR><select name="dist">
<!-- you may edit this select list -->
<option value="5">5 Miles</option>
<option value="10">10 Miles</option>
<option value="25">25 Miles</option>
<option value="50" selected>50 Miles</option>
<option value="100">100 Miles</option>
<option value="250">250 Miles</option>
<option value="500">500 Miles</option>
<option value="1000">1000 Miles</option>
<option value="10000">All</option></select><BR>

<!--the following link is required as part of your licencing agreement. The image may be replaced by the following text: provided by FreeDealerLocator.com -->
<a href="http://freedealerlocator.com" target="_blank"><img src="http://www.freedealerlocator.com/images/logosmall1.gif" border="0"></a></form></td></tr></table>
EOF;

return $thecode;
}
add_shortcode( 'fdl', 'fdl_gen_code' );