djcottrell
10-02-2008, 07:10 PM
I have a form I have been using for quite some time. I would like to turn this code into a widget for myspace. In order to do so I need to turn the following into a flash or .swf file. If anyone can help with this I would highly appreciate it.
<script type="text/javascript">
function openWin(zip, radius) {
window.open("http://www.driveflexfuel.com/stations/results.php?zip=" + zip + "&radius=" + radius, '_blank', "width = 400px, height = 500px, scrollbars = yes");
return false;
}
</script>
<form id="form1" name="form1" method="post" action="" onsubmit="return openWin(document.form1.zip.value, document.form1.radius.value);">
<table background="http://www.driveflexfuel.com/images/search_table1.gif" width="175" height="175"><tr><td align="center">
<table align="center"><tr><td colspan="2" align="center">
<b><font color="#FFFFFF">
E85 Station Locator<br/>
Enter your zip code<br/></font></b>
<label>
<input name="zip" type="text" id="zip" style="text-align:center" />
</label>
<br/></td></tr><tr>
<td align="center" width="40%"><b><font color="#FFFFFF">Within</font></b></td>
<td align="left" width="60%">
<label>
<select name="radius" id="radius">
<option value="10">10 Miles</option>
<option value="25">25 Miles</option>
<option value="50" selected="selected">50 Miles</option>
<option value="75">75 Miles</option>
<option value="100">100 Miles</option>
<option value="200">200 Miles</option>
</select>
</label>
</td>
</tr>
<tr><td colspan="2" align="center">
<label>
<input name="search" type="submit" id="search" value="Search" style="width: 150px" />
</label>
<font size="2" color="#FFFFFF"><br/><br/>
Powerd By: <a href="http://www.driveflexfuel.com" target="_blank"><font color="#FFFFFF">www.DriveFlexFuel.com</font></a>
</font>
</td></tr></table>
</td></tr></table>
</form>
<script type="text/javascript">
function openWin(zip, radius) {
window.open("http://www.driveflexfuel.com/stations/results.php?zip=" + zip + "&radius=" + radius, '_blank', "width = 400px, height = 500px, scrollbars = yes");
return false;
}
</script>
<form id="form1" name="form1" method="post" action="" onsubmit="return openWin(document.form1.zip.value, document.form1.radius.value);">
<table background="http://www.driveflexfuel.com/images/search_table1.gif" width="175" height="175"><tr><td align="center">
<table align="center"><tr><td colspan="2" align="center">
<b><font color="#FFFFFF">
E85 Station Locator<br/>
Enter your zip code<br/></font></b>
<label>
<input name="zip" type="text" id="zip" style="text-align:center" />
</label>
<br/></td></tr><tr>
<td align="center" width="40%"><b><font color="#FFFFFF">Within</font></b></td>
<td align="left" width="60%">
<label>
<select name="radius" id="radius">
<option value="10">10 Miles</option>
<option value="25">25 Miles</option>
<option value="50" selected="selected">50 Miles</option>
<option value="75">75 Miles</option>
<option value="100">100 Miles</option>
<option value="200">200 Miles</option>
</select>
</label>
</td>
</tr>
<tr><td colspan="2" align="center">
<label>
<input name="search" type="submit" id="search" value="Search" style="width: 150px" />
</label>
<font size="2" color="#FFFFFF"><br/><br/>
Powerd By: <a href="http://www.driveflexfuel.com" target="_blank"><font color="#FFFFFF">www.DriveFlexFuel.com</font></a>
</font>
</td></tr></table>
</td></tr></table>
</form>