Results 1 to 2 of 2

Thread: HTML

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered 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; 
    ........

  2. #2
    hmm BornToDrink's Avatar
    Join Date: Aug:2005
    Location: .
    Posts: 11,573
    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.
    .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |