So, I am editing my profile over at IAM, you prolly don't know what that is though because it is a site that is home to bodily modified peoples. Anywhozer, There is this style HTML that I have seen on a few profiles, and I would like to do it, with a little addition. I have the code for the basic part of it, but what I want to add is when they go over the selection, I want a picture of what they picked to show up. The code is for a drop box that just shows what they are. For ex, IAM would be at the top, and in the dropbox would be Modified, heavily pierced, a nutjob, ect ect.
So basically, what I am asking is how would I be able to add the feature of a picture showing up when they go over the selection? 100 E-piggies if you want it and can help me out...
~MoseZ~
Spoiler for Favorite Sig/Avy Combo:
MehHakker
Shady545
p0op Wrote:I don't trust Dark_Alex...he's up to something......
16/07/2009 01:46 PM
amzter
The bird stole my shoe.
Posts: 1,830.3066 Threads: 342
Joined: 3rd May 2007
Reputation: -4.56241 E-Pigs: 54.7074
Mmm I took an HTML/CSS class and have a guide laying somewhere around my room.
If ^ one doesn't work let me know and Ill dig it up and post the code. ♥
16/07/2009 03:30 PM
ZiNgA BuRgA
Smart Alternative
Posts: 17,022.2988 Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391 E-Pigs: 446.1274
Are you referring to when the user hovers the mouse over a selection? That'll be difficult for a select box. You can do it when they _select_ an option from the select box.
Alternative is to make your own custom select box, but that takes more effort.
well Zinga, either way would work. But you can make a selection, and it would just appear in the dropbox, but just as the only one, and selected until you click on something else. But when they do click on it then, next to it would be a picture of what they just selected. I'm not sure how difficult this would be, and I'll try the first offered suggestion tomorrow sometime.
~MoseZ~
Spoiler for Favorite Sig/Avy Combo:
MehHakker
Shady545
p0op Wrote:I don't trust Dark_Alex...he's up to something......
17/07/2009 12:44 AM
ZiNgA BuRgA
Smart Alternative
Posts: 17,022.2988 Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391 E-Pigs: 446.1274
<html><body><formaction=""><selectname="Less of this"onchange="var o=escape(this.options[this.selectedIndex].value);document.getElementById('select_img').src='http://example.com/images/'+o+'.jpg';"><optionvalue="Less">Less of this</option><optionvalue="narrow minded">narrow minded people</option><optionvalue="arrogance">arrogance</option><optionvalue="stress">stress</option><optionvalue="drugs">drugs</option><optionvalue="raisins">raisins in my muesli</option><optionvalue="bananas">bananas, avocado, mushrooms</option><optionvalue="sunday drivers">sunday drivers</option><optionvalue="children">children</option><optionvalue="pets">pets</option><optionvalue="smoke">smoke</option></select></form><imgsrc=""id="select_img"/></body></html>
Haven't tested it.
You'll need to fix the URL above (obviously). It'll replace the "'+o+'" above with the value of the selected item, eg if you selected the first item, it'll set the image's src to: