Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

drop down menu?! 3

Status
Not open for further replies.

PS1983

Technical User
Nov 6, 2001
83
AT
Hi there!
got some questions!

how can i make a dropdown menu?(1-5)like in school

and how can i get the selected with mail?

for example!

being friendly on the telephone: select:--1
--2
--3
--4
--5

now the 3 is selected and when the submit button is pressed
i get a mail with:
being friendly bla´bla : 3

understand me?

plz help me thx

steve
 
well I got the how to make a menu
<SELECT NAME=&quot;&quot;>
<OPTION VALUE=1>1
<OPTION VALUE=2>2
<OPTION VALUE=3>3
</SELECT>

Not sure what you want it to do though. Do you want it to open a e-mail to be sent when selected? provide tools to let people become their best.
 
well is there a possibillity not to open an email just a direct send to a specific e-mail adress?

well i want to make a form for costumers!

where the can give us marks: 1-5
and write comments!

later it should work with a database but for the beginning it would be enough to get the information through email!

thx
 
Do you mean something like this?

<script language=&quot;javascript&quot;>

function sendmail(url)
{
window.location.href = url;
}
</script>

<form name=&quot;MyForm4&quot;>
<SELECT name=&quot;selectboxname&quot; ONCHANGE=&quot;sendmail(selectboxname.options[selectboxname.selectedIndex].value);&quot; SIZE=&quot;1&quot;>
<OPTION value=&quot;none&quot; selected>- Select an email -</OPTION>
<OPTION value=&quot;mailto:email1@hisprovider.com&quot;>Email 1</OPTION>
<OPTION value=&quot;mailto:email2@hisprovider.com&quot;>Email 2</OPTION>
<option value=&quot;mailto:email3@hisprovider.com&quot;>Email 3</option>
</SELECT>
</form>

This does not directly send a message, but opens it. But it answered your firts question, I hope?
For directly sending a message take a look at the following sites. Do a right-click &quot;View source&quot; and try to combine this code with my code to get what you want:


(the boomerang here is just a coincidence LOL)

Hope this helps,
Erik
<!-- My sport: Boomerang throwing !!
This year I will participate at the World Championships in Germany. (!! Many Happy Returns !! -->
 
you'll have to either go with a server side mail processing program (formail) for what you want. Your server should have one already set up in its library. Either that or the easy way would be to use a mailto:&quot;eamil address&quot; for the onClick event. This will open the users e-amil with the address populated provide tools to let people become their best.
 
well
1st thx for your replies!
boomerang is next to it =)
but i don't want to send it to different emails
ard to describe!
well it should go with php
so good reason to start learning it !!
thanks a bunch

steve
 
a star to boomerang. I always enjoy seeing nice working examples and if I was the one asking his post would have helped me greatly. Gary Haran
 
jeah sure he gets a star!
=)
and the best wishes for the boomerangworldchampionship

cya
steve
 
lol, i gave him one too, he posted a nice expample, and i didn't think he was going to get one. but it turns out he got 3!
 
Code:
//
// u wanted a menu here a cool menu
//
// html code
<html>
<head><title>menu</title>
<STYLE><!--menu-->
<!--
A.ssmItems:link		{color:black;text-decoration:none;}
A.ssmItems:hover	{color:black;text-decoration:none;}
A.ssmItems:active	{color:black;text-decoration:none;}
A.ssmItems:visited	{color:black;text-decoration:none;}
//-->
</STYLE>
<SCRIPT SRC=&quot;ssm.js&quot; language=&quot;JavaScript1.2&quot;></SCRIPT>
<SCRIPT SRC=&quot;ssmItems.js&quot; language=&quot;JavaScript1.2&quot;></SCRIPT>
</head>
<body bgcolor=&quot;red&quot;>
<table height=&quot;3000&quot; border=&quot;0&quot;><tr><td><fond color=&quot;white&quot; size=&quot;8&quot;>Scroll down</fond></td></tr></table>
</body>
</html>
// end html code
// ssm.js code
NS6 = (document.getElementById&&!document.all)
IE = (document.all)
NS = (navigator.appName==&quot;Netscape&quot; && navigator.appVersion.charAt(0)==&quot;4&quot;)

tempBar='';barBuilt=0;ssmItems=new Array();

moving=setTimeout('null',1)
function moveOut() {
if ((NS6||NS)&&parseInt(ssm.left)<0 || IE && ssm.pixelLeft<0) {
clearTimeout(moving);moving = setTimeout('moveOut()', slideSpeed);slideMenu(10)}
else {clearTimeout(moving);moving=setTimeout('null',1)}};
function moveBack() {clearTimeout(moving);moving = setTimeout('moveBack1()', waitTime)}
function moveBack1() {
if ((NS6||NS) && parseInt(ssm.left)>(-menuWidth) || IE && ssm.pixelLeft>(-menuWidth)) {
clearTimeout(moving);moving = setTimeout('moveBack1()', slideSpeed);slideMenu(-10)}
else {clearTimeout(moving);moving=setTimeout('null',1)}}
function slideMenu(num){
if (IE) {ssm.pixelLeft += num;}
if (NS||NS6) {ssm.left = parseInt(ssm.left)+num;}
if (NS) {bssm.clip.right+=num;bssm2.clip.right+=num;}}

function makeStatic() {
if (NS||NS6) {winY = window.pageYOffset;}
if (IE) {winY = document.body.scrollTop;}
if (NS6||IE||NS) {
if (winY!=lastY&&winY>YOffset-staticYOffset) {
smooth = .2 * (winY - lastY - YOffset + staticYOffset);}
else if (YOffset-staticYOffset+lastY>YOffset-staticYOffset) {
smooth = .2 * (winY - lastY - (YOffset-(YOffset-winY)));}
else {smooth=0}
if(smooth > 0) smooth = Math.ceil(smooth);
else smooth = Math.floor(smooth);
if (IE) bssm.pixelTop+=smooth;
if (NS6||NS) bssm.top=parseInt(bssm.top)+smooth
lastY = lastY+smooth;
setTimeout('makeStatic()', 1)}}

function buildBar() {
if(barText.indexOf('<IMG')>-1) {tempBar=barText}
else{for (b=0;b<barText.length;b++) {tempBar+=barText.charAt(b)+&quot;<BR>&quot;}}
document.write('<td align=&quot;center&quot; rowspan=&quot;100&quot; width=&quot;'+barWidth+'&quot; bgcolor=&quot;'+barBGColor+'&quot; valign=&quot;'+barVAlign+'&quot;><p align=&quot;center&quot;><font face=&quot;'+barFontFamily+'&quot; Size=&quot;'+barFontSize+'&quot; COLOR=&quot;'+barFontColor+'&quot;><B>'+tempBar+'</B></font></p></TD>')}

function initSlide() {
if (NS6){ssm=document.getElementById(&quot;thessm&quot;).style;bssm=document.getElementById(&quot;basessm&quot;).style;
bssm.clip=&quot;rect(0 &quot;+document.getElementById(&quot;thessm&quot;).offsetWidth+&quot; &quot;+document.getElementById(&quot;thessm&quot;).offsetHeight+&quot; 0)&quot;;ssm.visibility=&quot;visible&quot;;}
else if (IE) {ssm=document.all(&quot;thessm&quot;).style;bssm=document.all(&quot;basessm&quot;).style
bssm.clip=&quot;rect(0 &quot;+thessm.offsetWidth+&quot; &quot;+thessm.offsetHeight+&quot; 0)&quot;;bssm.visibility = &quot;visible&quot;;}
else if (NS) {bssm=document.layers[&quot;basessm1&quot;];
bssm2=bssm.document.layers[&quot;basessm2&quot;];ssm=bssm2.document.layers[&quot;thessm&quot;];
bssm2.clip.left=0;ssm.visibility = &quot;show&quot;;}
if (menuIsStatic==&quot;yes&quot;) makeStatic();}

function buildMenu() {
if (IE||NS6) {document.write('<DIV ID=&quot;basessm&quot; style=&quot;visibility:hidden;Position : Absolute ;Left : '+XOffset+' ;Top : '+YOffset+' ;Z-Index : 20;width:'+(menuWidth+barWidth+10)+'&quot;><DIV ID=&quot;thessm&quot; style=&quot;Position : Absolute ;Left : '+(-menuWidth)+' ;Top : 0 ;Z-Index : 20;&quot; onmouseover=&quot;moveOut()&quot; onmouseout=&quot;moveBack()&quot;>')}
if (NS) {document.write('<LAYER name=&quot;basessm1&quot; top=&quot;'+YOffset+'&quot; LEFT='+XOffset+' visibility=&quot;show&quot;><ILAYER name=&quot;basessm2&quot;><LAYER visibility=&quot;hide&quot; name=&quot;thessm&quot; bgcolor=&quot;'+menuBGColor+'&quot; left=&quot;'+(-menuWidth)+'&quot; onmouseover=&quot;moveOut()&quot; onmouseout=&quot;moveBack()&quot;>')}
if (NS6){document.write('<table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;'+(menuWidth+barWidth+2)+'&quot; bgcolor=&quot;'+menuBGColor+'&quot;><TR><TD>')}
document.write('<table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;1&quot; width=&quot;'+(menuWidth+barWidth+2)+'&quot; bgcolor=&quot;'+menuBGColor+'&quot;>');
for(i=0;i<ssmItems.length;i++) {
if(!ssmItems[i][3]){ssmItems[i][3]=menuCols;ssmItems[i][5]=menuWidth-1}
else if(ssmItems[i][3]!=menuCols)ssmItems[i][5]=Math.round(menuWidth*(ssmItems[i][3]/menuCols)-1);
if(ssmItems[i-1]&&ssmItems[i-1][4]!=&quot;no&quot;){document.write('<TR>')}
if(!ssmItems[i][1]){
document.write('<td bgcolor=&quot;'+hdrBGColor+'&quot; HEIGHT=&quot;'+hdrHeight+'&quot; ALIGN=&quot;'+hdrAlign+'&quot; VALIGN=&quot;'+hdrVAlign+'&quot; WIDTH=&quot;'+ssmItems[i][5]+'&quot; COLSPAN=&quot;'+ssmItems[i][3]+'&quot;> <font face=&quot;'+hdrFontFamily+'&quot; Size=&quot;'+hdrFontSize+'&quot; COLOR=&quot;'+hdrFontColor+'&quot;><b>'+ssmItems[i][0]+'</b></font></td>')}
else {if(!ssmItems[i][2])ssmItems[i][2]=linkTarget;
document.write('<TD BGCOLOR=&quot;'+linkBGColor+'&quot; onmouseover=&quot;bgColor=\''+linkOverBGColor+'\'&quot; onmouseout=&quot;bgColor=\''+linkBGColor+'\'&quot; WIDTH=&quot;'+ssmItems[i][5]+'&quot; COLSPAN=&quot;'+ssmItems[i][3]+'&quot;><ILAYER><LAYER onmouseover=&quot;bgColor=\''+linkOverBGColor+'\'&quot; onmouseout=&quot;bgColor=\''+linkBGColor+'\'&quot; WIDTH=&quot;100%&quot; ALIGN=&quot;'+linkAlign+'&quot;><DIV  ALIGN=&quot;'+linkAlign+'&quot;><FONT face=&quot;'+linkFontFamily+'&quot; Size=&quot;'+linkFontSize+'&quot;> <A HREF=&quot;'+ssmItems[i][1]+'&quot; target=&quot;'+ssmItems[i][2]+'&quot; CLASS=&quot;ssmItems&quot;>'+ssmItems[i][0]+'</DIV></LAYER></ILAYER></TD>')}
if(ssmItems[i][4]!=&quot;no&quot;&&barBuilt==0){buildBar();barBuilt=1}
if(ssmItems[i][4]!=&quot;no&quot;){document.write('</TR>')}}
document.write('</table>')
if (NS6){document.write('</TD></TR></TABLE>')}
if (IE||NS6) {document.write('</DIV></DIV>')}
if (NS) {document.write('</LAYER></ILAYER></LAYER>')}
theleft=-menuWidth;lastY=0;setTimeout('initSlide();', 1)}
// end of ssm.js code
// ssmItems.js code
<!--
YOffset=80;
XOffset=700;
staticYOffset=30;
slideSpeed=20;
waitTime=100;
menuBGColor=&quot;black&quot;;
menuIsStatic=&quot;yes&quot;;
menuWidth=200;
menuCols=2;
hdrFontFamily=&quot;verdana&quot;;
hdrFontSize=&quot;2&quot;;
hdrFontColor=&quot;silver&quot;;
hdrBGColor=&quot;#170088&quot;;
hdrAlign=&quot;left&quot;;
hdrVAlign=&quot;center&quot;;
hdrHeight=&quot;15&quot;;
linkFontFamily=&quot;Verdana&quot;;
linkFontSize=&quot;2&quot;;
linkBGColor=&quot;blue&quot;;
linkOverBGColor=&quot;green&quot;;
linkTarget=&quot;_self&quot;;
linkAlign=&quot;Left&quot;;
barBGColor=&quot;black&quot;;
barFontFamily=&quot;Verdana&quot;;
barFontSize=&quot;2&quot;;
barFontColor=&quot;gold&quot;;
barVAlign=&quot;center&quot;;
barWidth=20;
barText=&quot;wazap&quot;;
// ssmItems[...]=[name, link, target, colspan, endrow?]
ssmItems[0]=[&quot;Main Topics&quot;]
ssmItems[1]=[&quot;MY INFUENCE&quot;, &quot;The Big's Page-0A.html&quot;]
ssmItems[2]=[&quot;REAL CARS (19??-19??)&quot;, &quot;The Big's Page-0B.html&quot;,&quot;&quot;]
ssmItems[3]=[&quot;4 WHELLS DEMONS&quot;, &quot;The Big's Page-0C.htmlhtml&quot;, &quot;&quot;]
ssmItems[4]=[&quot;CAR TALK&quot;, &quot;The Big's Page-0D.html&quot;, &quot;&quot;]
ssmItems[5]=[&quot;BIKES (MOTOR)&quot;, &quot;The Big's Page-0E.html&quot;, &quot;&quot;]
ssmItems[6]=[&quot;BIKES&quot;, &quot;The Big's Page-0F.html&quot;, &quot;&quot;]
ssmItems[7]=[&quot;COMMENTS!&quot;, &quot;The Big's Page-1A.html&quot;, &quot;&quot;, 1, &quot;no&quot;]
ssmItems[8]=[&quot;Emails&quot;, &quot;Em/EMAILS.html&quot;, &quot;&quot;,1]
ssmItems[9]=[&quot;LINKS&quot;, &quot;&quot;, &quot;&quot;]
ssmItems[10]=[&quot;Zone51&quot;, &quot;[URL unfurl="true"]http://zone51.hshpage.com/&quot;,[/URL] &quot;_blank&quot;]
ssmItems[11]=[&quot;Motor Cities&quot;, &quot;[URL unfurl="true"]http://www.motorcities.com/&quot;,[/URL] &quot;_blank&quot;]
ssmItems[12]=[&quot;DODGE Official site&quot;, &quot;[URL unfurl="true"]http://www.4adodge.com/&quot;,[/URL] &quot;_blank&quot;]
ssmItems[13]=[&quot;Ebay Motort&quot;, &quot;[URL unfurl="true"]http://pages.ebay.com/ebaymotors/index.html?ssPageName=ML01&quot;,[/URL] &quot;_blank&quot;]
ssmItems[14]=[&quot;Hotmail&quot;, &quot;[URL unfurl="true"]http://lc3.law13.hotmail.passport.com/cgi-bin/login&quot;,[/URL] &quot;_blank&quot;]

buildMenu();
//-->
// end of ssmItems.js code
// enjoy
wmail.jpg


someone knowledge ends where
someone else knowledge starts
 
ps im not the author of this....
wmail.jpg


someone knowledge ends where
someone else knowledge starts
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top