Hi!
I have question about Select Options from dropdown Options selection and selection is image with hover text on image!
Ex: Like if you register on some forum and select own country from dropdown selection, and in forum viewthread shows your country with flag image somewhere above or up avatar.
That i mean!
Example picture:
[ATTACH=CONFIG]4895[/ATTACH] [ATTACH=CONFIG]4897[/ATTACH]
I working on my project "Film DB Liberty" what based on Movie DataBase mdb1987 CMS!
Let me explain a bit: I want, if i add new movie to DB i have options select on Dropdown list "DVD" or "Blu-ray" and i select in list ex "DVD" it show in my main DB page like this format:
Film Format: image here (and on image show hover text "Owns DVD"!)
There is serval files what need to be mod, files codes is here [ATTACH]4905[/ATTACH]
Image files what i want use is here...
Blu-ray - http://films.jomppaspace.net/img/blu_ray_logo_small.png
DVD - http://films.jomppaspace.net/img/dvd_logo_small.png
Making that simple, i find dropdown code where is image as a selection but i do not know how but that in to my code!
<html>
<body>
<img id="imageToSwap" src="http://films.jomppaspace.net//img/dvd_logo_small.png" />
<br/><br/>
<select id="dlist" onChange="swapImage()">
<option value="http://films.jomppaspace.net//img/dvd_logo_small.png">DVD</option>
<option value="http://films.jomppaspace.net/img/blu_ray_logo_small.png">Blu-Ray</option>
</select>
<script type="text/javascript">
function swapImage(){
var image = document.getElementById("imageToSwap");
var dropd = document.getElementById("dlist");
image.src = dropd.value;
};
</script>
</body>
</html>
Please help me someone who knows better PHP code than me,woult extrem grateful if someone can modify code!
Have skype and steam, pm me if you want add me!
Hope you understand my question, sorry for poor english!
Kind regards
Elari
SelectionImage.png
flag_img.PNG
files.zip