Jump to content

[SOLVED] PHP/ASP help I Think.


cry of war

Recommended Posts

I am running a form login/regestration area it is pretty large and I wanted to keep it more confined an to the point one of my examples is

<FORM action="http://somesite.com/prog/someprog" method="post1">

<SELECT name="ALCHEMY1">

      <option label=" selectednone" 1" value="none1">None</OPTION>

      <optgroup label="PortMaster 31">

 

<optgroup label="A">

<option label="Aconite 1" value="Aconite1">Aconite</OPTION>

<option label="AdamantiumOre 1" value="AdamantiumOre1">Adamantium Ore </OPTION>

<option label="AdderBrother 1" value="AdderBrother1">Adder Brother</OPTION>

<option label="AlitHide 1" value="AlitHide1">Alit Hide  </OPTION>

</optgroup>

</select>

 

 

// the list is much longer thats only a very small fraction of it.  what i was wondering was if i could make it when a person selected one of these items text would come up describing this item so the person wouldnt have to read through a larger text file. just F.Y.I there are going to be 300+ items and there is going to be 4 sections of it

 

If you do find an answer please tell me. I am still kind of new at this stuff and I am really wanting to learn new things like this

 

Thank you,

Cow

 

PS. IF you do figure something out could you please send it to me at Nathan46540@yahoo.com

 

 

Link to comment
Share on other sites

you could use HTML title, Although you would have to do this for each individual item, like the following.

 

<option label="Aconite 1" title="this is where all the information would go and people only have to hold their mouse over this and this will pop up telling them about the item" value="Aconite1">Aconite</OPTION>

 

hope this helps.

 

Regards ACE

Link to comment
Share on other sites

Did i stump you guys????? Any one think of anything yet i have been looking for 4 days now and cant find anything on this or do you know another way i can do make it so when the item is selected from the drop down menu it tells you information about the item? And i really dont want to use a CSS drop down menu.

Link to comment
Share on other sites

Here is an example on how to access the selected option value. You cannot have any events on the option directly.

 

I used a javascript array for the data, but most likely you would wanna use ajax if you have a gain list.

 

good luck

 

<script language="javascript">
var txt = new Array();
txt['option 1 value'] = "option 1 description";
txt['option 2 value'] = "option 2 description";
txt['option 3 value'] = "option 3 description";
txt['option 4 value'] = "option 4 description";
txt['option 5 value'] = "option 5 description";

function show_txt(val){
	if (val != "")
		document.getElementById('description').innerHTML = txt[val];

	else
		document.getElementById('description').innerHTML = "";
}
</script>
<select onchange="show_txt(this.value);">
<option value="">Select</option>
<optgroup label="Hello">
	<option value="option 1 value">Option 1</option>
	<option value="option 2 value">Option 2</option>
	<option value="option 3 value">Option 3</option>
</optgroup>
<option value="option 4 value">Option 4</option>
<option value="option 5 value">Option 5</option>
</select>
<div id="description"></div>

Link to comment
Share on other sites

does Java script not like larger files???? because its not working for me when i put it into the larger form

<script language="javascript">
var txt = new Array();

txt['Aconite1'] = "Aconite,";
txt['AdamantiumOre1'] = "AdamantiumOre,";
txt['AdderBrother1'] = "AdderBrother,";
txt['AlitHide1'] = "AlitHide,";
txt['AloeVeraLeaves1'] = "AloeVeraLeaves,";
txt['Ambrosia1'] = "Ambrosia,";
txt['AmpoulePod1'] = "AmpoulePod,";
txt['AncientLichen1'] = "AncientLichen,";
txt['Anemone1'] = "Anemone,";
txt['Angelica1'] = "Angelica,";
txt['Apple1'] = "Apple,";
txt['Arborusia1'] = "Arborusia,";
txt['Arcane1'] = "Arcane,";
txt['Arrowroot1'] = "Arrowroot,";
txt['Arthas'Tears1'] = "Arthas'Tears,";
txt['AshSalts1'] = "AshSalts,";
txt['AshYam1'] = "AshYam,";
txt['AzureMoonstone1'] = "AzureMoonstone,";
txt['BearClaw1'] = "BearClaw,";
txt['BearPelt1'] = "BearPelt,";
txt['BeaverFat1'] = "BeaverFat,";
txt['Beef1'] = "Beef,";
txt['BergamotSeeds1'] = "BergamotSeeds,";
txt['Bittergreen1'] = "Bittergreen,";
txt['BittergreenPetals1'] = "BittergreenPetals,";
txt['BlackAnther1'] = "BlackAnther,";
txt['BlackLichen1'] = "BlackLichen,";
txt['BlackLotus1'] = "BlackLotus,";
txt['BlackVitriol1'] = "BlackVitriol,";
txt['Blackberry1'] = "Blackberry,";
txt['BlackmouthOil1'] = "BlackmouthOil,";
txt['Blindweed1'] = "Blindweed,";
txt['Bloat1'] = "Bloat,";
txt['Bloatroot1'] = "Bloatroot,";
txt['BloodGarnet1'] = "BloodGarnet,";
txt['BloodofanInnocent1'] = "BloodofanInnocent,";
txt['Bloodgrass1'] = "Bloodgrass,";
txt['Bloodvine1'] = "Bloodvine,";
txt['BlueEye1'] = "BlueEye,";
txt['BoarMeat1'] = "BoarMeat,";
txt['BoarTusk1'] = "BoarTusk,";
txt['BogBeaconAscoCap1'] = "BogBeaconAscoCap,";
txt['Boletus1'] = "Boletus,";
txt['Bonemeal1'] = "Bonemeal,";
txt['Bread1'] = "Bread,";
txt['Briarthorn1'] = "Briarthorn,";
txt['BristlebackLeather1'] = "BristlebackLeather,";
txt['Bruiseweed1'] = "Bruiseweed,";
txt['Bungler's1'] = "Bungler's,";
txt['Bungler'sBane1'] = "Bungler'sBane,";
txt['CairnBoleteCap1'] = "CairnBoleteCap,";
txt['Carrot1'] = "Carrot,";
txt['Centaurium1'] = "Centaurium,";
txt['CheeseWedge1'] = "CheeseWedge,";
txt['CheeseWheel1'] = "CheeseWheel,";
txt['Chokeweed1'] = "Chokeweed,";
txt['CinnabarPolyporeRedCap1'] = "CinnabarPolyporeRedCap,";
txt['CinnabarPolyporeYellowCap1'] = "CinnabarPolyporeYellowCap,";
txt['ClannfearClaws1'] = "ClannfearClaws,";
txt['CloudedFunnelCap1'] = "CloudedFunnelCap,";
txt['CodaFlower1'] = "CodaFlower,";
txt['ColumbineRootPulp1'] = "ColumbineRootPulp,";
txt['Comberry1'] = "Comberry,";
txt['CorkbulbRoot1'] = "CorkbulbRoot,";
txt['Corn1'] = "Corn,";
txt['CrabMeat1'] = "CrabMeat,";
txt['DaedraSkin1'] = "DaedraSkin,";
txt['Daedra'sHeart1'] = "Daedra'sHeart,";
txt['DemonEye1'] = "DemonEye,";
txt['Diamond1'] = "Diamond,";
txt['Diptame1'] = "Diptame,";
txt['DiscoloredWorgHeart1'] = "DiscoloredWorgHeart,";
txt['Dodo1'] = "Dodo,";
txt['DottedToadstool1'] = "DottedToadstool,";
txt['DragonScale1'] = "DragonScale,";
txt['Dragon'sTongue1'] = "Dragon'sTongue,";
txt['Dreamfoil1'] = "Dreamfoil,";
txt['DreamingGlory1'] = "DreamingGlory,";
txt['DreughWax1'] = "DreughWax,";
txt['DryadSaddlePolyporeCap1'] = "DryadSaddlePolyporeCap,";
txt['DurzogMeat1'] = "DurzogMeat,";
txt['Eagleclaw1'] = "Eagleclaw,";
txt['Ectoplasm1'] = "Ectoplasm,";
txt['ElfCupCap1'] = "ElfCupCap,";
txt['Emerald1'] = "Emerald,";
txt['EmeticRussulaCap1'] = "EmeticRussulaCap,";
txt['Fadeleaf1'] = "Fadeleaf,";
txt['FalseShoes1'] = "FalseShoes,";
txt['FelLotus1'] = "FelLotus,";
txt['Felweed1'] = "Felweed,";
txt['FennelSeeds1'] = "FennelSeeds,";
txt['FireOil1'] = "FireOil,";
txt['FirePetal1'] = "FirePetal,";
txt['FireSalts1'] = "FireSalts,";
txt['Firebloom1'] = "Firebloom,";
txt['FirefinSnapper1'] = "FirefinSnapper,";
txt['Flagelle1'] = "Flagelle,";
txt['FlameSpessarite1'] = "FlameSpessarite,";
txt['FlamingEyeofthekeeper1'] = "FlamingEyeofthekeeper,";
txt['FlaxSeeds1'] = "FlaxSeeds,";
txt['Flour1'] = "Flour,";
txt['FlyAmanitaCap1'] = "FlyAmanitaCap,";
txt['Foodball1'] = "Foodball,";
txt['ForestBurnhand1'] = "ForestBurnhand,";
txt['FoxLiver1'] = "FoxLiver,";
txt['Foxglove1'] = "Foxglove,";
txt['FoxgloveNectar1'] = "FoxgloveNectar,";
txt['FriendtoFoe1'] = "FriendtoFoe,";
txt['FrostSalts1'] = "FrostSalts,";
txt['Garlic1'] = "Garlic,";
txt['GhostMushroom1'] = "GhostMushroom,";
txt['GhoulBrain1'] = "GhoulBrain,";
txt['GhoulHeart1'] = "GhoulHeart,";
txt['GinkgoLeaf1'] = "GinkgoLeaf,";
txt['Ginseng1'] = "Ginseng,";
txt['GlowDust1'] = "GlowDust,";
txt['GoldKanet1'] = "GoldKanet,";
txt['GoldenDraenite1'] = "GoldenDraenite,";
txt['GoldenSansam1'] = "GoldenSansam,";
txt['GoldenSedgeFlowers1'] = "GoldenSedgeFlowers,";
txt['Goldthorn1'] = "Goldthorn,";
txt['GooseLiver1'] = "GooseLiver,";
txt['GrahlEyeball1'] = "GrahlEyeball,";
txt['Grapes1'] = "Grapes,";
txt['GrassSnakeTongue1'] = "GrassSnakeTongue,";
txt['GraveMoss1'] = "GraveMoss,";
txt['Gravedust1'] = "Gravedust,";
txt['Gravetar1'] = "Gravetar,";
txt['GreenLichen1'] = "GreenLichen,";
txt['GreenStainCupCap1'] = "GreenStainCupCap,";
txt['GreenStainShelfCap1'] = "GreenStainShelfCap,";
txt['Gromsblood1'] = "Gromsblood,";
txt['GuarHide1'] = "GuarHide,";
txt['Hackle-LoLeaf1'] = "Hackle-LoLeaf,";
txt['Hack-LoLeaf1'] = "Hack-LoLeaf,";
txt['Ham1'] = "Ham,";
txt['Harrada1'] = "Harrada,";
txt['HeadlessHeart1'] = "HeadlessHeart,";
txt['HeartofanInnocent1'] = "HeartofanInnocent,";
txt['HeartofFire1'] = "HeartofFire,";
txt['HeartoftheUdyrfrykte1'] = "HeartoftheUdyrfrykte,";
txt['HeartoftheWild1'] = "HeartoftheWild,";
txt['HeartoftheWolf1'] = "HeartoftheWolf,";
txt['Heartwood1'] = "Heartwood,";
txt['Heather1'] = "Heather,";
txt['HeavyToadstool1'] = "HeavyToadstool,";
txt['Hemlock1'] = "Hemlock,";
txt['HollyBerries1'] = "HollyBerries,";
txt['HorkerTusk1'] = "HorkerTusk,";
txt['HornLilyBulb1'] = "HornLilyBulb,";
txt['HotRot1'] = "HotRot,";
txt['HoundMeat1'] = "HoundMeat,";
txt['HumanFlesh1'] = "HumanFlesh,";
txt['HumanHeart1'] = "HumanHeart,";
txt['HumanSkin1'] = "HumanSkin,";
txt['HyphaFacia1'] = "HyphaFacia,";
txt['Icecap1'] = "Icecap,";
txt['IchorofUndeath1'] = "IchorofUndeath,";
txt['ImbuedVial1'] = "ImbuedVial,";
txt['ImpGall1'] = "ImpGall,";
txt['IronBar1'] = "IronBar,";
txt['IronwoodNut1'] = "IronwoodNut,";
txt['KagoutiHide1'] = "KagoutiHide,";
txt['Khadgar'sWhisker1'] = "Khadgar'sWhisker,";
txt['Kingsblood1'] = "Kingsblood,";
txt['KreshFiber1'] = "KreshFiber,";
txt['KreshFiber1'] = "KreshFiber,";
txt['KwamaCuttle1'] = "KwamaCuttle,";
txt['Lady'sMantleLeaves1'] = "Lady'sMantleLeaves,";
txt['Lady'sSmockLeaves1'] = "Lady'sSmockLeaves,";
txt['LargeFang1'] = "LargeFang,";
txt['Lavender1'] = "Lavender,";
txt['LavenderSprig1'] = "LavenderSprig,";
txt['LeadedVial1'] = "LeadedVial,";
txt['Leek1'] = "Leek,";
txt['LemonToadstool1'] = "LemonToadstool,";
txt['Lettuce1'] = "Lettuce,";
txt['Lichor1'] = "Lichor,";
txt['Liferoot1'] = "Liferoot,";
txt['LivingEssence1'] = "LivingEssence,";
txt['LloramorSpines1'] = "LloramorSpines,";
txt['LuminousRussula1'] = "LuminousRussula,";
txt['Mageroyal1'] = "Mageroyal,";
txt['ManaThistle1'] = "ManaThistle,";
txt['MandrakeRoot1'] = "MandrakeRoot,";
txt['Marshmerrow1'] = "Marshmerrow,";
txt['MassiveMojo1'] = "MassiveMojo,";
txt['MeadowRye1'] = "MeadowRye,";
txt['Meat1'] = "Meat,";
txt['MeteorSlime1'] = "MeteorSlime,";
txt['MightofNine1'] = "MightofNine,";
txt['MilkThistleSeeds1'] = "MilkThistleSeeds,";
txt['MinorHealingPotion1'] = "MinorHealingPotion,";
txt['MinotaurHorn1'] = "MinotaurHorn,";
txt['MithrilBar1'] = "MithrilBar,";
txt['MithrilOre1'] = "MithrilOre,";
txt['MonkshoodRootPulp1'] = "MonkshoodRootPulp,";
txt['MoonSugar1'] = "MoonSugar,";
txt['MorningGloryRootPulp1'] = "MorningGloryRootPulp,";
txt['MortFlesh1'] = "MortFlesh,";
txt['MoteofFire1'] = "MoteofFire,";
txt['MotherwortSprig1'] = "MotherwortSprig,";
txt['MountainBreed1'] = "MountainBreed,";
txt['MountainSilversage1'] = "MountainSilversage,";
txt['Muck1'] = "Muck,";
txt['Muffin1'] = "Muffin,";
txt['MugwortSeeds1'] = "MugwortSeeds,";
txt['Mutton1'] = "Mutton,";
txt['NetchLeather1'] = "NetchLeather,";
txt['Netherbloom1'] = "Netherbloom,";
txt['NightmareVine1'] = "NightmareVine,";
txt['Nightshade1'] = "Nightshade,";
txt['Nirnroot1'] = "Nirnroot,";
txt['NirthflyStalks1'] = "NirthflyStalks,";
txt['NobleSedgeFlowers1'] = "NobleSedgeFlowers,";
txt['Northernroot1'] = "Northernroot,";
txt['Ogre'sTeeth1'] = "Ogre'sTeeth,";
txt['Onion1'] = "Onion,";
txt['Orange1'] = "Orange,";
txt['OstrichPlumes1'] = "OstrichPlumes,";
txt['Paturin1'] = "Paturin,";
txt['Peacebloom1'] = "Peacebloom,";
txt['Pear1'] = "Pear,";
txt['Pearl1'] = "Pearl,";
txt['PeonySeeds1'] = "PeonySeeds,";
txt['Pinetear1'] = "Pinetear,";
txt['Plaguebloom1'] = "Plaguebloom,";
txt['Poison1'] = "Poison,";
txt['Potato1'] = "Potato,";
txt['PowerfulMojo1'] = "PowerfulMojo,";
txt['PrimroseLeaves1'] = "PrimroseLeaves,";
txt['Pumpkin1'] = "Pumpkin,";
txt['PurpleDye1'] = "PurpleDye,";
txt['PurpleLotus1'] = "PurpleLotus,";
txt['RabbitBladder1'] = "RabbitBladder,";
txt['RacerPlumes1'] = "RacerPlumes,";
txt['Radish1'] = "Radish,";
txt['Ragveil1'] = "Ragveil,";
txt['RatMeat1'] = "RatMeat,";
txt['RattleSnakeRattle1'] = "RattleSnakeRattle,";
txt['RawEbony1'] = "RawEbony,";
txt['RawGlass1'] = "RawGlass,";
txt['RawStahlrim1'] = "RawStahlrim,";
txt['RedLichen1'] = "RedLichen,";
txt['RedToadstool1'] = "RedToadstool,";
txt['RedwortFlower1'] = "RedwortFlower,";
txt['Resin1'] = "Resin,";
txt['Rice1'] = "Rice,";
txt['RipenedBelladonnaBerries1'] = "RipenedBelladonnaBerries,";
txt['RipperMuscle1'] = "RipperMuscle,";
txt['Roobrush1'] = "Roobrush,";
txt['RootPulp1'] = "RootPulp,";
txt['Ruby1'] = "Ruby,";
txt['SacredLotusSeeds1'] = "SacredLotusSeeds,";
txt['Saffron1'] = "Saffron,";
txt['Saltrice1'] = "Saltrice,";
txt['Salts1'] = "Salts,";
txt['Scales1'] = "Scales,";
txt['ScampSkin1'] = "ScampSkin,";
txt['Scathecraw1'] = "Scathecraw,";
txt['ScorpionGland1'] = "ScorpionGland,";
txt['ScrapMetal1'] = "ScrapMetal,";
txt['ScreamaBadilla1'] = "ScreamaBadilla,";
txt['ScribCabbage1'] = "ScribCabbage,";
txt['ScribJelly1'] = "ScribJelly,";
txt['ScribJerky1'] = "ScribJerky,";
txt['Scuttle1'] = "Scuttle,";
txt['ShadowOil1'] = "ShadowOil,";
txt['ShalkResin1'] = "ShalkResin,";
txt['SharpClaw1'] = "SharpClaw,";
txt['Shepherd'sPie1'] = "Shepherd'sPie,";
txt['Silverleaf1'] = "Silverleaf,";
txt['SkeletonBoneMarrow1'] = "SkeletonBoneMarrow,";
txt['SloadSoap1'] = "SloadSoap,";
txt['SmallCorprusmeatHunk1'] = "SmallCorprusmeatHunk,";
txt['SmallFlameSac1'] = "SmallFlameSac,";
txt['SmallKwamaEgg1'] = "SmallKwamaEgg,";
txt['SmallWrappedCorprusmeat1'] = "SmallWrappedCorprusmeat,";
txt['SnowBearPelt1'] = "SnowBearPelt,";
txt['SnowWolfPelt1'] = "SnowWolfPelt,";
txt['SomnaliusFrond1'] = "SomnaliusFrond,";
txt['SpiddalStick1'] = "SpiddalStick,";
txt['SpiderGland1'] = "SpiderGland,";
txt['SporePod1'] = "SporePod,";
txt['Spurge1'] = "Spurge,";
txt['St.Jahn'sWortNectar1'] = "St.Jahn'sWortNectar,";
txt['Steel-BlueEntolomaCap1'] = "Steel-BlueEntolomaCap,";
txt['StinkhornCap1'] = "StinkhornCap,";
txt['StoneflowerPetals1'] = "StoneflowerPetals,";
txt['StonescaleEel1'] = "StonescaleEel,";
txt['StonescaleOil1'] = "StonescaleOil,";
txt['Stranglekelp1'] = "Stranglekelp,";
txt['Strawberry1'] = "Strawberry,";
txt['SummerBoleteCap1'] = "SummerBoleteCap,";
txt['Sungrass1'] = "Sungrass,";
txt['Sweetcake1'] = "Sweetcake,";
txt['Sweetpulp1'] = "Sweetpulp,";
txt['Sweetroll1'] = "Sweetroll,";
txt['Swordleaf1'] = "Swordleaf,";
txt['Taproot1'] = "Taproot,";
txt['Terocone1'] = "Terocone,";
txt['Thistle1'] = "Thistle,";
txt['ThoriumBar1'] = "ThoriumBar,";
txt['ThoriumOre1'] = "ThoriumOre,";
txt['TigerLilyNectar1'] = "TigerLilyNectar,";
txt['Timsa-Come-Byflowers1'] = "Timsa-Come-Byflowers,";
txt['TinderPolyporeCap1'] = "TinderPolyporeCap,";
txt['Tobacco1'] = "Tobacco,";
txt['Tomato1'] = "Tomato,";
txt['Tongues1'] = "Tongues,";
txt['TrachidisEgg1'] = "TrachidisEgg,";
txt['TramaRoot1'] = "TramaRoot,";
txt['Traveller'sJoy1'] = "Traveller'sJoy,";
txt['TreatedBittergreenPetals1'] = "TreatedBittergreenPetals,";
txt['TrollFat1'] = "TrollFat,";
txt['TruesilverBar1'] = "TruesilverBar,";
txt['UnicornHorn1'] = "UnicornHorn,";
txt['UnripenedBelladonnaBerries1'] = "UnripenedBelladonnaBerries,";
txt['VampireDust1'] = "VampireDust,";
txt['Venison1'] = "Venison,";
txt['VioletCorprinus1'] = "VioletCorprinus,";
txt['ViperGlands1'] = "ViperGlands,";
txt['Viper'sBuglossLeaves1'] = "Viper'sBuglossLeaves,";
txt['VoidSalts1'] = "VoidSalts,";
txt['VolatileRum1'] = "VolatileRum,";
txt['WaterHyacinthNectar1'] = "WaterHyacinthNectar,";
txt['Watermelon1'] = "Watermelon,";
txt['WerewolfSpinalCore1'] = "WerewolfSpinalCore,";
txt['WheatGrain1'] = "WheatGrain,";
txt['WhiteSeedPod1'] = "WhiteSeedPod,";
txt['Wickwheat1'] = "Wickwheat,";
txt['WildSteelbloom1'] = "WildSteelbloom,";
txt['Wildvine1'] = "Wildvine,";
txt['WillowAnther1'] = "WillowAnther,";
txt['WingMembrane1'] = "WingMembrane,";
txt['WingedDemonEye1'] = "WingedDemonEye,";
txt['Wintersbite1'] = "Wintersbite,";
txt['WispStalkCaps1'] = "WispStalkCaps,";
txt['WolfHeart1'] = "WolfHeart,";
txt['WolfPelt1'] = "WolfPelt,";
txt['WolfsbanePetals1'] = "WolfsbanePetals,";
txt['WormwoodLeaves1'] = "WormwoodLeaves,";
txt['WrappedCorprusmeatHunk1'] = "WrappedCorprusmeatHunk,";
txt['WyvernLacrimalGland1'] = "WyvernLacrimalGland,";
txt['Yellowroot1'] = "Yellowroot,";
txt['ZombieThyroid1'] = "ZombieThyroid,";


function show_txt(val){
	if (val != "")
		document.getElementById('description').innerHTML = txt[val];

	else
		document.getElementById('description').innerHTML = "";
}
</script>
<select onchange="show_txt(this.value);">
<option value="">None</OPTION>
<optgroup label="Alchemy">
<optgroup label="A">
<option value="Aconite1">Aconite</OPTION>
<option value="AdamantiumOre1">Adamantium Ore</OPTION>
<option value="AdderBrother1">Adder Brother</OPTION>
<option value="AlitHide1">Alit Hide</OPTION>
<option value="AloeVeraLeaves1">Aloe Vera Leaves</OPTION>
<option value="Ambrosia1">Ambrosia</OPTION>
<option value="AmpoulePod1">Ampoule Pod</OPTION>
<option value="AncientLichen1">Ancient Lichen</OPTION>
<option value="Anemone1">Anemone</OPTION>
<option value="Angelica1">Angelica</OPTION>
<option value="Apple1">Apple</OPTION>
<option value="Arborusia1">Arborusia</OPTION>
<option value="Arcane1">Arcane</OPTION>
<option value="Arrowroot1">Arrowroot</OPTION>
<option value="Arthas'Tears1">Arthas' Tears</OPTION>
<option value="AshSalts1">Ash Salts</OPTION>
<option value="AshYam1">Ash Yam</OPTION>
<option value="AzureMoonstone1">Azure Moonstone</OPTION></OPTGROUP>
<optgroup label="B">
<option value="BearClaw1">Bear Claw</OPTION>
<option value="BearPelt1">Bear Pelt</OPTION>
<option value="BeaverFat1">Beaver Fat</OPTION>
<option value="Beef1">Beef</OPTION>
<option value="BergamotSeeds1">Bergamot Seeds</OPTION>
<option value="Bittergreen1">Bittergreen</OPTION>
<option value="BittergreenPetals1">Bittergreen Petals</OPTION>
<option value="BlackAnther1">Black Anther</OPTION>
<option value="BlackLichen1">Black Lichen</OPTION>
<option value="BlackLotus1">Black Lotus</OPTION>
<option value="BlackVitriol1">Black Vitriol</OPTION>
<option value="Blackberry1">Blackberry</OPTION>
<option value="BlackmouthOil1">Blackmouth Oil</OPTION>
<option value="Blindweed1">Blindweed</OPTION>
<option value="Bloat1">Bloat</OPTION>
<option value="Bloatroot1">Bloatroot</OPTION>
<option value="BloodGarnet1">Blood Garnet</OPTION>
<option value="BloodofanInnocent1">Blood of an Innocent</OPTION>
<option value="Bloodgrass1">Bloodgrass</OPTION>
<option value="Bloodvine1">Bloodvine</OPTION>
<option value="BlueEye1">Blue Eye</OPTION>
<option value="BoarMeat1">Boar Meat</OPTION>
<option value="BoarTusk1">Boar Tusk</OPTION>
<option value="BogBeaconAscoCap1">Bog Beacon Asco Cap</OPTION>
<option value="Boletus1">Boletus</OPTION>
<option value="Bonemeal1">Bonemeal</OPTION>
<option value="Bread1">Bread</OPTION>
<option value="Briarthorn1">Briarthorn</OPTION>
<option value="BristlebackLeather1">Bristleback Leather</OPTION>
<option value="Bruiseweed1">Bruiseweed</OPTION>
<option value="Bungler's1">Bungler's</OPTION>
<option value="Bungler'sBane1">Bungler's Bane</OPTION></OPTGROUP>
<optgroup label="C">
<option value="CairnBoleteCap1">Cairn Bolete Cap</OPTION>
<option value="Carrot1">Carrot</OPTION>
<option value="Centaurium1">Centaurium</OPTION>
<option value="CheeseWedge1">Cheese Wedge</OPTION>
<option value="CheeseWheel1">Cheese Wheel</OPTION>
<option value="Chokeweed1">Chokeweed</OPTION>
<option value="CinnabarPolyporeRedCap1">Cinnabar Polypore Red Cap</OPTION>
<option value="CinnabarPolyporeYellowCap1">Cinnabar Polypore Yellow Cap</OPTION>
<option value="ClannfearClaws1">Clannfear Claws</OPTION>
<option value="CloudedFunnelCap1">Clouded Funnel Cap</OPTION>
<option value="CodaFlower1">Coda Flower</OPTION>
<option value="ColumbineRootPulp1">Columbine Root Pulp</OPTION>
<option value="Comberry1">Comberry</OPTION>
<option value="CorkbulbRoot1">Corkbulb Root</OPTION>
<option value="Corn1">Corn</OPTION>
<option value="CrabMeat1">Crab Meat</OPTION></OPTGROUP>
<optgroup label="D">
<option value="DaedraSkin1">Daedra Skin</OPTION>
<option value="Daedra'sHeart1">Daedra's Heart</OPTION>
<option value="DemonEye1">Demon Eye</OPTION>
<option value="Diamond1">Diamond</OPTION>
<option value="Diptame1">Diptame</OPTION>
<option value="DiscoloredWorgHeart1">Discolored Worg Heart</OPTION>
<option value="Dodo1">Dodo</OPTION>
<option value="DottedToadstool1">Dotted Toadstool</OPTION>
<option value="DragonScale1">Dragon Scale</OPTION>
<option value="Dragon'sTongue1">Dragon's Tongue</OPTION>
<option value="Dreamfoil1">Dreamfoil</OPTION>
<option value="DreamingGlory1">Dreaming Glory</OPTION>
<option value="DreughWax1">Dreugh Wax</OPTION>
<option value="DryadSaddlePolyporeCap1">Dryad Saddle Polypore Cap</OPTION>
<option value="DurzogMeat1">Durzog Meat</OPTION></OPTGROUP>
<optgroup label="E">
<option value="Eagleclaw1">Eagleclaw</OPTION>
<option value="Ectoplasm1">Ectoplasm</OPTION>
<option value="ElfCupCap1">Elf Cup Cap</OPTION>
<option value="Emerald1">Emerald</OPTION>
<option value="EmeticRussulaCap1">Emetic Russula Cap</OPTION></OPTGROUP>
<optgroup label="F">
<option value="Fadeleaf1">Fadeleaf</OPTION>
<option value="FalseShoes1">False Shoes</OPTION>
<option value="FelLotus1">Fel Lotus</OPTION>
<option value="Felweed1">Felweed</OPTION>
<option value="FennelSeeds1">Fennel Seeds</OPTION>
<option value="FireOil1">Fire Oil</OPTION>
<option value="FirePetal1">Fire Petal</OPTION>
<option value="FireSalts1">Fire Salts</OPTION>
<option value="Firebloom1">Firebloom</OPTION>
<option value="FirefinSnapper1">Firefin Snapper</OPTION>
<option value="Flagelle1">Flagelle</OPTION>
<option value="FlameSpessarite1">Flame Spessarite</OPTION>
<option value="FlamingEyeofthekeeper1">Flaming Eye of the keeper</OPTION>
<option value="FlaxSeeds1">Flax Seeds</OPTION>
<option value="Flour1">Flour</OPTION>
<option value="FlyAmanitaCap1">Fly Amanita Cap</OPTION>
<option value="Foodball1">Foodball</OPTION>
<option value="ForestBurnhand1">Forest Burnhand</OPTION>
<option value="FoxLiver1">Fox Liver</OPTION>
<option value="Foxglove1">Foxglove</OPTION>
<option value="FoxgloveNectar1">Foxglove Nectar</OPTION>
<option value="FriendtoFoe1">Friend to Foe</OPTION>
<option value="FrostSalts1">Frost Salts</OPTION></OPTGROUP>
<optgroup label="G">
<option value="Garlic1">Garlic</OPTION>
<option value="GhostMushroom1">Ghost Mushroom</OPTION>
<option value="GhoulBrain1">Ghoul Brain</OPTION>
<option value="GhoulHeart1">Ghoul Heart</OPTION>
<option value="GinkgoLeaf1">Ginkgo Leaf</OPTION>
<option value="Ginseng1">Ginseng</OPTION>
<option value="GlowDust1">Glow Dust</OPTION>
<option value="GoldKanet1">Gold Kanet</OPTION>
<option value="GoldenDraenite1">Golden Draenite</OPTION>
<option value="GoldenSansam1">Golden Sansam</OPTION>
<option value="GoldenSedgeFlowers1">Golden Sedge Flowers</OPTION>
<option value="Goldthorn1">Goldthorn</OPTION>
<option value="GooseLiver1">Goose Liver</OPTION>
<option value="GrahlEyeball1">Grahl Eyeball</OPTION>
<option value="Grapes1">Grapes</OPTION>
<option value="GrassSnakeTongue1">Grass Snake Tongue</OPTION>
<option value="GraveMoss1">Grave Moss</OPTION>
<option value="Gravedust1">Gravedust</OPTION>
<option value="Gravetar1">Gravetar</OPTION>
<option value="GreenLichen1">Green Lichen</OPTION>
<option value="GreenStainCupCap1">Green Stain Cup Cap</OPTION>
<option value="GreenStainShelfCap1">Green Stain Shelf Cap</OPTION>
<option value="Gromsblood1">Gromsblood</OPTION>
<option value="GuarHide1">Guar Hide</OPTION></OPTGROUP>
<optgroup label="H">
<option value="Hackle-LoLeaf1">Hackle-Lo Leaf</OPTION>
<option value="Hack-LoLeaf1">Hack-Lo Leaf</OPTION>
<option value="Ham1">Ham</OPTION>
<option value="Harrada1">Harrada</OPTION>
<option value="HeadlessHeart1">Headless Heart</OPTION>
<option value="HeartofanInnocent1">Heart of an Innocent</OPTION>
<option value="HeartofFire1">Heart of Fire</OPTION>
<option value="HeartoftheUdyrfrykte1">Heart of the Udyrfrykte</OPTION>
<option value="HeartoftheWild1">Heart of the Wild</OPTION>
<option value="HeartoftheWolf1">Heart of the Wolf</OPTION>
<option value="Heartwood1">Heartwood</OPTION>
<option value="Heather1">Heather</OPTION>
<option value="HeavyToadstool1">Heavy Toadstool</OPTION>
<option value="Hemlock1">Hemlock</OPTION>
<option value="HollyBerries1">Holly Berries</OPTION>
<option value="HorkerTusk1">Horker Tusk</OPTION>
<option value="HornLilyBulb1">Horn Lily Bulb</OPTION>
<option value="HotRot1">Hot Rot</OPTION>
<option value="HoundMeat1">Hound Meat</OPTION>
<option value="HumanFlesh1">Human Flesh</OPTION>
<option value="HumanHeart1">Human Heart</OPTION>
<option value="HumanSkin1">Human Skin</OPTION>
<option value="HyphaFacia1">Hypha Facia</OPTION></OPTGROUP>
<optgroup label="I">
<option value="Icecap1">Icecap</OPTION>
<option value="IchorofUndeath1">Ichor of Undeath</OPTION>
<option value="ImbuedVial1">Imbued Vial</OPTION>
<option value="ImpGall1">Imp Gall</OPTION>
<option value="IronBar1">Iron Bar</OPTION>
<option value="IronwoodNut1">Ironwood Nut</OPTION></OPTGROUP>
<optgroup label="J"></OPTGROUP>
<optgroup label="K">
<option value="KagoutiHide1">Kagouti Hide</OPTION>
<option value="Khadgar'sWhisker1">Khadgar's Whisker</OPTION>
<option value="Kingsblood1">Kingsblood</OPTION>
<option value="KreshFiber1">Kresh Fiber</OPTION>
<option value="KreshFiber1">Kresh Fiber</OPTION>
<option value="KwamaCuttle1">Kwama Cuttle</OPTION></OPTGROUP>
<optgroup label="L">
<option value="Lady'sMantleLeaves1">Lady's Mantle Leaves</OPTION>
<option value="Lady'sSmockLeaves1">Lady's Smock Leaves</OPTION>
<option value="LargeFang1">Large Fang</OPTION>
<option value="Lavender1">Lavender</OPTION>
<option value="LavenderSprig1">Lavender Sprig</OPTION>
<option value="LeadedVial1">Leaded Vial</OPTION>
<option value="Leek1">Leek</OPTION>
<option value="LemonToadstool1">Lemon Toadstool</OPTION>
<option value="Lettuce1">Lettuce</OPTION>
<option value="Lichor1">Lichor</OPTION>
<option value="Liferoot1">Liferoot</OPTION>
<option value="LivingEssence1">Living Essence</OPTION>
<option value="LloramorSpines1">Lloramor Spines</OPTION>
<option value="LuminousRussula1">Luminous Russula</OPTION></OPTGROUP>
<optgroup label="M">
<option value="Mageroyal1">Mageroyal</OPTION>
<option value="ManaThistle1">Mana Thistle</OPTION>
<option value="MandrakeRoot1">Mandrake Root</OPTION>
<option value="Marshmerrow1">Marshmerrow</OPTION>
<option value="MassiveMojo1">Massive Mojo</OPTION>
<option value="MeadowRye1">Meadow Rye</OPTION>
<option value="Meat1">Meat</OPTION>
<option value="MeteorSlime1">Meteor Slime</OPTION>
<option value="MightofNine1">Might of Nine</OPTION>
<option value="MilkThistleSeeds1">Milk Thistle Seeds</OPTION>
<option value="MinorHealingPotion1">Minor Healing Potion</OPTION>
<option value="MinotaurHorn1">Minotaur Horn</OPTION>
<option value="MithrilBar1">Mithril Bar</OPTION>
<option value="MithrilOre1">Mithril Ore</OPTION>
<option value="MonkshoodRootPulp1">Monkshood Root Pulp</OPTION>
<option value="MoonSugar1">Moon Sugar</OPTION>
<option value="MorningGloryRootPulp1">Morning Glory Root Pulp</OPTION>
<option value="MortFlesh1">Mort Flesh</OPTION>
<option value="MoteofFire1">Mote of Fire</OPTION>
<option value="MotherwortSprig1">Motherwort Sprig</OPTION>
<option value="MountainBreed1">Mountain Breed</OPTION>
<option value="MountainSilversage1">Mountain Silversage</OPTION>
<option value="Muck1">Muck</OPTION>
<option value="Muffin1">Muffin</OPTION>
<option value="MugwortSeeds1">Mugwort Seeds</OPTION>
<option value="Mutton1">Mutton</OPTION></OPTGROUP>
<optgroup label="N">
<option value="NetchLeather1">Netch Leather</OPTION>
<option value="Netherbloom1">Netherbloom</OPTION>
<option value="NightmareVine1">Nightmare Vine</OPTION>
<option value="Nightshade1">Nightshade</OPTION>
<option value="Nirnroot1">Nirnroot</OPTION>
<option value="NirthflyStalks1">Nirthfly Stalks</OPTION>
<option value="NobleSedgeFlowers1">Noble Sedge Flowers</OPTION>
<option value="Northernroot1">Northern root</OPTION></OPTGROUP>
<optgroup label="O">
<option value="Ogre'sTeeth1">Ogre's Teeth</OPTION>
<option value="Onion1">Onion</OPTION>
<option value="Orange1">Orange</OPTION>
<option value="OstrichPlumes1">Ostrich Plumes</OPTION></OPTGROUP>
<optgroup label="P">
<option value="Paturin1">Paturin</OPTION>
<option value="Peacebloom1">Peacebloom</OPTION>
<option value="Pear1">Pear</OPTION>
<option value="Pearl1">Pearl</OPTION>
<option value="PeonySeeds1">Peony Seeds</OPTION>
<option value="Pinetear1">Pinetear</OPTION>
<option value="Plaguebloom1">Plaguebloom</OPTION>
<option value="Poison1">Poison</OPTION>
<option value="Potato1">Potato</OPTION>
<option value="PowerfulMojo1">Powerful Mojo</OPTION>
<option value="PrimroseLeaves1">Primrose Leaves</OPTION>
<option value="Pumpkin1">Pumpkin</OPTION>
<option value="PurpleDye1">Purple Dye</OPTION>
<option value="PurpleLotus1">Purple Lotus</OPTION></OPTGROUP>
<optgroup label="Q"></OPTGROUP>
<optgroup label="R">
<option value="RabbitBladder1">Rabbit Bladder</OPTION>
<option value="RacerPlumes1">Racer Plumes</OPTION>
<option value="Radish1">Radish</OPTION>
<option value="Ragveil1">Ragveil</OPTION>
<option value="RatMeat1">Rat Meat</OPTION>
<option value="RattleSnakeRattle1">Rattle Snake Rattle</OPTION>
<option value="RawEbony1">Raw Ebony</OPTION>
<option value="RawGlass1">Raw Glass</OPTION>
<option value="RawStahlrim1">Raw Stahlrim</OPTION>
<option value="RedLichen1">Red Lichen</OPTION>
<option value="RedToadstool1">Red Toadstool</OPTION>
<option value="RedwortFlower1">Redwort Flower</OPTION>
<option value="Resin1">Resin</OPTION>
<option value="Rice1">Rice</OPTION>
<option value="RipenedBelladonnaBerries1">Ripened Belladonna Berries</OPTION>
<option value="RipperMuscle1">Ripper Muscle</OPTION>
<option value="Roobrush1">Roobrush</OPTION>
<option value="RootPulp1">Root Pulp</OPTION>
<option value="Ruby1">Ruby</OPTION></OPTGROUP>
<optgroup label="S">
<option value="SacredLotusSeeds1">Sacred Lotus Seeds</OPTION>
<option value="Saffron1">Saffron</OPTION>
<option value="Saltrice1">Saltrice</OPTION>
<option value="Salts1">Salts</OPTION>
<option value="Scales1">Scales</OPTION>
<option value="ScampSkin1">Scamp Skin</OPTION>
<option value="Scathecraw1">Scathecraw</OPTION>
<option value="ScorpionGland1">ScorpionGland</OPTION>
<option value="ScrapMetal1">Scrap Metal</OPTION>
<option value="ScreamaBadilla1">Screama Badilla</OPTION>
<option value="ScribCabbage1">Scrib Cabbage</OPTION>
<option value="ScribJelly1">Scrib Jelly</OPTION>
<option value="ScribJerky1">Scrib Jerky</OPTION>
<option value="Scuttle1">Scuttle</OPTION>
<option value="ShadowOil1">Shadow Oil</OPTION>
<option value="ShalkResin1">Shalk Resin</OPTION>
<option value="SharpClaw1">Sharp Claw</OPTION>
<option value="Shepherd'sPie1">Shepherd's Pie</OPTION>
<option value="Silverleaf1">Silverleaf</OPTION>
<option value="SkeletonBoneMarrow1">Skeleton Bone Marrow</OPTION>
<option value="SloadSoap1">Sload Soap</OPTION>
<option value="SmallCorprusmeatHunk1">Small Corprusmeat Hunk</OPTION>
<option value="SmallFlameSac1">Small Flame Sac</OPTION>
<option value="SmallKwamaEgg1">Small Kwama Egg</OPTION>
<option value="SmallWrappedCorprusmeat1">Small Wrapped Corprusmeat</OPTION>
<option value="SnowBearPelt1">Snow Bear Pelt</OPTION>
<option value="SnowWolfPelt1">Snow Wolf Pelt</OPTION>
<option value="SomnaliusFrond1">Somnalius Frond</OPTION>
<option value="SpiddalStick1">Spiddal Stick</OPTION>
<option value="SpiderGland1">Spider Gland</OPTION>
<option value="SporePod1">Spore Pod</OPTION>
<option value="Spurge1">Spurge</OPTION>
<option value="St.Jahn'sWortNectar1">St. Jahn's Wort Nectar</OPTION>
<option value="Steel-BlueEntolomaCap1">Steel-Blue Entoloma Cap</OPTION>
<option value="StinkhornCap1">Stinkhorn Cap</OPTION>
<option value="StoneflowerPetals1">Stoneflower Petals</OPTION>
<option value="StonescaleEel1">Stonescale Eel</OPTION>
<option value="StonescaleOil1">Stonescale Oil</OPTION>
<option value="Stranglekelp1">Stranglekelp</OPTION>
<option value="Strawberry1">Strawberry</OPTION>
<option value="SummerBoleteCap1">Summer Bolete Cap</OPTION>
<option value="Sungrass1">Sungrass</OPTION>
<option value="Sweetcake1">Sweetcake</OPTION>
<option value="Sweetpulp1">Sweetpulp</OPTION>
<option value="Sweetroll1">Sweetroll</OPTION>
<option value="Swordleaf1">Swordleaf</OPTION></OPTGROUP>
<optgroup label="T">
<option value="Taproot1">Taproot</OPTION>
<option value="Terocone1">Terocone</OPTION>
<option value="Thistle1">Thistle</OPTION>
<option value="ThoriumBar1">Thorium Bar</OPTION>
<option value="ThoriumOre1">Thorium Ore</OPTION>
<option value="TigerLilyNectar1">Tiger Lily Nectar</OPTION>
<option value="Timsa-Come-Byflowers1">Timsa-Come-By flowers</OPTION>
<option value="TinderPolyporeCap1">Tinder Polypore Cap</OPTION>
<option value="Tobacco1">Tobacco</OPTION>
<option value="Tomato1">Tomato</OPTION>
<option value="Tongues1">Tongues</OPTION>
<option value="TrachidisEgg1">Trachidis Egg</OPTION>
<option value="TramaRoot1">Trama Root</OPTION>
<option value="Traveller'sJoy1">Traveller's Joy</OPTION>
<option value="TreatedBittergreenPetals1">Treated Bittergreen Petals</OPTION>
<option value="TrollFat1">Troll Fat</OPTION>
<option value="TruesilverBar1">Truesilver Bar</OPTION></OPTGROUP>
<optgroup label="U">
<option value="UnicornHorn1">Unicorn Horn</OPTION>
<option value="UnripenedBelladonnaBerries1">Unripened Belladonna Berries</OPTION></OPTGROUP>
<optgroup label="V">
<option value="VampireDust1">Vampire Dust</OPTION>
<option value="Venison1">Venison</OPTION>
<option value="VioletCorprinus1">Violet Corprinus</OPTION>
<option value="ViperGlands1">ViperGlands</OPTION>
<option value="Viper'sBuglossLeaves1">Viper's Bugloss Leaves</OPTION>
<option value="VoidSalts1">Void Salts</OPTION>
<option value="VolatileRum1">Volatile Rum</OPTION></OPTGROUP>
<optgroup label="W">
<option value="WaterHyacinthNectar1">Water Hyacinth Nectar</OPTION>
<option value="Watermelon1">Watermelon</OPTION>
<option value="WerewolfSpinalCore1">Werewolf Spinal Core</OPTION>
<option value="WheatGrain1">Wheat Grain</OPTION>
<option value="WhiteSeedPod1">White Seed Pod</OPTION>
<option value="Wickwheat1">Wickwheat</OPTION>
<option value="WildSteelbloom1">Wild Steelbloom</OPTION>
<option value="Wildvine1">Wildvine</OPTION>
<option value="WillowAnther1">Willow Anther</OPTION>
<option value="WingMembrane1">Wing Membrane</OPTION>
<option value="WingedDemonEye1">Winged Demon Eye</OPTION>
<option value="Wintersbite1">Wintersbite</OPTION>
<option value="WispStalkCaps1">Wisp Stalk Caps</OPTION>
<option value="WolfHeart1">Wolf Heart</OPTION>
<option value="WolfPelt1">Wolf Pelt</OPTION>
<option value="WolfsbanePetals1">Wolfsbane Petals</OPTION>
<option value="WormwoodLeaves1">Wormwood Leaves</OPTION>
<option value="WrappedCorprusmeatHunk1">Wrapped Corprusmeat Hunk</OPTION>
<option value="WyvernLacrimalGland1">Wyvern Lacrimal Gland</OPTION></OPTGROUP>
<optgroup label="X"></OPTGROUP>
<optgroup label="Y">
<option value="Yellowroot1">Yellowroot</OPTION></OPTGROUP>
<optgroup label="Z">
value="ZombieThyroid1">Zombie Thyroid</OPTION></OPTGROUP>
</SELECT>

Link to comment
Share on other sites

hi,

I am actually not good at web designing part, i do only scripting, but i think DHTML or HTML layers should help, or those fancy javascript windows.

 

You can also have a DIV besides the option tag which describes the option and have javascript change the description on the change event.

 

I hope i am clear!!

Link to comment
Share on other sites

in your code:

<select onchange="show_txt(this.value);">

the 'value' in 'this.value' is not a standard property for SELECT controls

http://www.w3schools.com/htmldom/dom_obj_select.asp

Go figure huh, it should be, someone tell the w3c.

 

use syntax like this:

this.options[this.selectedIndex];

<select onchange="show_txt(this.options[this.selectedIndex]);">

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.