Results 1 to 2 of 2
Thread: HTML
Hybrid View
-
28th February 2011 10:37 #1Registered User
Join Date: Mar:2008
Location:
Posts: 483
HTML
, . ( 640, 480 )
........PHP Code:<img src="xxx" width="640" height="480" />
</script>
<select id="myRes">
<option value="160" >160x120</option>
<option value="320" selected="selected">320x240</option>
<option value="640" >640x480</option>
</select>
var resolution = document.getElementById("myRes").value;
-
28th February 2011 10:54 #2.Code:
<script> function change(h) { document.getElementById("div1").style.height=h; } </script> <div id="div1" style="height: 20px; width: 50px; border: 1px solid red;"> </div> <select onChange="change(this.value)"> <option value="30">30</option> <option value="40">40</option> <option value="50">50</option> </select>
Last edited by BornToDrink; 28th February 2011 at 11:08.
Hey, mother, I come bearing a gift. I'll give you a hint. It's in my diaper and it's not a toaster.
.




Reply With Quote
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in