Login
Search   Moderators Wanted: If you're interested please send your portfolio to info[at]itechforums.com
Welcome to the iTechForums.
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
To register now click here.
Latest Threads
Advertisements
Forum Statistics
Threads:
Posts: 2
Members:
Number of Users Online:
Welcome to our newest member,
Reply
 
Thread Tools Display Modes
  #1  
Old 01-12-2010, 12:58 PM
kistories kistories is offline
Junior Member
 
Join Date: Jan 2010
Posts: 1
Default

Drop down web script needed?


Drop down web script needed?

I want a page on my website where people can choose from a drop down list a product, and then an amount, and that will return a predetermined price and description.

Do you know how I can do this or do something similar?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #2  
Old 01-12-2010, 12:58 PM
Namibnat Namibnat is offline
Junior Member
 
Join Date: Sep 2009
Posts: 17
Default

Something like this:

htmlheadtitlestuff/title
style type=text/css
select{border:solid 1px #cccccc}
select:focus{border:solid 1px blue;}
#info, #drp{margin:10px 100px 10px 100px;padding:20px;border:solid 1px #cccccc;}
h3{color:red;}
/style
script type=text/javascript
function alertselected(selectobj){
if(selectobj.selectedIndex == 0){
var info = h3Select Diamonds/h3 \
pValue: 37,000.00 Euro/p;
}
if(selectobj.selectedIndex == 1){
var info = h3Computer Network Installations/h3 \
pValue: 245,000.00 Euro/p;
}
if(selectobj.selectedIndex == 2){
var info = h3Collection of Classic Sports Cars/h3 \
pValue: 95,000,000.00 Euro/p;
}
document.getElementById('i').innerHTML = info;
}
/script
/headbody
div id='drp'
h1Select Product/h1
pPlease use the menu below to select the product you are interested in/p
form id=someform
select id=sample onChange=alertselected(this)
optionDiamonds/option
optionComputers/option
optionCars/option
/select
/form
/div
div id='info'
h2Information on your product/h2
span id='i'pNo product selected/p/span
/div
/body/html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
help needed with this unix script? karthik s UNIX 0 06-15-2009 04:58 PM
Javascript: Drop down and check box. How can I make a drop down or check box write Josh S JavaScript 0 09-10-2008 02:51 PM
script needed for a php form? titchyc PHP 0 07-26-2008 05:06 AM
Any recommendations for a PHP Photo Gallery script with no mySQL needed? Jerome Resso PHP 0 07-15-2008 08:42 PM
HOw to populate a drop-down box from sql server using asp script for dynamic... avinash Web Scripts 0 05-06-2008 01:00 PM

Your Ad Here

All times are GMT. The time now is 03:29 AM.